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

PRIVATE. Player class to abstract the interface to the player. More...

#include <player.h>

Public Member Functions

 Player (PlayerOptions const &options)
 
void publish ()
 
 ~Player ()
 

Private Types

typedef std::map< std::string, ros::PublisherPublisherMap
 

Private Member Functions

void doKeepAlive ()
 
void doPublish (rosbag::MessageInstance const &m)
 
bool pauseCallback (std_srvs::SetBool::Request &req, std_srvs::SetBool::Response &res)
 
void printTime ()
 
void processPause (const bool paused, ros::WallTime &horizon)
 
int readCharFromStdin ()
 
void restoreTerminal ()
 
void setupTerminal ()
 
void updateRateTopicTime (const ros::MessageEvent< topic_tools::ShapeShifter const > &msg_event)
 
void waitForSubscribers () const
 

Private Attributes

ros::Duration bag_length_
 
std::vector< boost::shared_ptr< Bag > > bags_
 
bool delayed_
 
ros::Time last_rate_control_
 
int maxfd_
 
ros::NodeHandle node_handle_
 
PlayerOptions options_
 
termios orig_flags_
 
bool pause_change_requested_
 
bool pause_for_topics_
 
ros::ServiceServer pause_service_
 
bool paused_
 
ros::WallTime paused_time_
 
PublisherMap publishers_
 
ros::Subscriber rate_control_sub_
 
bool requested_pause_state_
 
ros::Time start_time_
 
fd_set stdin_fdset_
 
bool terminal_modified_
 
TimePublisher time_publisher_
 
TimeTranslator time_translator_
 

Detailed Description

PRIVATE. Player class to abstract the interface to the player.

This API is currently considered private, but will be released in the future after view.

Definition at line 167 of file player.h.

Member Typedef Documentation

typedef std::map<std::string, ros::Publisher> rosbag::Player::PublisherMap
private

Definition at line 195 of file player.h.

Constructor & Destructor Documentation

rosbag::Player::Player ( PlayerOptions const &  options)

Definition at line 106 of file player.cpp.

rosbag::Player::~Player ( )

Definition at line 120 of file player.cpp.

Member Function Documentation

void rosbag::Player::doKeepAlive ( )
private

Definition at line 554 of file player.cpp.

void rosbag::Player::doPublish ( rosbag::MessageInstance const &  m)
private

Definition at line 413 of file player.cpp.

bool rosbag::Player::pauseCallback ( std_srvs::SetBool::Request &  req,
std_srvs::SetBool::Response &  res 
)
private

Definition at line 359 of file player.cpp.

void rosbag::Player::printTime ( )
private

Definition at line 334 of file player.cpp.

void rosbag::Player::processPause ( const bool  paused,
ros::WallTime horizon 
)
private

Definition at line 378 of file player.cpp.

void rosbag::Player::publish ( )

Definition at line 127 of file player.cpp.

int rosbag::Player::readCharFromStdin ( )
private

Definition at line 668 of file player.cpp.

void rosbag::Player::restoreTerminal ( )
private

Definition at line 655 of file player.cpp.

void rosbag::Player::setupTerminal ( )
private

Definition at line 614 of file player.cpp.

void rosbag::Player::updateRateTopicTime ( const ros::MessageEvent< topic_tools::ShapeShifter const > &  msg_event)
private

Definition at line 297 of file player.cpp.

void rosbag::Player::waitForSubscribers ( ) const
private

Definition at line 399 of file player.cpp.

Member Data Documentation

ros::Duration rosbag::Player::bag_length_
private

Definition at line 235 of file player.h.

std::vector<boost::shared_ptr<Bag> > rosbag::Player::bags_
private

Definition at line 217 of file player.h.

bool rosbag::Player::delayed_
private

Definition at line 204 of file player.h.

ros::Time rosbag::Player::last_rate_control_
private

Definition at line 213 of file player.h.

int rosbag::Player::maxfd_
private

Definition at line 229 of file player.h.

ros::NodeHandle rosbag::Player::node_handle_
private

Definition at line 199 of file player.h.

PlayerOptions rosbag::Player::options_
private

Definition at line 197 of file player.h.

termios rosbag::Player::orig_flags_
private

Definition at line 226 of file player.h.

bool rosbag::Player::pause_change_requested_
private

Definition at line 208 of file player.h.

bool rosbag::Player::pause_for_topics_
private

Definition at line 206 of file player.h.

ros::ServiceServer rosbag::Player::pause_service_
private

Definition at line 201 of file player.h.

bool rosbag::Player::paused_
private

Definition at line 203 of file player.h.

ros::WallTime rosbag::Player::paused_time_
private

Definition at line 215 of file player.h.

PublisherMap rosbag::Player::publishers_
private

Definition at line 218 of file player.h.

ros::Subscriber rosbag::Player::rate_control_sub_
private

Definition at line 212 of file player.h.

bool rosbag::Player::requested_pause_state_
private

Definition at line 210 of file player.h.

ros::Time rosbag::Player::start_time_
private

Definition at line 234 of file player.h.

fd_set rosbag::Player::stdin_fdset_
private

Definition at line 227 of file player.h.

bool rosbag::Player::terminal_modified_
private

Definition at line 221 of file player.h.

TimePublisher rosbag::Player::time_publisher_
private

Definition at line 232 of file player.h.

TimeTranslator rosbag::Player::time_translator_
private

Definition at line 231 of file player.h.


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


rosbag
Author(s): Tim Field, Jeremy Leibs, James Bowman
autogenerated on Sun Feb 3 2019 03:30:26