-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestcmake.txt
38 lines (30 loc) · 1.29 KB
/
testcmake.txt
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
cmake_minimum_required(VERSION 3.0.2)
project(AVT)
# Are you using any external ROS packages in your code? If so, copy the name of the package below.
find_package(catkin REQUIRED
COMPONENTS cv_bridge nodelet rospy message_generation std_msgs sensor_msgs)
find_package(OpenCV REQUIRED)
# Add message files that your program publishes or subscribes to.
add_message_files(FILES
DIRECTORY msg
ObjectMsg.msg
)
# Add services that your program uses
add_service_files(FILES
DIRECTORY srv
)
catkin_python_setup()
generate_messages(DEPENDENCIES std_msgs sensor_msgs)
# Are you using any external ROS packages in your code? If so, copy the name of the package below.
catkin_package(
INCLUDE_DIRS include
LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS roscpp nodelet cv_bridge nodelet rospy message_runtime std_msgs sensor_msgs sensor_msgs
DEPENDS OpenCV)
# For each .c or .cpp file, copy the below lines and fill in the name of your file.
#add_executable(message_program src/xxx.cpp)
add_dependencies(message_program ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
# For each .py file, copy the below lines and fill in the name of your script.
catkin_install_python(PROGRAMS scripts/object_detection_node.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)