ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

rosbag play speed [closed]

asked 2012-10-22 05:43:37 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi All I am using rosbag play --clock myrecod.bag to play file and subscribe these three topics: "/camera/rgb/image_color", "/camera/depth/image", "/camera/depth/camera_info" and I want to process each frame of these topics by fovis ( recording file is 20 fps and I have time-consuming calculation on each frame of data. There for I only able to subscribe 4 fps of my recordings.

How can I slow down the play back speed of my recordings file in order to get all frames?

Thanks in Advance Ramin

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Procópio
close date 2017-05-10 04:05:19.270983

1 Answer

Sort by » oldest newest most voted

answered 2012-10-22 05:50:38 -0600

Thomas D gravatar image

Use the -r or --rate parameter of rosbag play.

edit flag offensive delete link more


Thank you Thomas I set rate value to 0.1 and now its working well and I am able to capture all the frames.

raminzohouri gravatar image raminzohouri  ( 2012-10-22 23:29:14 -0600 )edit

Question Tools

1 follower


Asked: 2012-10-22 05:43:37 -0600

Seen: 28,611 times

Last updated: Oct 22 '12