您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
45 行
905 B
45 行
905 B
cmake_minimum_required(VERSION 2.8.3)
|
|
project(robotics_demo)
|
|
|
|
find_package(catkin REQUIRED COMPONENTS
|
|
rospy
|
|
std_msgs
|
|
geometry_msgs
|
|
ros_tcp_endpoint
|
|
message_generation
|
|
)
|
|
|
|
add_message_files(DIRECTORY msg)
|
|
|
|
add_service_files(DIRECTORY srv)
|
|
|
|
generate_messages(
|
|
DEPENDENCIES
|
|
geometry_msgs
|
|
std_msgs
|
|
)
|
|
|
|
catkin_package(CATKIN_DEPENDS
|
|
ros_tcp_endpoint
|
|
message_runtime)
|
|
|
|
catkin_install_python(PROGRAMS
|
|
scripts/server_endpoint.py
|
|
scripts/position_service.py
|
|
scripts/color_publisher.py
|
|
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
|
)
|
|
|
|
|
|
#############
|
|
## Testing ##
|
|
#############
|
|
|
|
## Add gtest based cpp test target and link libraries
|
|
# catkin_add_gtest(${PROJECT_NAME}-test test/test_robotics_demo.cpp)
|
|
# if(TARGET ${PROJECT_NAME}-test)
|
|
# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
|
|
# endif()
|
|
|
|
## Add folders to be run by python nosetests
|
|
# catkin_add_nosetests(test)
|