Public Member Functions | Public Attributes | Private Attributes
tfMessageReader< MessageType > Class Template Reference

#include <tfMessageReader.h>

List of all members.

Public Member Functions

bool bagEnd ()
bool getNextMessage (MessageType &msg_out, tf::Transform &sensor_pose)
bool getTf (const std::string &frame_name, const ros::Time &stamp, tf::Transform &pose)
bool readUntilTime (ros::Time t)
 tfMessageReader (std::string bagfilename, std::string message_topic_, std::string fixed_link_, std::string target_linkname_)

Public Attributes

rosbag::View::iterator I
rosbag::View * view

Private Attributes

rosbag::Bag bag
std::string fixed_link
rosbag::View::iterator Itf
ros::Time last_read_tf
std::string message_topic
std::string target_linkname
tf::Transformer transformer

Detailed Description

template<typename MessageType>
class tfMessageReader< MessageType >

Definition at line 13 of file tfMessageReader.h.


Constructor & Destructor Documentation

template<typename MessageType>
tfMessageReader< MessageType >::tfMessageReader ( std::string  bagfilename,
std::string  message_topic_,
std::string  fixed_link_,
std::string  target_linkname_ 
) [inline]

Open , subscribe to topic use tf target_linkname_, which is fixed to fixed_link_

Definition at line 19 of file tfMessageReader.h.


Member Function Documentation

template<typename MessageType>
bool tfMessageReader< MessageType >::bagEnd ( ) [inline]

Definition at line 36 of file tfMessageReader.h.

template<typename MessageType>
bool tfMessageReader< MessageType >::getNextMessage ( MessageType &  msg_out,
tf::Transform &  sensor_pose 
) [inline]

Read next message Returns the message and corresponding pose Returns false if it was not possible to read the message or pose True otherwise

Definition at line 65 of file tfMessageReader.h.

template<typename MessageType>
bool tfMessageReader< MessageType >::getTf ( const std::string &  frame_name,
const ros::Time stamp,
tf::Transform &  pose 
) [inline]

Get tf::Transform by name and timestamp

Definition at line 44 of file tfMessageReader.h.

template<typename MessageType>
bool tfMessageReader< MessageType >::readUntilTime ( ros::Time  t) [inline]

Reads the bag file ahead of time in order to make sure that there are poses in cache

No need to read new ones

Definition at line 117 of file tfMessageReader.h.


Member Data Documentation

template<typename MessageType>
rosbag::Bag tfMessageReader< MessageType >::bag [private]

Definition at line 161 of file tfMessageReader.h.

template<typename MessageType>
std::string tfMessageReader< MessageType >::fixed_link [private]

Definition at line 158 of file tfMessageReader.h.

template<typename MessageType>
rosbag::View::iterator tfMessageReader< MessageType >::I

Definition at line 156 of file tfMessageReader.h.

template<typename MessageType>
rosbag::View::iterator tfMessageReader< MessageType >::Itf [private]

Definition at line 162 of file tfMessageReader.h.

template<typename MessageType>
ros::Time tfMessageReader< MessageType >::last_read_tf [private]

Definition at line 164 of file tfMessageReader.h.

template<typename MessageType>
std::string tfMessageReader< MessageType >::message_topic [private]

Definition at line 160 of file tfMessageReader.h.

template<typename MessageType>
std::string tfMessageReader< MessageType >::target_linkname [private]

Definition at line 159 of file tfMessageReader.h.

template<typename MessageType>
tf::Transformer tfMessageReader< MessageType >::transformer [private]

Definition at line 163 of file tfMessageReader.h.

template<typename MessageType>
rosbag::View* tfMessageReader< MessageType >::view

Definition at line 155 of file tfMessageReader.h.


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


ndt_mcl
Author(s): jari
autogenerated on Mon Jan 6 2014 11:32:07