-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
44 lines (37 loc) · 1.57 KB
/
CMakeLists.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
39
40
41
42
43
44
# http://ros.org/doc/groovy/api/catkin/html/user_guide/supposed.html
cmake_minimum_required(VERSION 2.8.3)
project(segbot_navigation)
find_package(catkin REQUIRED COMPONENTS bwi_interruptable_action_server geometry_msgs move_base_msgs nav_msgs std_srvs)
catkin_package(
CATKIN_DEPENDS bwi_interruptable_action_server geometry_msgs move_base_msgs nav_msgs std_srvs
)
include_directories(${catkin_INCLUDE_DIRS})
add_executable(move_base_interruptable_server src/move_base_interruptable_server.cpp)
target_link_libraries(move_base_interruptable_server
${catkin_LIBRARIES}
)
install(TARGETS move_base_interruptable_server
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
foreach(dir config launch rviz)
install(DIRECTORY ${dir}/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir})
endforeach()
catkin_install_python(PROGRAMS scripts/move_base_interruptable_simple scripts/rviz_runner
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
# Install the teleoperation script for rosrun
install(PROGRAMS
scripts/rviz_runner
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
# unit tests are enabled selectively
if (CATKIN_ENABLE_TESTING)
find_package(roslaunch REQUIRED)
roslaunch_add_file_check(launch/amcl.launch)
roslaunch_add_file_check(launch/gmapping.launch)
roslaunch_add_file_check(launch/move_base_eband.launch)
roslaunch_add_file_check(launch/rviz.launch)
## launch/navigation.launch not tested until
## ros-drivers/openni_launch#10 is fixed.
endif ()