Created
September 30, 2020 14:05
-
-
Save HemaZ/9e64ccde0c0216c61ca10d8a14682c16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<launch> | |
<arg name="model" default="$(find prius_description)/urdf/prius.urdf" /> | |
<!-- Take Bloc Id from YonoArc and use it as namespace --> | |
<arg name="block_id" default="b12" /> | |
<!-- Car Location also from YonoArc --> | |
<arg name="x" default="3" /> | |
<arg name="y" default="-12" /> | |
<group ns="$(arg block_id)"> | |
<param name="robot_description" textfile="$(arg model)" /> | |
<node pkg="robot_state_publisher" type="robot_state_publisher" name="robot_state_publisher" output="screen"> | |
<param name="publish_frequency" type="double" value="50.0" /> | |
<param name="tf_prefix" value="$(arg block_id)" /> | |
</node> | |
<node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-urdf -model $(arg block_id) -x $(arg x) -y $(arg y) -z 0.5 -param robot_description" /> | |
</group> | |
</launch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment