Protected Member Functions | Private Attributes | List of all members
tf2_server::Tf2ServerEarlyInitialParamsNodelet Class Reference
Inheritance diagram for tf2_server::Tf2ServerEarlyInitialParamsNodelet:
Inheritance graph
[legend]

Protected Member Functions

void onInit () override
 
void onMessage (const tf2_msgs::TFMessageConstPtr &msg)
 
- Protected Member Functions inherited from nodelet::Nodelet
ros::CallbackQueueInterfacegetMTCallbackQueue () const
 
ros::NodeHandlegetMTNodeHandle () const
 
ros::NodeHandlegetMTPrivateNodeHandle () const
 
const V_stringgetMyArgv () const
 
const std::string & getName () const
 
ros::NodeHandlegetNodeHandle () const
 
ros::NodeHandlegetPrivateNodeHandle () const
 
const M_stringgetRemappingArgs () const
 
ros::CallbackQueueInterfacegetSTCallbackQueue () const
 
std::string getSuffixedName (const std::string &suffix) const
 

Private Attributes

ros::Publisher pub
 
ros::Subscriber sub
 

Additional Inherited Members

- Public Member Functions inherited from nodelet::Nodelet
void init (const std::string &name, const M_string &remapping_args, const V_string &my_argv, ros::CallbackQueueInterface *st_queue=NULL, ros::CallbackQueueInterface *mt_queue=NULL)
 
 Nodelet ()
 
virtual ~Nodelet ()
 

Detailed Description

This is a helper class for test tf2_server_early_init_params.test . Its task is to subscribe to a TF topic as a nodelet (and relay it further). This should normally make no practical difference to running as a node, but it shows that nodelet subscribers call connect_cb much faster/earlier than interprocess subscribers. And this speed was the culprit of a nasty race condition for which we test now.

Definition at line 16 of file tf2_server_early_initial_params_nodelet.cpp.

Member Function Documentation

◆ onInit()

void tf2_server::Tf2ServerEarlyInitialParamsNodelet::onInit ( )
inlineoverrideprotectedvirtual

Implements nodelet::Nodelet.

Definition at line 19 of file tf2_server_early_initial_params_nodelet.cpp.

◆ onMessage()

void tf2_server::Tf2ServerEarlyInitialParamsNodelet::onMessage ( const tf2_msgs::TFMessageConstPtr &  msg)
inlineprotected

Definition at line 24 of file tf2_server_early_initial_params_nodelet.cpp.

Member Data Documentation

◆ pub

ros::Publisher tf2_server::Tf2ServerEarlyInitialParamsNodelet::pub
private

Definition at line 36 of file tf2_server_early_initial_params_nodelet.cpp.

◆ sub

ros::Subscriber tf2_server::Tf2ServerEarlyInitialParamsNodelet::sub
private

Definition at line 35 of file tf2_server_early_initial_params_nodelet.cpp.


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


tf2_server
Author(s): Martin Pecka
autogenerated on Fri Jan 12 2024 03:42:13