-<!--******************************************************************************
- Barrett WAM Description
- Gazebo Ignitio Launch File
- Copyright (C) 2022, 2023 Walter Fetter Lages <w.fetter@ieee.org>
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Geneal Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see
- <http://www.gnu.org/licenses/>.
-
-*******************************************************************************-->
-
-<launch>
- <arg name="pause" default="true"/>
- <arg name="gui" default="true"/>
- <arg name="use_sim_time" default="true"/>
- <arg name="table" default="true"/>
- <arg name="bhand" default="true"/>
-
- <arg unless="$(var pause)" name="gz_pause" default="-r"/>
- <arg if="$(var pause)" name="gz_pause" default=""/>
-
- <arg unless="$(var gui)" name="gz_gui" default="-s"/>
- <arg if="$(var gui)" name="gz_gui" default=""/>
-
- <include file="$(find-pkg-share ros_gz_sim)/launch/gz_sim.launch.py">
- <arg name="gz_args" value="$(var gz_pause) $(var gz_gui) empty.sdf"/>
- </include>
-
- <include file="$(find-pkg-share wam_description)/launch/wam.launch.xml">
- <arg name="table" value="$(var table)"/>
- <arg name="bhand" value="$(var bhand)"/>
- <arg name="use_sim_time" value="$(var use_sim_time)"/>
- <arg name="ignition" value="true"/>
- </include>
-
- <node name="wam_spawner" pkg="ros_ign_gazebo" exec="create" args="-topic robot_description -name wam"/>
-
- <node name="clock_bridge" pkg="ros_gz_bridge" exec="parameter_bridge" args="/clock@rosgraph_msgs/msg/Clock[ignition.msgs.Clock">
- <param name="use_sim_time" value="$(var use_sim_time)"/>
- </node>
-</launch>