3 #define foreach BOOST_FOREACH 45 std::vector<std::string> topics;
46 std::pair<std::string, BagCallback *> cb;
48 topics.push_back(cb.first);
std::map< std::string, BagCallback * > cbs_
ros::Time real_time(const ros::Time &msg_time)
void open(std::string const &filename, uint32_t mode=bagmode::Read)
Open a bag file.
static bool sleepUntil(const Time &end)
void set_playback_speed(double scale)
void set_start(const ros::Time &start)
void unregister_callback(const std::string &topic)
void close()
Close the bag file.
ros::Time const & getTime() const
ros::Time last_message_time_
A class pointing into a bag file.
void set_end(const ros::Time &end)
BagPlayer(const std::string &filename)
std::string const & getTopic() const