mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
91 lines
2.2 KiB
CMake
91 lines
2.2 KiB
CMake
cmake_minimum_required(VERSION 3.0.2)
|
|
project(new_mycobot_320)
|
|
add_compile_options(-std=c++11)
|
|
|
|
|
|
## Find catkin and any catkin packagess
|
|
find_package(catkin REQUIRED COMPONENTS
|
|
roscpp
|
|
rospy
|
|
std_msgs
|
|
actionlib
|
|
image_transport
|
|
cv_bridge
|
|
|
|
mycobot_communication
|
|
mycobot_description
|
|
)
|
|
|
|
## Generate messages in the 'msg' folder
|
|
# add_message_files(
|
|
# FILES
|
|
# Message1.msg
|
|
# Message2.msg
|
|
# )
|
|
|
|
## Generate services in the 'srv' folder
|
|
# add_service_files(
|
|
# FILES
|
|
# Service1.srv
|
|
# Service2.srv
|
|
# )
|
|
|
|
## Generate actions in the 'action' folder
|
|
# add_action_files(
|
|
# FILES
|
|
# Action1.action
|
|
# Action2.action
|
|
# )
|
|
|
|
## Generate added messages and services with any dependencies listed here
|
|
# generate_messages(
|
|
# DEPENDENCIES
|
|
# std_msgs
|
|
# )
|
|
|
|
## Generate dynamic reconfigure parameters in the 'cfg' folder
|
|
# generate_dynamic_reconfigure_options(
|
|
# cfg/DynReconf1.cfg
|
|
# cfg/DynReconf2.cfg
|
|
# )
|
|
|
|
## Declare a catkin package
|
|
catkin_package(
|
|
CATKIN_DEPENDS std_msgs actionlib
|
|
|
|
# INCLUDE_DIRS include
|
|
# LIBRARIES new_mycobot_320
|
|
# CATKIN_DEPENDS roscpp rospy std_msgs
|
|
# DEPENDS system_lib
|
|
)
|
|
|
|
## Specify additional locations of header files
|
|
## Your package locations should be listed before other locations
|
|
include_directories(include${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})
|
|
|
|
catkin_install_python(PROGRAMS
|
|
scripts/mycobot_320_follow_display.py
|
|
scripts/mycobot_320_slider.py
|
|
scripts/mycobot_320_gripper_slider.py
|
|
scripts/mycobot_320_teleop_keyboard.py
|
|
scripts/mycobot_320_listen_real.py
|
|
scripts/mycobot_320_listen_real_of_topic.py
|
|
scripts/mycobot_320_simple_gui.py
|
|
scripts/mycobot_320_force_gripper_slider.py
|
|
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
|
|
|
)
|
|
|
|
install(DIRECTORY launch DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
|
|
PATTERN "setup_assistant.launch" EXCLUDE)
|
|
install(DIRECTORY config DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
|
|
|
|
# find_package(OpenCV REQUIRED)
|
|
# add_executable(opencv_camera src/opencv_camera.cpp)
|
|
# Declare a C++ library
|
|
# add_library(${PROJECT_NAME}
|
|
# src/opencv_camera.cpp
|
|
# )
|
|
# target_link_libraries(opencv_camera ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
|
|
# add_executable(camera_display src/camera_display)
|
|
# target_link_libraries(camera_display ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
|