-
Notifications
You must be signed in to change notification settings - Fork 30
/
launch_dreamview_plus.sh
executable file
·52 lines (40 loc) · 1.53 KB
/
launch_dreamview_plus.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
#
source ./set_env.bash
source ./setup.bash
DREAMVIEW_URL="http://localhost:8888"
# start_procs="
# viz2d_component_main
# control_component_main
# virtual_chassis_component_main
# planning_component_main
# dreamview2_main"
start_procs="
dreamview2_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
export DV2_PATH=${SCRIPTS_PATH}/../modules/dreamview_plus
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
elif [ "$proc"x = "virtual_chassis_component_main"x ]; then
./$proc --flagfile=${COMMON_PATH}/data/global_flagfile.txt &
echo $proc
elif [ "$proc"x = "dreamview2_main"x ]; then
./$proc --flagfile=${DV2_PATH}/conf/dreamview.conf &
echo $proc
else
./$proc &
fi
done