Public Member Functions | Public Attributes | Private Attributes | List of all members
MyTestClass< IGN_T > Class Template Reference

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...
 

Detailed Description

template<typename IGN_T>
class MyTestClass< IGN_T >

A class for testing Ignition Transport topic subscription.

A class for testing ROS topic subscription.

Definition at line 27 of file ign_subscriber.cpp.

Constructor & Destructor Documentation

◆ MyTestClass() [1/2]

template<typename IGN_T >
MyTestClass< IGN_T >::MyTestClass ( const std::string &  _topic)
inline

Class constructor.

Parameters
[in]_topicTopic to subscribe.

Definition at line 31 of file ign_subscriber.cpp.

◆ MyTestClass() [2/2]

template<typename IGN_T >
MyTestClass< IGN_T >::MyTestClass ( const std::string &  _topic)
inline

Class constructor.

Definition at line 61 of file ros_subscriber.cpp.

Member Function Documentation

◆ Cb() [1/2]

template<typename IGN_T >
void MyTestClass< IGN_T >::Cb ( const IGN_T &  _msg)
inline

Member function called each time a topic update is received.

Definition at line 37 of file ign_subscriber.cpp.

◆ Cb() [2/2]

template<typename IGN_T >
void MyTestClass< IGN_T >::Cb ( const ROS_T &  _msg)
inline

Member function called each time a topic update is received.

Definition at line 67 of file ros_subscriber.cpp.

Member Data Documentation

◆ callbackExecuted

template<typename IGN_T >
bool MyTestClass< IGN_T >::callbackExecuted = false

Member variables that flag when the actions are executed.

Definition at line 44 of file ign_subscriber.cpp.

◆ n

template<typename IGN_T >
ros::NodeHandle MyTestClass< IGN_T >::n
private

ROS node handle;.

Definition at line 77 of file ros_subscriber.cpp.

◆ node

template<typename IGN_T >
ignition::transport::Node MyTestClass< IGN_T >::node
private

Transport node;.

Definition at line 47 of file ign_subscriber.cpp.

◆ sub

template<typename IGN_T >
ros::Subscriber MyTestClass< IGN_T >::sub
private

ROS subscriber;.

Definition at line 80 of file ros_subscriber.cpp.


The documentation for this class was generated from the following files:


ros_ign_bridge
Author(s):
autogenerated on Sat Mar 11 2023 04:02:16