#include <ros_com_patterns.h>
Public Member Functions | |
Reader (ros::NodeHandle *n, const std::string &topic, int qsize) | |
virtual bool | hasData () const override |
virtual bool | hasUpdate () const override |
virtual void | getData (T &value) override |
Public Member Functions inherited from adore::mad::AReader< T > | |
virtual std::string | getDesc () |
Private Member Functions | |
void | receive (TMSG msg) |
Private Attributes | |
bool | initialized_ |
bool | changed_ |
T | data_ |
ros::Subscriber | subscriber_ |
ROS specific implementation of the AReader communication pattern.
|
inline |
|
inlineoverridevirtual |
getData returns the latest data item
Implements adore::mad::AReader< T >.
|
inlineoverridevirtual |
hasData indicates whether the data has been initialized with a first data item
Implements adore::mad::AReader< T >.
|
inlineoverridevirtual |
hasUpdate indicates whether the data item was updated since last getdata
Implements adore::mad::AReader< T >.
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |