-
Notifications
You must be signed in to change notification settings - Fork 30
/
launch_real.sh
executable file
·40 lines (32 loc) · 1.18 KB
/
launch_real.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
#!/bin/bash
#
source ./set_env.bash
source ./setup.bash
sudo chmod 777 /dev/ttyUSB0
start_procs="viz2d_component_main
control_component_main
chassis_component_main
planning_component_main
"
SCRIPTS_PATH=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
export PLANNING_PATH=${SCRIPTS_PATH}/../modules/planning
export CONTROL_PATH=${SCRIPTS_PATH}/../modules/control
export COMMON_PATH=${SCRIPTS_PATH}/../modules/common
for proc in $start_procs; do
#save $start_procs output to log, make terminal clean
if [ "$proc"x = "planning_component_main"x ]; then
./$proc --flagfile=${PLANNING_PATH}/conf/planning.conf &
echo $proc
elif [ "$proc"x = "control_component_main"x ]; then
./$proc --flagfile=${CONTROL_PATH}/conf/control.conf &
echo $proc
elif [ "$proc"x = "viz2d_component_main"x ]; then
./$proc --flagfile=${COMMON_PATH}/data/global_flagfile.txt &
echo $proc
elif [ "$proc"x = "chassis_component_main"x ]; then
./$proc --flagfile=${COMMON_PATH}/data/global_flagfile.txt &
echo $proc
else
./$proc &
fi
done