Ask Your Question
0

Is there a way to play a ROSBAG on repeat?

asked 2017-03-22 14:02:00 -0600

ckirksey gravatar image

Is there a way to get rosbag to play a bag file on loop?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2017-03-22 14:03:05 -0600

ckirksey gravatar image

updated 2017-03-24 17:10:22 -0600

rosbag play -l bag_name.bag

edit flag offensive delete link more

Comments

Couldn't find this answer when searching initially so I wanted to make it more visible.

ckirksey gravatar imageckirksey ( 2017-03-22 14:03:44 -0600 )edit
3

This seems pretty well documented over at wiki/rosbag/Commandline - play?

gvdhoorn gravatar imagegvdhoorn ( 2017-03-22 14:09:49 -0600 )edit

Also note btw that it's -l (single dash), not --l.

gvdhoorn gravatar imagegvdhoorn ( 2017-03-23 01:52:19 -0600 )edit

Looks like you mixed up the shorthand and longhand. As gvdhoorn says, it's rosbag play -l bag_name.bag OR rosbag play --loop bag_name.bag

jayess gravatar imagejayess ( 2017-03-24 16:50:46 -0600 )edit

Corrected. Thanks guys!

ckirksey gravatar imageckirksey ( 2017-03-24 17:10:32 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-03-22 14:02:00 -0600

Seen: 4,237 times

Last updated: Mar 24 '17