Ask Your Question

launch file for rxbag

asked 2012-04-20 04:43:18 -0500

apalomer gravatar image

updated 2012-07-02 13:47:45 -0500

mjcarroll gravatar image

Hello, I want to launch rxbag from a launch file and load the appropiate data directly. is that possible? I've been looking but I found no examples or anything about launching rxbag from a launchfile.


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-04-21 07:58:45 -0500

Yogi gravatar image
<node pkg="rosbag" type="play" name="play" args="--bag /path/to/your/filename.bag --rate 0.5"  />
edit flag offensive delete link more

answered 2012-04-20 05:23:58 -0500

Lorenz gravatar image

updated 2012-04-20 05:24:41 -0500

  <node name="rxbag_1" pkg="rxbag" type="rxbag" args="foo.bag"/>

Although working, this throws a few exceptions because rxbag doesn't seem to ignore ros command line parameters such as __name and __log although it should...

edit flag offensive delete link more


This is bad because rxbag is the gui program responsible for visualizing bag files, and you are asking it to play the bag. That would probbaly explain all the exceotions you are getting. Better/correct way is to just use the play node in the rosbag package, as shown in answer.

Yogi gravatar image Yogi  ( 2012-04-21 08:05:29 -0500 )edit

The question was explicitly asking for rxbag and there are already plenty of examples showing how to use rosbag in roslaunch so my answer is correct. Btw it is not totally uncommon to start gui apps from roslaunch. See rviz.

Lorenz gravatar image Lorenz  ( 2012-04-21 08:48:50 -0500 )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


Asked: 2012-04-20 04:43:18 -0500

Seen: 325 times

Last updated: Apr 21 '12