forked from amov-lab/Prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile_detection.sh
executable file
·22 lines (20 loc) · 1.12 KB
/
compile_detection.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# compile common message
catkin_make --source Modules/common/msgs --build build/msgs
# compile object_detection
catkin_make --source Modules/object_detection --build build/object_detection
if [ ! -f "Modules/object_detection_landing/CMakeLists.txt" ]; then
# submodule object_detection_landing not exist, skip it
echo -e "\e[32m[INFO] SUBMODULE\e[0m \e[33mobject_detection_landing\e[0m \e[32mNOT EXIST, Skip it!\e[0m"
else
echo -e "\e[32m[INFO] COMPILE \e[33mobject_detection_landing\e[0m \e[32m...\e[0m"
# compile object_detection_landing
catkin_make --source Modules/object_detection_landing --build build/object_detection_landing
fi
if [ ! -f "Modules/object_detection_yolov5openvino/CMakeLists.txt" ]; then
# submodule object_detection_yolov5openvino not exist, skip it
echo -e "\e[32m[INFO] SUBMODULE\e[0m \e[33mobject_detection_yolov5openvino\e[0m \e[32mNOT EXIST, Skip it!\e[0m"
else
echo -e "\e[32m[INFO] COMPILE \e[33mobject_detection_yolov5openvino\e[0m \e[32m...\e[0m"
# compile object_detection_landing
catkin_make --source Modules/object_detection_yolov5openvino --build build/object_detection_yolov5openvino
fi