forked from autowarefoundation/autoware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdpp
executable file
·36 lines (31 loc) · 1.15 KB
/
dpp
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
#!/bin/bash
# get where I am
MY_PATH=$(readlink -f $(dirname $0))
# what type of terminal
OPTION_TITLE='--title'
OPTION_WORKING_DIR='working-directory'
OPTION_CORE_GEOMETRY='--geometry=50x10+0+0'
OPTION_RM_GEOMETRY='--geometry=50x10+500+0'
OPTION_COMMAND='--command'
if [ $(which gnome-terminal) ]; then
TERMINAL=gnome-terminal
elif [ $(which mate-terminal) ]; then
TERMINAL=mate-terminal
elif [ $(which xfce4-terminal) ]; then
TERMINAL=xfce4-terminal
elif [ $(which lxterminal) ]; then
TERMINAL=lxterminal
elif [ $(which konsole) ]; then
TERMINAL=konsole
OPTION_WORKING_DIR='workdir'
OPTION_CORE_GEOMETRY=''
OPTION_RM_GEOMETRY=''
OPTION_PM_GEOMETRY=''
OPTION_COMMAND='-e'
OPTION_TITLE='-T'
fi
echo "Process Manager"
# boot ros-master
${TERMINAL} ${OPTION_CORE_GEOMETRY} ${OPTION_TITLE}="roscore" --${OPTION_WORKING_DIR}=${MY_PATH} ${OPTION_COMMAND}="bash -c 'source ./devel/setup.bash; roscore'"&
# boot runtime_manager
${TERMINAL} ${OPTION_RM_GEOMETRY} ${OPTION_TITLE}="converter_manager" --${OPTION_WORKING_DIR}=${MY_PATH} ${OPTION_COMMAND}="bash -c 'source ./devel/setup.bash; rosrun data_preprocessor data_preprocessor.py'"