Ask Your Question
6

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

Hello

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

http://www.ros.org/wiki/Clock

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?

Thanks

Miguel

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

Miguel

edit retag flag offensive close merge delete

Comments

1

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 imageStephane.M ( 2013-05-21 00:50:15 -0500 )edit

Hi Stephane

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

hi ! You did not answer my question :-)

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

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 imageMiguel Riem de Oliveira ( 2013-05-23 05:02:27 -0500 )edit
2

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

georgebrindeiro gravatar imagegeorgebrindeiro ( 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 imagemark_vision ( 2015-08-10 12:54:18 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
3

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: https://github.com/ros-visualization/...

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

Stats

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

Seen: 1,499 times

Last updated: Jul 29 '14