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

launch file for rxbag

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

apalomer gravatar image

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

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.

Cheers!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

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

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
1

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

Lorenz gravatar image

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

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

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

Comments

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 -0600 )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 -0600 )edit

Question Tools

Stats

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

Seen: 554 times

Last updated: Apr 21 '12