Ask Your Question

Launch file with xacro parameter

asked 2012-04-23 03:54:37 -0500

Neostek gravatar image

Hi all, I have some problem in simulating multi-robot systems in Gazebo/ROS. The problem is in the topic name since every robot subscribes to the same topic (e.g. for a laser in base_scan/scan). I would like to pretag it (e.g. robotname/base_scan/scan). Is there anyone with the same problem? I already tried with xacro, i.e. I create a tag of my robot (including the canonical link) but the launch file seems that does not like a macro initialization in it. Any other suggestions? Thank you for your time,


P.S. IF it could help, my launch file looks like this <launch>

<node name="gazebo" pkg="gazebo" type="gazebo" args="$(find labrob_diffDrive3d_description)/worlds/" respawn="false" output="screen"/>

<node name="spawn_kh31" 
  pkg="gazebo" type="spawn_model"
  args="-urdf -param robot_file -model robot1 -x 0 -y 0 -z 0.2"
  respawn="false" output="screen"

</launch> This is the version not using the macro file

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-10-18 18:21:06 -0500

Jakub gravatar image
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


Asked: 2012-04-23 03:54:37 -0500

Seen: 1,429 times

Last updated: Oct 18 '12