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

Time synchronization for bag's topics (Python)

asked 2017-04-25 07:46:50 -0500

enrabre gravatar image

I have a bag with different topic (RGB, depth, detection and tracking information) that I would like to synchronized (need to know which detection is linked to which frame for example).

My end goal is to apply recognition on each frame in order to add a small ID to the personn detected that will follow him/her on the video.

I found some code in C++ but nothing for Python.

From my understanding I have to create fake subscribers and feed them with the bag's topics in order to use the ApproximateSynchronizer.

Can anyone help me to synchronize topic from bag in Python ? Any help or hint is welcome.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-04-26 07:15:36 -0500

janindu gravatar image

Try message_filters :

The simplest approach would be to write a simple node to subscribe to the topics synchronously and play the rosbag.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-04-25 07:46:50 -0500

Seen: 1,341 times

Last updated: Apr 26 '17