43 std::vector<std::string> topics;
44 for (
const auto& cb :
cbs_)
45 topics.push_back(cb.first);
52 if (cbs_.find(m.getTopic()) == cbs_.end())
58 cbs_[m.getTopic()]->call(m);
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)
std::map< std::string, boost::shared_ptr< BagCallback > > cbs_
void unregister_callback(const std::string &topic)
void close()
Close the bag file.
ros::Time last_message_time_
A class pointing into a bag file.
void set_end(const ros::Time &end)
BagPlayer(const std::string &filename)