35 #ifndef ROSBAG_BAG_PLAYER_H 36 #define ROSBAG_BAG_PLAYER_H 38 #include <boost/foreach.hpp> 59 typedef boost::function<void (const boost::shared_ptr<const T>&)>
Callback;
84 void register_callback(
const std::string &topic,
88 void unregister_callback(
const std::string &topic);
100 void set_playback_speed(
double scale);
119 std::map<std::string, BagCallback *>
cbs_;
virtual void call(MessageInstance m)=0
std::map< std::string, BagCallback * > cbs_
boost::function< void(const boost::shared_ptr< const T > &)> Callback
BagCallbackT(Callback cb)
void register_callback(const std::string &topic, typename BagCallbackT< T >::Callback f)
void call(MessageInstance m)
ros::Time last_message_time_
A class pointing into a bag file.
boost::shared_ptr< T > instantiate() const
Templated call to instantiate a message.