Ask Your Question
0

Time synchronization for bag's topics (Python)

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

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
0

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

janindu gravatar image

Try message_filters : http://wiki.ros.org/message_filters#E...

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 629 times

Last updated: Apr 26 '17