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

rosbag play speed

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

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 (http://code.google.com/p/fovis/).my 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 close merge delete

1 Answer

Sort by ยป oldest newest most voted
14

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

Thomas D gravatar image

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

edit flag offensive delete link more

Comments

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

Question Tools

1 follower

Stats

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

Seen: 33,515 times

Last updated: Oct 22 '12