Ask Your Question
0

Launch file for UWSim problem. How do you write the node?

asked 2015-07-23 20:20:46 -0500

jhoban gravatar image

The below code portion works to launch the default UWSim node, but how do you alter it to open any other scene?

 <!-- UWSim Node-->

  <node pkg="uwsim" type="uwsim" name="uwsim" />

ROS is not familiar territory for me, but I have worked through the turtlesim and have spent time poking at variations on --configfile /.../scene.xml

Any suggestions on how this works would be appreciated. I don't want to have to ditch this project.

Thanks. J

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-07-24 05:24:29 -0500

Javier Perez gravatar image

Hi,

I usually use this code in my launch files:

<arg name="scene" default="cirs.xml" />
<node name="uwsim" pkg="uwsim" type="uwsim" args="--configfile $(arg scene)" output="screen" respawn="false" />

And launch it like this, using just the name of the scene (stored in uwsim/data/scenes):

roslaunch {package} {launchfile} scene:=shipwreck.xml

Hope it works.

edit flag offensive delete link more

Comments

It worked.

Thankyou very much for the information.

J

jhoban gravatar image jhoban  ( 2015-07-24 19:28:10 -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

1 follower

Stats

Asked: 2015-07-23 20:20:46 -0500

Seen: 130 times

Last updated: Jul 24 '15