ros tests: add an interactive flag & disable the PX4 shell for ROS tests (#9672)

This commit is contained in:
Beat Küng
2018-06-14 12:37:47 -04:00
committed by Daniel Agar
parent 753ad0e0df
commit b66f0f36a5
8 changed files with 23 additions and 2 deletions
+5 -1
View File
@@ -21,8 +21,12 @@
<arg name="verbose" default="false"/>
<arg name="paused" default="false"/>
<arg name="respawn_gazebo" default="false"/>
<!-- PX4 configs -->
<arg name="interactive" default="true"/>
<!-- PX4 SITL -->
<node name="sitl" pkg="px4" type="px4" output="screen" args="$(find px4) $(arg rcS)"/>
<arg unless="$(arg interactive)" name="px4_command_arg1" value="-d"/>
<arg if="$(arg interactive)" name="px4_command_arg1" value=""/>
<node name="sitl" pkg="px4" type="px4" output="screen" args="$(find px4) $(arg rcS) $(arg px4_command_arg1)"/>
<!-- Gazebo sim -->
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="gui" value="$(arg gui)"/>