2022-09-09 18:03:40 -03:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
|
|
Launch file to use klausen oscillaton damping ctrl in Gazebo
|
|
|
|
/-->
|
|
|
|
<launch>
|
2022-09-14 14:19:12 -03:00
|
|
|
<group ns="status">
|
|
|
|
<rosparam file="$(find oscillation_ctrl)/config/mocapGazebo_params.yaml" />
|
|
|
|
</group>
|
|
|
|
<arg name="model" default="headless_spiri"/>
|
2022-09-09 18:03:40 -03:00
|
|
|
<node
|
|
|
|
pkg="oscillation_ctrl"
|
|
|
|
type="MoCap_Localization_fake.py"
|
|
|
|
name="fakeMocap_node"
|
|
|
|
launch-prefix="xterm -e"
|
|
|
|
/>
|
|
|
|
<!-- DETERMINES DESIRED POSITION -->
|
|
|
|
<node
|
|
|
|
pkg="oscillation_ctrl"
|
|
|
|
type="wpoint_tracker.py"
|
|
|
|
name="waypoints_server"
|
|
|
|
/>
|
2022-09-14 14:19:12 -03:00
|
|
|
<!-- 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"
|
|
|
|
launch-prefix="xterm -e"
|
|
|
|
/>
|
|
|
|
<!-- PUBLISHES DESIRED COMMANDS -->
|
|
|
|
<node
|
|
|
|
pkg="oscillation_ctrl"
|
|
|
|
type="mocap_pathFollow_node"
|
|
|
|
name="mocap_pathFollow_node"
|
|
|
|
launch-prefix="xterm -e"
|
|
|
|
/>
|
|
|
|
<!-- RUNS TEST -->
|
|
|
|
<node
|
|
|
|
pkg="oscillation_ctrl"
|
|
|
|
type="mocap_runTest.py"
|
|
|
|
name="mocap_Test"
|
|
|
|
launch-prefix="xterm -e"
|
|
|
|
/>
|
|
|
|
<!-- SETS PLOAD MASS -->
|
|
|
|
<node
|
|
|
|
pkg="oscillation_ctrl"
|
|
|
|
type="set_ploadmass.py"
|
|
|
|
name="set_ploadmass"
|
|
|
|
output="screen"
|
|
|
|
/>
|
2022-09-09 18:03:40 -03:00
|
|
|
<!-- PX4 LAUNCH -->
|
2022-09-14 14:19:12 -03:00
|
|
|
<include file="$(find oscillation_ctrl)/launch/$(arg model)_mocap.launch">
|
|
|
|
</include>
|
2022-09-09 18:03:40 -03:00
|
|
|
</launch>
|
|
|
|
|