#include <Task.hpp>
|
| virtual bool | watch (std::string const &name, int id, int mask) |
| |
| virtual bool | unwatch (std::string const &name) |
| |
◆ MappingCache
◆ Mappings
◆ Task()
| Task::Task |
( |
std::string const & |
name = "canbus::Task" | ) |
|
◆ ~Task()
◆ cleanupHook()
| void Task::cleanupHook |
( |
| ) |
|
This hook is called by Orocos when the state machine transitions from Stopped to PreOperational, requiring the call to configureHook() before calling start() again.
◆ configureHook()
| bool Task::configureHook |
( |
| ) |
|
This hook is called by Orocos when the state machine transitions from PreOperational to Stopped. If it returns false, then the component will stay in PreOperational. Otherwise, it goes into Stopped.
It is meaningful only if the #needs_configuration has been specified in the task context definition with (for example):
task_context "TaskName" do needs_configuration ... end
◆ startHook()
This hook is called by Orocos when the state machine transitions from Stopped to Running. If it returns false, then the component will stay in Stopped. Otherwise, it goes into Running and updateHook() will be called.
◆ stopHook()
This hook is called by Orocos when the component is in the RunTimeError state, at each activity step. See the discussion in updateHook() about triggering options.
Call recovered() to go back in the Runtime state. This hook is called by Orocos when the state machine transitions from Running to Stopped after stop() has been called.
◆ unwatch()
| bool Task::unwatch |
( |
std::string const & |
name | ) |
|
|
protectedvirtual |
◆ updateHook()
| void Task::updateHook |
( |
| ) |
|
This hook is called by Orocos when the component is in the Running state, at each activity step. Here, the activity gives the "ticks" when the hook should be called.
The error(), exception() and fatal() calls, when called in this hook, allow to get into the associated RunTimeError, Exception and FatalError states.
In the first case, updateHook() is still called, and recover() allows you to go back into the Running state. In the second case, the errorHook() will be called instead of updateHook(). In Exception, the component is stopped and recover() needs to be called before starting it again. Finally, FatalError cannot be recovered.
◆ watch()
| bool Task::watch |
( |
std::string const & |
name, |
|
|
int |
id, |
|
|
int |
mask |
|
) |
| |
|
protectedvirtual |
◆ TaskBase
◆ m_can_check_interval
| base::Time canbus::Task::m_can_check_interval |
|
protected |
◆ m_driver
| canbus::Driver* canbus::Task::m_driver |
|
protected |
◆ m_last_can_check_time
| base::Time canbus::Task::m_last_can_check_time |
|
protected |
◆ m_last_stats_time
| base::Time canbus::Task::m_last_stats_time |
|
protected |
◆ m_mapping_cache
◆ m_mappings
◆ m_stats
◆ m_stats_interval
| base::Time canbus::Task::m_stats_interval |
|
protected |
The documentation for this class was generated from the following files:
- /build/rock-master-18.09-drivers-orogen-canbus-0.20180808/tasks/Task.hpp
- /build/rock-master-18.09-drivers-orogen-canbus-0.20180808/tasks/Task.cpp