18 #ifndef MAUVE_ROS_SUBSCRIBER_HPP 19 #define MAUVE_ROS_SUBSCRIBER_HPP 26 #include <mauve/runtime.hpp> 27 #include <mauve/base/PeriodicStateMachine.hpp> 29 #include "Connector.hpp" 42 template <
typename ROS_T,
typename T>
52 if (status == runtime::DataStatus::NEW_DATA)
53 status = runtime::DataStatus::OLD_DATA;
62 if (status == runtime::DataStatus::NEW_DATA)
63 status = runtime::DataStatus::OLD_DATA;
76 void callback(
const ROS_T& msg);
78 ::ros::Subscriber subscriber;
82 runtime::DataStatus status;
92 template <
typename ROS_T,
typename T>
102 template <
typename ROS_T,
typename T>
106 template <
typename ROS_T,
typename T>
108 SubscriberCore<ROS_T, T>,
110 SubscriberCore<ROS_T, T>> >;
114 #include "ipp/Subscriber.ipp" Definition: Interface.hpp:34
void update()
Update function: write received message to output.
Definition: Subscriber.ipp:58
Interface of the ROS Subscriber.
Definition: Subscriber.hpp:93
Definition: DataStatus.hpp:29
Definition: ReadPort.hpp:27
runtime::DataStatus read_status()
Read the status of the value received on the topic.
Definition: Subscriber.hpp:70
T read_value()
Read the value received on the topic.
Definition: Subscriber.hpp:51
Core of the ROS Subscriber.
Definition: Subscriber.hpp:43
Definition: RtMutex.hpp:26
Component class.
Definition: Architecture.hpp:34
runtime::StatusValue< T > read()
Read the value received on the topic with its status.
Definition: Subscriber.hpp:60
The MAUVE namespace.
Definition: tracing.hpp:24
Definition: Architecture.hpp:38
void cleanup_hook() finaloverride
Hook function called when cleaning the shell.
Definition: Subscriber.ipp:43
bool configure_hook() finaloverride
Hook function called when configuring the shell.
Definition: Subscriber.ipp:30
Defines a Periodic State Machine.
Definition: PeriodicStateMachine.hpp:32
The Core defines the methods of the component.
Definition: Core.hpp:38