Ask Your Question
1

rosbag doesn't playback at same speed

asked 2017-11-16 11:40:05 -0500

2ROS0 gravatar image

updated 2017-11-16 15:57:56 -0500

Hi,

I have recorded a rosbag w topics at ~7 Hz. When I use rosbag play on those topics, they playback at 2Hz. The rosbag info too shows a total time of say 10 secs for instance but on playing it, it goes on for much more than 10 seconds.

Any tools you would recommend for me to debug without having to go through the code?

Thank you

edit 1: turns out it's image_view that I'm running which slows it down. Is this a known problem that image_view doesn't show images at ~7Hz at 3MP?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-11-16 18:55:17 -0500

2ROS0 gravatar image

Turned out to be a decompression issue. I had compressed bags that were unable to decompress and play at the desired frequency of the messages. Using rosbag decompress on these before playing them does the trick.

I didn't initially know of the decompress tool in rosbag so I was re recording the messages (at the slow speed) into another bag and playing that. But that seemed to do some unnatural behavior. Firstly the bags were much longer (which makes sense due to the slow speed) but then using the --clock option didn't make them use the time that was on the messages. They would still use the computer time.

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

3 followers

Stats

Asked: 2017-11-16 11:40:05 -0500

Seen: 243 times

Last updated: Nov 16 '17