-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstart_dobmpc_demo.launch
84 lines (70 loc) · 3.21 KB
/
start_dobmpc_demo.launch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<launch>
<!-- Flag to start recoding a rosbag -->
<arg name="record" default="false"/>
<!-- Initial position and heading of the vehicle (wrt Gazebo's inertial frame) -->
<arg name="x" default="-50"/>
<arg name="y" default="0"/>
<arg name="z" default="-20"/>
<arg name="yaw" default="0"/>
<arg name="use_ned_frame" default="false"/>
<!-- Set Gauss-Markov parameters of the current velocity in m/s -->
<!-- <arg name="component_vel" default="velocity"/>
<arg name="mean_vel" default="0.2"/>
<arg name="min_vel" default="0.0"/>
<arg name="max_vel" default="0.4"/>
<arg name="noise_vel" default="0.05"/>
<arg name="mu_vel" default="0.0"/> -->
<!-- Initialize the Gazebo world -->
<include file="$(find bluerov2_description)/launch/ocean_waves.launch"/>
<!-- Add the BlueROV2 vehicle to the world -->
<include file="$(find bluerov2_description)/launch/upload.launch">
<arg name="x" default="$(arg x)"/>
<arg name="y" default="$(arg y)"/>
<arg name="z" default="$(arg z)"/>
<arg name="yaw" default="$(arg yaw)"/>
<arg name="use_ned_frame" value="$(arg use_ned_frame)"/>
</include>
<!-- Start the PID controller with its default parameters for the bluerov2 vehicle -->
<!-- <include file="$(find bluerov2_control)/launch/rov_pid_controller.launch">
<arg name="uuv_name" value="bluerov2"/>
<arg name="model_name" value="bluerov2"/>
<arg name="use_ned_frame" value="$(arg use_ned_frame)"/>
</include> -->
<!-- Start the MPC controller with its default parameters for the bluerov2 vehicle -->
<include file="$(find bluerov2_dobmpc)/launch/dob.launch"/>
<!-- <include file="$(find uuv_control_utils)/launch/start_circular_trajectory.launch">
<arg name="uuv_name" value="bluerov2"/>
<arg name="radius" value="2"/>
<arg name="center_x" value="0"/>
<arg name="center_y" value="0"/>
<arg name="center_z" value="-20"/>
<arg name="n_points" value="50"/>
<arg name="duration" default="100"/>
<arg name="max_forward_speed" value="50"/>
</include> -->
<include file="$(find uuv_control_utils)/launch/apply_body_wrench.launch">
<arg name="uuv_name" value="bluerov2"/>
<arg name="starting_time" default="1"/>
<arg name="duration" default="10000"/>
<arg name="force_x" default="0"/>
<arg name="force_y" default="0"/>
<arg name="force_z" default="0"/>
<arg name="torque_z" default="0"/>
</include>
<!-- Real-time 3d plot
<node
name="plotter"
pkg="bluerov2_mpc"
type="python"
output="screen"
args="$(find bluerov2_mpc)/scripts/plot.py"
/>
-->
<!-- Initialize the recording fo the simulation according to the record flag -->
<include file="$(find uuv_gazebo)/launch/controller_demos/record_demo.launch">
<arg name="record" value="$(arg record)"/>
<arg name="use_ned_frame" value="$(arg use_ned_frame)"/>
</include>
<!-- Start RViz -->
<!-- <node name="rviz" pkg="rviz" type="rviz" output="screen" args="-d $(find bluerov2_control)/rviz/bluerov2_control.rviz"/> -->
</launch>