2022-04-25 11:18:49 -03:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
|
|
Launch file to use klausen oscillaton damping ctrl in Gazebo
|
|
|
|
/-->
|
|
|
|
<launch>
|
|
|
|
<arg name="model" default="headless_spiri_with_tether"/>
|
2022-06-06 17:15:33 -03:00
|
|
|
<arg name="test" default="none"/>
|
2022-09-14 14:19:12 -03:00
|
|
|
|
2022-04-25 11:18:49 -03:00
|
|
|
<group ns="status">
|
2022-09-14 14:19:12 -03:00
|
|
|
<rosparam file="$(find oscillation_ctrl)/config/spiri_params.yaml" />
|
2022-04-25 11:18:49 -03:00
|
|
|
<param name="test_type" value="$(arg test)"/>
|
|
|
|
</group>
|
|
|
|
|
|
|
|
<!-- LOCALIZES DRONE & DETERMINES LOAD ANGLES -->
|
|
|
|
<node
|
|
|
|
pkg="oscillation_ctrl"
|
|
|
|
type="LinkState.py"
|
|
|
|
name="linkStates_node"
|
|
|
|
launch-prefix="xterm -e"
|
|
|
|
/>
|
|
|
|
<!-- DETERMINES DESIRED POSITION -->
|
|
|
|
<node
|
|
|
|
pkg="oscillation_ctrl"
|
|
|
|
type="wpoint_tracker.py"
|
|
|
|
name="waypoints_server"
|
|
|
|
/>
|
|
|
|
<!-- CREATES DESIRED TRAJECTORY/ REFERENCE SIGNAL -->
|
|
|
|
<node
|
|
|
|
pkg="oscillation_ctrl"
|
|
|
|
type="ref_signalGen.py"
|
|
|
|
name="refSignal_node"
|
|
|
|
/>
|
|
|
|
<!-- DETERMINES DESIRED ATTITUDE AND THRUST BASED ON REF. SIG. -->
|
|
|
|
<node
|
|
|
|
pkg="oscillation_ctrl"
|
|
|
|
type="klausen_control.py"
|
|
|
|
name="klausenCtrl_node"
|
|
|
|
/>
|
|
|
|
<!-- PUBLISHES DESIRED COMMANDS -->
|
|
|
|
<node
|
|
|
|
pkg="oscillation_ctrl"
|
|
|
|
type="pathFollow_node"
|
|
|
|
name="pathFollow_node"
|
|
|
|
launch-prefix="xterm -e"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!-- RUNS DIFFERENT TESTS IF DESIRED -->
|
|
|
|
<group if="$(eval test != 'none')">
|
|
|
|
<node
|
|
|
|
pkg="oscillation_ctrl"
|
|
|
|
type="perform_test.py"
|
|
|
|
name="test_node"
|
|
|
|
launch-prefix="xterm -e"
|
|
|
|
/>
|
|
|
|
</group>
|
2022-09-14 15:58:08 -03:00
|
|
|
<!-- SETS PLOAD MASS -->
|
|
|
|
<node
|
|
|
|
pkg="oscillation_ctrl"
|
|
|
|
type="set_ploadmass.py"
|
|
|
|
name="set_ploadmass"
|
|
|
|
output="screen"
|
|
|
|
/>
|
2022-04-25 11:18:49 -03:00
|
|
|
<!-- PX4 LAUNCH -->
|
2022-06-06 17:15:33 -03:00
|
|
|
<include file="$(find oscillation_ctrl)/launch/$(arg model).launch"/>
|
2022-04-25 11:18:49 -03:00
|
|
|
</launch>
|