XTDrone/sitl_config/ugv/catvehicle/launch/humancar_spawn.launch

65 lines
2.3 KiB
XML

<!--
Author: Jonathan Sprinkle, Sam Taylor, Alex Warren, Rahul Bhadani
Copyright (c) 2015-2020 Arizona Board of Regents
All rights reserved.
Permission is hereby granted, without written agreement and without
license or royalty fees, to use, copy, modify, and distribute this
software and its documentation for any purpose, provided that the
above copyright notice and the following two paragraphs appear in
all copies of this software.
IN NO EVENT SHALL THE ARIZONA BOARD OF REGENTS BE LIABLE TO ANY PARTY
FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
THE ARIZONA BOARD OF REGENTS SPECIFICALLY DISCLAIMS ANY WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER
IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION
TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
Summary:
=======
This launch file loads the autonomous car in stationary state into the world"
Prerequisite:
=============
1. Load the world
roslaunch humancar humancar_empty.launch
How to execute this file?
========================
roslaunch humancar humancar_spawn.launch robot:=acar_sim X:=0 Y:=0 Z:=0 roll:=0 pitch:=0 yaw:=0
-->
<launch>
<!-- JMS trying to set statistics param -->
<param name="enable_statistics" value="true" />
<arg name="robot" default="humancar"/>
<arg name="X" default="0"/>
<arg name="Y" default="0"/>
<arg name="Z" default="0"/>
<arg name="roll" default="0"/>
<arg name="pitch" default="0"/>
<arg name="yaw" default="0"/>
<group ns="$(arg robot)">
<param name="robot_description" command="$(find xacro)/xacro.py '$(find catvehicle)/urdf/humancar.xacro' roboname:='$(arg robot)'" />
<include file="$(find catvehicle)/launch/humancar.launch">
<arg name="robot_name" value="$(arg robot)"/>
<arg name="init_pose" value="-x $(arg X) -y $(arg Y) -z $(arg Z) -R $(arg roll) -P $(arg pitch) -Y $(arg yaw)"/>
<arg name="config_file" value="catvehicle_control.yaml"/>
</include>
</group>
</launch>