forked from amov-lab/Prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile_detection.sh
executable file
·23 lines (22 loc) · 1.08 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
23
#!/bin/bash
# 脚本名称: compile_detection.sh
# 脚本描述: 编译Prometheus目标检测模块
# 编译基础模块
catkin_make --source Modules/common --build build/common
# 编译Gazebo仿真模块
catkin_make --source Simulator/gazebo_simulator --build build/prometheus_gazebo
# 编译控制模块
catkin_make --source Modules/uav_control --build build/uav_control
# 编译demo模块
catkin_make --source Modules/tutorial_demo --build build/tutorial_demo
# 编译目标检测模块
catkin_make --source Modules/object_detection --build build/object_detection
# compile object_detection_yolov5tensorrt
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