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

How to change the rosbag frame rate ?

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

lilouch gravatar image

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

130s gravatar image

Hello,

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
0

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

130s gravatar image

You can use -r option to change play rate http://answers.ros.org/question/46472... .

edit flag offensive delete link more

Comments

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 -0600 )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 -0600 )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 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 3,008 times

Last updated: Apr 27 '15