Public Member Functions | Private Member Functions | Private Attributes | List of all members
tf2_ros::TransformListener Class Reference

This class provides an easy way to request and receive coordinate frame transform information. More...

#include <transform_listener.h>

Public Member Functions

 TransformListener (tf2::BufferCore &buffer, bool spin_thread=true)
 Constructor for transform listener. More...
 
 TransformListener (tf2::BufferCore &buffer, const ros::NodeHandle &nh, bool spin_thread=true)
 
 ~TransformListener ()
 

Private Member Functions

void dedicatedListenerThread ()
 
void init ()
 Initialize this transform listener, subscribing, advertising services, etc. More...
 
void initWithThread ()
 
void static_subscription_callback (const ros::MessageEvent< tf2_msgs::TFMessage const > &msg_evt)
 
void subscription_callback (const ros::MessageEvent< tf2_msgs::TFMessage const > &msg_evt)
 Callback function for ros message subscriptoin. More...
 
void subscription_callback_impl (const ros::MessageEvent< tf2_msgs::TFMessage const > &msg_evt, bool is_static)
 

Private Attributes

tf2::BufferCorebuffer_
 
boost::thread * dedicated_listener_thread_
 
ros::Time last_update_
 
ros::Subscriber message_subscriber_tf_
 
ros::Subscriber message_subscriber_tf_static_
 
ros::NodeHandle node_
 
ros::CallbackQueue tf_message_callback_queue_
 
bool using_dedicated_thread_
 

Detailed Description

This class provides an easy way to request and receive coordinate frame transform information.

Definition at line 48 of file transform_listener.h.

Constructor & Destructor Documentation

TransformListener::TransformListener ( tf2::BufferCore buffer,
bool  spin_thread = true 
)

Constructor for transform listener.

Definition at line 38 of file transform_listener.cpp.

TransformListener::TransformListener ( tf2::BufferCore buffer,
const ros::NodeHandle nh,
bool  spin_thread = true 
)

Definition at line 47 of file transform_listener.cpp.

TransformListener::~TransformListener ( )

Definition at line 60 of file transform_listener.cpp.

Member Function Documentation

void tf2_ros::TransformListener::dedicatedListenerThread ( )
inlineprivate

Definition at line 78 of file transform_listener.h.

void TransformListener::init ( )
private

Initialize this transform listener, subscribing, advertising services, etc.

Todo:
magic number
Todo:
magic number

Definition at line 70 of file transform_listener.cpp.

void TransformListener::initWithThread ( )
private
Todo:
magic number
Todo:
magic number

Definition at line 76 of file transform_listener.cpp.

void TransformListener::static_subscription_callback ( const ros::MessageEvent< tf2_msgs::TFMessage const > &  msg_evt)
private

Definition at line 97 of file transform_listener.cpp.

void TransformListener::subscription_callback ( const ros::MessageEvent< tf2_msgs::TFMessage const > &  msg_evt)
private

Callback function for ros message subscriptoin.

Definition at line 93 of file transform_listener.cpp.

void TransformListener::subscription_callback_impl ( const ros::MessageEvent< tf2_msgs::TFMessage const > &  msg_evt,
bool  is_static 
)
private
Todo:
Use error reporting

Definition at line 102 of file transform_listener.cpp.

Member Data Documentation

tf2::BufferCore& tf2_ros::TransformListener::buffer_
private

Definition at line 74 of file transform_listener.h.

boost::thread* tf2_ros::TransformListener::dedicated_listener_thread_
private

Definition at line 70 of file transform_listener.h.

ros::Time tf2_ros::TransformListener::last_update_
private

Definition at line 76 of file transform_listener.h.

ros::Subscriber tf2_ros::TransformListener::message_subscriber_tf_
private

Definition at line 72 of file transform_listener.h.

ros::Subscriber tf2_ros::TransformListener::message_subscriber_tf_static_
private

Definition at line 73 of file transform_listener.h.

ros::NodeHandle tf2_ros::TransformListener::node_
private

Definition at line 71 of file transform_listener.h.

ros::CallbackQueue tf2_ros::TransformListener::tf_message_callback_queue_
private

Definition at line 69 of file transform_listener.h.

bool tf2_ros::TransformListener::using_dedicated_thread_
private

Definition at line 75 of file transform_listener.h.


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


tf2_ros
Author(s): Eitan Marder-Eppstein, Wim Meeussen
autogenerated on Tue Jul 10 2018 05:18:25