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

rosbag duration

asked 2012-01-11 02:12:27 -0600

Enrique gravatar image

I've been tried to record a bag for a given duration and it seems that the arguments are ignored, so it still records until I hit Ctrl+C.

I'm running this command (but it fails for any topic/s):

rosbag record --duration 10 /camera/image_color

on ros-electric, ubuntu oneiric.

Is this a known bug, or am I doing something wrong?

edit retag flag offensive close merge delete


I want to use it for multiple topics, publishing at different frequencies, so -l NUM_MSGS is useless, as far as I know.
Enrique gravatar image Enrique  ( 2012-01-11 02:16:49 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2012-01-11 03:29:09 -0600

Enrique gravatar image

updated 2012-02-09 21:44:33 -0600

I've just created this enhancement ticket to request this feature.

UPDATE The ticket is now solved and closed!

edit flag offensive delete link more

answered 2012-01-11 03:20:25 -0600

joq gravatar image

It looks like rosbag record does not currently provide a --duration option.

As you pointed out, that would sometimes be quite useful. You might consider opening an enhancement ticket to add that feature.

edit flag offensive delete link more

Question Tools


Asked: 2012-01-11 02:12:27 -0600

Seen: 1,143 times

Last updated: Feb 09 '12