Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
rosbag::BagPlayer Class Reference

#include <bag_player.h>

Public Member Functions

 BagPlayer (const std::string &filename)
 
ros::Time get_time ()
 
template<class T >
void register_callback (const std::string &topic, typename BagCallbackT< T >::Callback f)
 
void set_end (const ros::Time &end)
 
void set_playback_speed (double scale)
 
void set_start (const ros::Time &start)
 
void start_play ()
 
void unregister_callback (const std::string &topic)
 
virtual ~BagPlayer ()
 

Public Attributes

Bag bag
 

Private Member Functions

ros::Time real_time (const ros::Time &msg_time)
 

Private Attributes

ros::Time bag_end_
 
ros::Time bag_start_
 
std::map< std::string, boost::shared_ptr< BagCallback > > cbs_
 
ros::Time last_message_time_
 
ros::Time play_start_
 
double playback_speed_
 

Detailed Description

Definition at line 124 of file bag_player.h.

Constructor & Destructor Documentation

◆ BagPlayer()

rosbag::BagPlayer::BagPlayer ( const std::string &  filename)

Definition at line 6 of file bag_player.cpp.

◆ ~BagPlayer()

rosbag::BagPlayer::~BagPlayer ( )
virtual

Definition at line 16 of file bag_player.cpp.

Member Function Documentation

◆ get_time()

ros::Time rosbag::BagPlayer::get_time ( )

Definition at line 20 of file bag_player.cpp.

◆ real_time()

ros::Time rosbag::BagPlayer::real_time ( const ros::Time msg_time)
private

Definition at line 37 of file bag_player.cpp.

◆ register_callback()

template<class T >
void rosbag::BagPlayer::register_callback ( const std::string &  topic,
typename BagCallbackT< T >::Callback  f 
)

Definition at line 176 of file bag_player.h.

◆ set_end()

void rosbag::BagPlayer::set_end ( const ros::Time end)

Definition at line 28 of file bag_player.cpp.

◆ set_playback_speed()

void rosbag::BagPlayer::set_playback_speed ( double  scale)

Definition at line 32 of file bag_player.cpp.

◆ set_start()

void rosbag::BagPlayer::set_start ( const ros::Time start)

Definition at line 24 of file bag_player.cpp.

◆ start_play()

void rosbag::BagPlayer::start_play ( )

Definition at line 41 of file bag_player.cpp.

◆ unregister_callback()

void rosbag::BagPlayer::unregister_callback ( const std::string &  topic)

Definition at line 62 of file bag_player.cpp.

Member Data Documentation

◆ bag

Bag rosbag::BagPlayer::bag

Definition at line 162 of file bag_player.h.

◆ bag_end_

ros::Time rosbag::BagPlayer::bag_end_
private

Definition at line 169 of file bag_player.h.

◆ bag_start_

ros::Time rosbag::BagPlayer::bag_start_
private

Definition at line 168 of file bag_player.h.

◆ cbs_

std::map<std::string, boost::shared_ptr<BagCallback> > rosbag::BagPlayer::cbs_
private

Definition at line 167 of file bag_player.h.

◆ last_message_time_

ros::Time rosbag::BagPlayer::last_message_time_
private

Definition at line 170 of file bag_player.h.

◆ play_start_

ros::Time rosbag::BagPlayer::play_start_
private

Definition at line 172 of file bag_player.h.

◆ playback_speed_

double rosbag::BagPlayer::playback_speed_
private

Definition at line 171 of file bag_player.h.


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


rosbag_storage
Author(s): Dirk Thomas , Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:52