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

How to change the rosbag frame rate ?

asked 2015-04-27 01:18:55 -0500

lilouch gravatar image

updated 2015-04-27 01:40:52 -0500

130s gravatar image


I've been searching the internet for an answer to this question, but I haven't come across anything that will help me.

Actually i trying some algorithms but they require an high frame rate (50-70fps) and I would like to know if is it possible to change the framerate of my dataset (pictures recorded into a bag file) in order to reach this minimum framerate ?

I try to change the parameters --hz and -r of rosbag play but I don't know if this is the solution.

Thank you,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-04-27 01:40:25 -0500

130s gravatar image

You can use -r option to change play rate .

edit flag offensive delete link more


Thank but I've already seen this post. If i set r=5, the video is too quickly and my average rate is always the same when I analyse the output of rostopic hz /camera/rgb/image_color When I analyse some dataset provided by the author, the fps is equal to 70fps and the video is okay, not fast.

lilouch gravatar image lilouch  ( 2015-04-27 02:04:15 -0500 )edit

What is your issue exactly? Is your issue: "Frame rate of the topics that are obtained from re-play from rosbag is too fast" and you want to change the rate of topics? I'm confused.

130s gravatar image 130s  ( 2015-04-27 02:33:49 -0500 )edit

I mean that if I adjust r=20 for example the video is really fast. But yes my goal is to have a fps close to 50. Because the dataset provided by the author of the algorithm have a fps of 50 and the video is not fast, it's quiet normal.

lilouch gravatar image lilouch  ( 2015-04-27 04:21:57 -0500 )edit

Question Tools

1 follower


Asked: 2015-04-27 01:18:55 -0500

Seen: 2,861 times

Last updated: Apr 27 '15