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) throw (BagException)
 
rs2rosinternal::Time get_time ()
 
template<class T >
void register_callback (const std::string &topic, typename BagCallbackT< T >::Callback f)
 
void set_end (const rs2rosinternal::Time &end)
 
void set_playback_speed (double scale)
 
void set_start (const rs2rosinternal::Time &start)
 
void start_play ()
 
void unregister_callback (const std::string &topic)
 
virtual ~BagPlayer ()
 

Public Attributes

Bag bag
 

Private Member Functions

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

Private Attributes

rs2rosinternal::Time bag_end_
 
rs2rosinternal::Time bag_start_
 
std::map< std::string, BagCallback * > cbs_
 
rs2rosinternal::Time last_message_time_
 
rs2rosinternal::Time play_start_
 
double playback_speed_
 

Detailed Description

Definition at line 77 of file bag_player.h.

Constructor & Destructor Documentation

rosbag::BagPlayer::BagPlayer ( const std::string filename)
throw (BagException
)

Definition at line 8 of file bag_player.cpp.

rosbag::BagPlayer::~BagPlayer ( )
virtual

Definition at line 18 of file bag_player.cpp.

Member Function Documentation

rs2rosinternal::Time rosbag::BagPlayer::get_time ( )

Definition at line 22 of file bag_player.cpp.

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

Definition at line 39 of file bag_player.cpp.

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

Definition at line 129 of file bag_player.h.

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

Definition at line 30 of file bag_player.cpp.

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

Definition at line 34 of file bag_player.cpp.

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

Definition at line 26 of file bag_player.cpp.

void rosbag::BagPlayer::start_play ( )

Definition at line 43 of file bag_player.cpp.

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

Definition at line 65 of file bag_player.cpp.

Member Data Documentation

Bag rosbag::BagPlayer::bag

Definition at line 115 of file bag_player.h.

rs2rosinternal::Time rosbag::BagPlayer::bag_end_
private

Definition at line 122 of file bag_player.h.

rs2rosinternal::Time rosbag::BagPlayer::bag_start_
private

Definition at line 121 of file bag_player.h.

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

Definition at line 120 of file bag_player.h.

rs2rosinternal::Time rosbag::BagPlayer::last_message_time_
private

Definition at line 123 of file bag_player.h.

rs2rosinternal::Time rosbag::BagPlayer::play_start_
private

Definition at line 125 of file bag_player.h.

double rosbag::BagPlayer::playback_speed_
private

Definition at line 124 of file bag_player.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:40