Template Class SubscriptionTask#

Inheritance Relationships#

Base Type#

Class Documentation#

template<typename MessageT>
class SubscriptionTask : public corail_core::ReactiveTask#

Use ReactiveTask to implement a realtime ROS 2 subscription.

See

See also

(ReactiveTask).

Public Functions

inline SubscriptionTask(const std::string &name, int cpu, int priority, std::chrono::nanoseconds period, std::chrono::nanoseconds jitter, typename SubT::SharedPtr sub)#

Construct a new Subscription Task object.

The task is created in init state.

Parameters
  • name[in] The name of the task.

  • cpu[in] The cpu on which the task will execute.

  • priority[in] The priority of the task (higher priority first).

  • period[in] The periode of the task.

  • jitter[in] The jitter of the task.

  • callback[in] The function to execute at each periode.

inline ~SubscriptionTask()#

Corail is free software: you can redistribute it and/or modify it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.