Go to the documentation of this file.
35 #ifndef ROSBAG_BAG_PLAYER_H
36 #define ROSBAG_BAG_PLAYER_H
51 virtual void call(MessageInstance
m) = 0;
56 class BagCallbackT :
public BagCallback
59 typedef std::function<
void (
const std::shared_ptr<const T>&)>
Callback;
65 void call(MessageInstance
m) {
66 cb_(
m.instantiate<T>());
120 std::map<std::string, BagCallback *>
cbs_;
Time representation. May either represent wall clock time or ROS clock time.
BagPlayer(const std::string &filename)
BagCallbackT(Callback cb)
rs2rosinternal::Time get_time()
GLsizei const GLchar *const * string
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
std::map< std::string, BagCallback * > cbs_
virtual void call(MessageInstance m)=0
rs2rosinternal::Time real_time(const rs2rosinternal::Time &msg_time)
void set_end(const rs2rosinternal::Time &end)
std::function< void(const std::shared_ptr< const T > &)> Callback
void unregister_callback(const std::string &topic)
void set_start(const rs2rosinternal::Time &start)
rs2rosinternal::Time bag_end_
rs2rosinternal::Time play_start_
void call(MessageInstance m)
rs2rosinternal::Time last_message_time_
void register_callback(const std::string &topic, typename BagCallbackT< T >::Callback f)
void set_playback_speed(double scale)
rs2rosinternal::Time bag_start_
librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Fri Aug 2 2024 08:30:01