2015-04-21 11:44:02 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8.3)
|
|
|
|
project(hand_control)
|
|
|
|
|
2015-05-27 17:41:33 +00:00
|
|
|
find_package(catkin REQUIRED COMPONENTS
|
2015-05-23 13:41:37 +00:00
|
|
|
pcl_ros
|
|
|
|
pcl_msgs
|
|
|
|
roscpp
|
|
|
|
std_msgs
|
|
|
|
geometry_msgs
|
|
|
|
message_generation
|
|
|
|
ardrone_autonomy
|
|
|
|
dynamic_reconfigure
|
|
|
|
)
|
2015-05-27 17:41:33 +00:00
|
|
|
|
2015-05-01 19:23:00 +00:00
|
|
|
find_package(
|
2015-05-23 13:41:37 +00:00
|
|
|
PkgConfig REQUIRED
|
|
|
|
)
|
2015-05-01 19:23:00 +00:00
|
|
|
|
2015-05-01 21:22:13 +00:00
|
|
|
pkg_check_modules ( ncursesw REQUIRED ncursesw)
|
2015-04-21 11:44:02 +00:00
|
|
|
|
2015-05-23 13:41:37 +00:00
|
|
|
add_message_files(
|
|
|
|
FILES
|
|
|
|
Plan.msg
|
|
|
|
)
|
2015-04-21 11:44:02 +00:00
|
|
|
|
2015-05-23 13:41:37 +00:00
|
|
|
generate_messages(
|
|
|
|
DEPENDENCIES
|
|
|
|
std_msgs
|
|
|
|
geometry_msgs
|
|
|
|
)
|
2015-04-21 11:44:02 +00:00
|
|
|
|
|
|
|
|
2015-05-23 13:41:37 +00:00
|
|
|
include_directories(
|
|
|
|
${catkin_INCLUDE_DIRS}
|
|
|
|
${ncursesw_INCLUDE_DIRS}
|
|
|
|
)
|
2015-04-21 11:44:02 +00:00
|
|
|
|
2015-05-27 20:27:57 +00:00
|
|
|
add_executable(filter src/filter.cpp)
|
|
|
|
target_link_libraries(filter ${catkin_LIBRARIES})
|
2015-04-21 11:44:02 +00:00
|
|
|
|
2015-05-01 21:22:13 +00:00
|
|
|
add_library(display src/display.cpp)
|
2015-05-01 19:23:00 +00:00
|
|
|
|
2015-05-23 13:41:37 +00:00
|
|
|
add_executable(keyboard_cmd src/keyboard_cmd.cpp)
|
2015-05-01 21:22:13 +00:00
|
|
|
target_link_libraries(keyboard_cmd display ${catkin_LIBRARIES} ${ncursesw_LIBRARIES})
|
2015-05-01 19:23:00 +00:00
|
|
|
|
2015-05-27 20:27:57 +00:00
|
|
|
add_executable(estimator src/estimator.cpp)
|
|
|
|
target_link_libraries(estimator ${catkin_LIBRARIES})
|
|
|
|
add_dependencies(estimator hand_control_generate_messages_cpp)
|
2015-05-23 13:41:37 +00:00
|
|
|
|
2015-05-27 20:27:57 +00:00
|
|
|
add_executable(commander src/commander.cpp)
|
|
|
|
target_link_libraries(commander ${catkin_LIBRARIES})
|
|
|
|
add_dependencies(commander hand_control_generate_messages_cpp)
|
2015-05-27 14:49:47 +00:00
|
|
|
|
2015-05-23 13:41:37 +00:00
|
|
|
#add dynamic reconfigure api
|
2015-05-27 17:41:33 +00:00
|
|
|
generate_dynamic_reconfigure_options(
|
2015-05-27 20:27:57 +00:00
|
|
|
cfg/Filter.cfg
|
|
|
|
cfg/Commander.cfg
|
2015-05-28 11:24:07 +00:00
|
|
|
cfg/Estimator.cfg
|
2015-05-27 17:41:33 +00:00
|
|
|
)
|
|
|
|
|
2015-05-27 20:27:57 +00:00
|
|
|
add_dependencies(filter ${PROJECT_NAME}_gencfg)
|
|
|
|
add_dependencies(commander ${PROJECT_NAME}_gencfg)
|
2015-05-28 11:24:07 +00:00
|
|
|
add_dependencies(estimator ${PROJECT_NAME}_gencfg)
|
2015-05-27 17:41:33 +00:00
|
|
|
|
|
|
|
catkin_package(
|
|
|
|
CATKIN_DEPENDS message_runtime
|
|
|
|
)
|