Public Member Functions | Private Attributes
rosbag::TimePublisher Class Reference

PRIVATE. A helper class to track relevant state for publishing time. More...

#include <player.h>

List of all members.

Public Member Functions

ros::Time const & getTime () const
bool horizonReached ()
void runClock (const ros::WallDuration &duration)
void runStalledClock (const ros::WallDuration &duration)
 Sleep as necessary, but don't let the click run.
void setHorizon (const ros::Time &horizon)
void setPublishFrequency (double publish_frequency)
void setTime (const ros::Time &time)
void setTimeScale (double time_scale)
void setWCHorizon (const ros::WallTime &horizon)
void stepClock ()
 Step the clock to the horizon.
 TimePublisher ()

Private Attributes

ros::Time current_
bool do_publish_
ros::Time horizon_
ros::WallTime next_pub_
ros::NodeHandle node_handle_
double publish_frequency_
ros::Publisher time_pub_
double time_scale_
ros::WallDuration wall_step_
ros::WallTime wc_horizon_

Detailed Description

PRIVATE. A helper class to track relevant state for publishing time.

Definition at line 97 of file player.h.


Constructor & Destructor Documentation

Create a time publisher A publish_frequency of < 0 indicates that time shouldn't actually be published

Definition at line 516 of file player.cpp.


Member Function Documentation

Get the current time

Definition at line 551 of file player.cpp.

Definition at line 667 of file player.cpp.

Run the clock for AT MOST duration

If horizon has been reached this function returns immediately

Definition at line 556 of file player.cpp.

Sleep as necessary, but don't let the click run.

Definition at line 635 of file player.cpp.

void rosbag::TimePublisher::setHorizon ( const ros::Time horizon)

Set the horizon that the clock will run to

Definition at line 536 of file player.cpp.

void rosbag::TimePublisher::setPublishFrequency ( double  publish_frequency)

Definition at line 522 of file player.cpp.

void rosbag::TimePublisher::setTime ( const ros::Time time)

Set the current time

Definition at line 546 of file player.cpp.

void rosbag::TimePublisher::setTimeScale ( double  time_scale)

Definition at line 531 of file player.cpp.

Set the horizon that the clock will run to

Definition at line 541 of file player.cpp.

Step the clock to the horizon.

Definition at line 617 of file player.cpp.


Member Data Documentation

Definition at line 149 of file player.h.

Definition at line 135 of file player.h.

Definition at line 148 of file player.h.

Definition at line 145 of file player.h.

Definition at line 140 of file player.h.

Definition at line 137 of file player.h.

Definition at line 141 of file player.h.

Definition at line 138 of file player.h.

Definition at line 143 of file player.h.

Definition at line 147 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 Fri Aug 28 2015 12:33:52