#include <tfMessageReader.h>
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 |
Definition at line 14 of file tfMessageReader.h.
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 21 of file tfMessageReader.h.
bool tfMessageReader< MessageType >::bagEnd | ( | ) | [inline] |
Definition at line 38 of file tfMessageReader.h.
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 67 of file tfMessageReader.h.
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 46 of file tfMessageReader.h.
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 119 of file tfMessageReader.h.
rosbag::Bag tfMessageReader< MessageType >::bag [private] |
Definition at line 163 of file tfMessageReader.h.
std::string tfMessageReader< MessageType >::fixed_link [private] |
Definition at line 160 of file tfMessageReader.h.
rosbag::View::iterator tfMessageReader< MessageType >::I |
Definition at line 158 of file tfMessageReader.h.
rosbag::View::iterator tfMessageReader< MessageType >::Itf [private] |
Definition at line 164 of file tfMessageReader.h.
ros::Time tfMessageReader< MessageType >::last_read_tf [private] |
Definition at line 166 of file tfMessageReader.h.
std::string tfMessageReader< MessageType >::message_topic [private] |
Definition at line 162 of file tfMessageReader.h.
std::string tfMessageReader< MessageType >::target_linkname [private] |
Definition at line 161 of file tfMessageReader.h.
tf::Transformer tfMessageReader< MessageType >::transformer [private] |
Definition at line 165 of file tfMessageReader.h.
rosbag::View* tfMessageReader< MessageType >::view |
Definition at line 157 of file tfMessageReader.h.