-
Notifications
You must be signed in to change notification settings - Fork 30
/
launch_replay_apollo.sh
executable file
·42 lines (28 loc) · 1.06 KB
/
launch_replay_apollo.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
#!/bin/bash
#
source ./set_env.bash
source ./setup.bash
start_procs="viz2d_component_main
control_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
# GLOG_v=4 ./$proc --flagfile=${PLANNING_PATH}/conf/planning.conf &
./$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
else
./$proc &
fi
done
# Hit Ctrl+C to stop, Space to pause, or 's' to step.