35 #ifndef ROSBAG_BAG_PLAYER_H 36 #define ROSBAG_BAG_PLAYER_H 85 void register_callback(
const std::string &topic,
89 void unregister_callback(
const std::string &topic);
101 void set_playback_speed(
double scale);
120 std::map<std::string, BagCallback *>
cbs_;
virtual void call(MessageInstance m)=0
std::map< std::string, BagCallback * > cbs_
BagCallbackT(Callback cb)
rs2rosinternal::Time bag_start_
void register_callback(const std::string &topic, typename BagCallbackT< T >::Callback f)
void call(MessageInstance m)
A class pointing into a bag file.
Time representation. May either represent wall clock time or ROS clock time.
rs2rosinternal::Time bag_end_
rs2rosinternal::Time last_message_time_
rs2rosinternal::Time play_start_
std::shared_ptr< T > instantiate() const
Templated call to instantiate a message.