A class for testing Ignition Transport topic subscription. More...
Public Member Functions | |
void | Cb (const IGN_T &_msg) |
Member function called each time a topic update is received. More... | |
void | Cb (const ROS_T &_msg) |
Member function called each time a topic update is received. More... | |
MyTestClass (const std::string &_topic) | |
Class constructor. More... | |
MyTestClass (const std::string &_topic) | |
Class constructor. More... | |
Public Attributes | |
bool | callbackExecuted = false |
Member variables that flag when the actions are executed. More... | |
Private Attributes | |
ros::NodeHandle | n |
ROS node handle;. More... | |
ignition::transport::Node | node |
Transport node;. More... | |
ros::Subscriber | sub |
ROS subscriber;. More... | |
A class for testing Ignition Transport topic subscription.
A class for testing ROS topic subscription.
Definition at line 27 of file ign_subscriber.cpp.
|
inline |
Class constructor.
[in] | _topic | Topic to subscribe. |
Definition at line 31 of file ign_subscriber.cpp.
|
inline |
Class constructor.
Definition at line 61 of file ros_subscriber.cpp.
|
inline |
Member function called each time a topic update is received.
Definition at line 37 of file ign_subscriber.cpp.
|
inline |
Member function called each time a topic update is received.
Definition at line 67 of file ros_subscriber.cpp.
bool MyTestClass< IGN_T >::callbackExecuted = false |
Member variables that flag when the actions are executed.
Definition at line 44 of file ign_subscriber.cpp.
|
private |
ROS node handle;.
Definition at line 77 of file ros_subscriber.cpp.
|
private |
Transport node;.
Definition at line 47 of file ign_subscriber.cpp.
|
private |
ROS subscriber;.
Definition at line 80 of file ros_subscriber.cpp.