How to change the rosbag frame rate ?
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,
Asked by lilouch on 2015-04-27 01:18:55 UTC
Answers
You can use -r
option to change play rate http://answers.ros.org/question/46472/rosbag-play-speed/?answer=46476#post-id-46476.
Asked by 130s on 2015-04-27 01:40:25 UTC
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.
Asked by lilouch on 2015-04-27 02:04:15 UTC
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.
Asked by 130s on 2015-04-27 02:33:49 UTC
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.
Asked by lilouch on 2015-04-27 04:21:57 UTC
Comments