ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Read rosbag in python at timestamp

asked 2023-06-06 01:51:42 -0500

dev4all12358 gravatar image


I use python and and want to read rosbag data at the data timestamp. Is there a routine to do that or should I generate delay after each read corresponding to the duration to the next timestamp ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2023-06-06 07:18:17 -0500

Mike Scheutzow gravatar image

If you are asking how to publish messages stored in a rosbag file in "real time" using the rosbag API, then yes, your code must insert an appropriate delay between read calls.

edit flag offensive delete link more

Question Tools



Asked: 2023-06-06 01:51:42 -0500

Seen: 68 times

Last updated: Jun 06 '23