-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_launcher2.sh
executable file
·52 lines (48 loc) · 2.67 KB
/
main_launcher2.sh
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
#!/bin/bash
NUMID_DRONE=2
UAV_MASS=1.5
export AEROSTACK_PROJECT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
gnome-terminal \
`#---------------------------------------------------------------------------------------------` \
`# Pixhawk Interface ` \
`#---------------------------------------------------------------------------------------------` \
--tab --title "Pixhawk Interface" --command "bash -c \"
roslaunch pixhawk_interface pixhawk_interface.launch \
--wait namespace:=drone$NUMID_DRONE \
acro_mode:=true \
simulation_mode:=true \
fcu_url:=udp://:14541@localhost:14581 \
tgt_system:=$NUMID_DRONE \
tgt_component:=1;
exec bash\"" \
`#---------------------------------------------------------------------------------------------` \
`# Basic Behaviors ` \
`#---------------------------------------------------------------------------------------------` \
--tab --title "Basic Behaviors" --command "bash -c \"
roslaunch basic_quadrotor_behaviors basic_quadrotor_behaviors.launch --wait \
namespace:=drone$NUMID_DRONE;
exec bash\"" \
`#---------------------------------------------------------------------------------------------` \
`# Quadrotor Motion With DF Control ` \
`#---------------------------------------------------------------------------------------------` \
--tab --title "Quadrotor Motion With DF Control" --command "bash -c \"
roslaunch quadrotor_motion_with_df_control quadrotor_motion_with_df_control.launch --wait \
namespace:=drone$NUMID_DRONE \
uav_mass:=$UAV_MASS;
exec bash\"" \
`#---------------------------------------------------------------------------------------------` \
`# Throttle Controller ` \
`#---------------------------------------------------------------------------------------------` \
--tab --title "Throttle Controller" --command "bash -c \"
roslaunch thrust2throttle_controller thrust2throttle_controller.launch --wait \
namespace:=drone$NUMID_DRONE \
uav_mass:=$UAV_MASS;
exec bash\"" \
`#---------------------------------------------------------------------------------------------` \
`# Flightmare ` \
`#---------------------------------------------------------------------------------------------` \
--tab --title "Flightmare_px4" --command "bash -c \"
roslaunch flightmare_px4 flightmare_sitl_gazebo_2.launch --wait \
quad_name:=drone$NUMID_DRONE;
exec bash\"" &
sleep 5