Public Member Functions | Private Attributes | Static Private Attributes | List of all members
FakePublisher< T_msg > Class Template Reference

Initalise easily a fake publisher, class used on debug mode. Avoiding to develop continually with the hardware part. More...

#include <pouco2000_debug.hpp>

Public Member Functions

 FakePublisher (ros::NodeHandle &nh, std::string topic)
 
template<typename T_data >
void run (int size_data, boost::function< T_data(void)> gen)
 

Private Attributes

ros::Publisher pub
 
int rate
 

Static Private Attributes

static const int QUEUE_SIZE_PUBLISHER = 1000
 

Detailed Description

template<typename T_msg>
class FakePublisher< T_msg >

Initalise easily a fake publisher, class used on debug mode. Avoiding to develop continually with the hardware part.

Template Parameters
T_msg

Definition at line 47 of file pouco2000_debug.hpp.

Constructor & Destructor Documentation

◆ FakePublisher()

template<typename T_msg >
FakePublisher< T_msg >::FakePublisher ( ros::NodeHandle nh,
std::string  topic 
)

Definition at line 60 of file pouco2000_debug.hpp.

Member Function Documentation

◆ run()

template<typename T_msg >
template<typename T_data >
void FakePublisher< T_msg >::run ( int  size_data,
boost::function< T_data(void)>  gen 
)

Definition at line 67 of file pouco2000_debug.hpp.

Member Data Documentation

◆ pub

template<typename T_msg>
ros::Publisher FakePublisher< T_msg >::pub
private

Definition at line 51 of file pouco2000_debug.hpp.

◆ QUEUE_SIZE_PUBLISHER

template<typename T_msg>
const int FakePublisher< T_msg >::QUEUE_SIZE_PUBLISHER = 1000
staticprivate

Definition at line 49 of file pouco2000_debug.hpp.

◆ rate

template<typename T_msg>
int FakePublisher< T_msg >::rate
private

Definition at line 50 of file pouco2000_debug.hpp.


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


pouco2000_ros
Author(s):
autogenerated on Mon Feb 28 2022 23:16:34