Ask Your Question

How to launch rxbag or rqt_bag with the --clock option

asked 2013-05-14 11:39:11 -0500

Miguel Riem de Oliveira gravatar image

updated 2013-05-23 18:03:25 -0500

130s gravatar image


I am launching the playback of a bag file using rosbag play.

Because I want to emulate the clock at the time of recording I use the --clock option along with the use_sim_time=true parameter

The problem is I want tot use rxbag or rqt_bag instead of rosbag play.

None of those accept a --clock option.

I should I do it? run a clock server independently? How can I do it?



Update: No one answered my question. If it does not make sense please let me know. Basically, I just want to know how I can emulate the use_sim_time --clock options with rxbag or rqt_Bag. Thanks


edit retag flag offensive close merge delete



I have a question : why would you want not to use rosbag play ? Is there any particular reason, advantages in rxbag or rqt_bag ? (except the graphical interface)

Stephane.M gravatar image Stephane.M  ( 2013-05-21 00:50:15 -0500 )edit

Hi Stephane

Miguel Riem de Oliveira gravatar image Miguel Riem de Oliveira  ( 2013-05-23 04:36:04 -0500 )edit

hi ! You did not answer my question :-)

Stephane.M gravatar image Stephane.M  ( 2013-05-23 04:48:42 -0500 )edit

Sorry. Had a problem with the browser. Yes there are many advantages. With rxbag or rqt_bag you can move forward or backward in time, jump to a specific time in the bag, change in real time the playback rate, etc. There are many advantages. Regards Miguel

Miguel Riem de Oliveira gravatar image Miguel Riem de Oliveira  ( 2013-05-23 05:02:27 -0500 )edit

I was looking for that just now! Thanks for creating the ticket, I totally back this feature.

georgebrindeiro gravatar image georgebrindeiro  ( 2013-09-17 09:35:31 -0500 )edit

I see now that the option is available from the help. But it does not work. If i run rqt_bag --clock mybag.bag and do rostopic echo /clock after pressing the play button nothing happens.

mark_vision gravatar image mark_vision  ( 2015-08-10 12:54:18 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2014-07-29 17:39:07 -0500

Aaron Blasdel gravatar image

So this doesn't show up as unanswered anymore:

As a result of the issue created this capability was added here:

edit flag offensive delete link more

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


Asked: 2013-05-14 11:39:11 -0500

Seen: 2,028 times

Last updated: Jul 29 '14