2016-04-20 11:51:58 -03:00
|
|
|
<launch>
|
2016-08-05 07:23:59 -03:00
|
|
|
|
2016-04-20 11:51:58 -03:00
|
|
|
<!-- Posix SITL environment launch script -->
|
|
|
|
|
2016-08-05 07:23:59 -03:00
|
|
|
<arg name="vehicle" default="iris"/>
|
|
|
|
<arg name="world" default="$(find mavlink_sitl_gazebo)/worlds/empty.world"/>
|
|
|
|
<arg name="sdf" default="$(find mavlink_sitl_gazebo)/models/$(arg vehicle)/$(arg vehicle).sdf"/>
|
|
|
|
<arg name="rcS" default="$(find px4)/posix-configs/SITL/init/rcS_gazebo_$(arg vehicle)"/>
|
|
|
|
|
2016-04-20 11:51:58 -03:00
|
|
|
<arg name="headless" default="false"/>
|
|
|
|
<arg name="gui" default="true"/>
|
|
|
|
<arg name="ns" default="/"/>
|
|
|
|
<arg name="build" default="posix_sitl_default"/>
|
|
|
|
|
2016-08-05 07:23:59 -03:00
|
|
|
<node name="sitl" pkg="px4" type="px4" output="screen"
|
|
|
|
args="$(find px4) $(arg rcS)">
|
2016-04-20 11:51:58 -03:00
|
|
|
</node>
|
|
|
|
|
|
|
|
<include file="$(find gazebo_ros)/launch/empty_world.launch">
|
|
|
|
<arg name="headless" value="$(arg headless)"/>
|
|
|
|
<arg name="gui" value="$(arg gui)"/>
|
2016-08-05 07:23:59 -03:00
|
|
|
<arg name="world_name" value="$(arg world)" />
|
2016-04-20 11:51:58 -03:00
|
|
|
</include>
|
2016-08-05 07:23:59 -03:00
|
|
|
|
|
|
|
<node name="$(anon vehicle_spawn)" output="screen" pkg="gazebo_ros" type="spawn_model"
|
|
|
|
args="-sdf -file $(arg sdf) -model $(arg vehicle)"/>
|
|
|
|
|
|
|
|
|
2016-04-20 11:51:58 -03:00
|
|
|
</launch>
|
2016-08-05 07:23:59 -03:00
|
|
|
|
|
|
|
<!-- vim: set et ft=xml fenc=utf-8 ff=unix sts=0 sw=4 ts=4 : -->
|