|
1 | | -cmake_minimum_required(VERSION 3.0.2) |
| 1 | +cmake_minimum_required(VERSION 3.8) |
2 | 2 | project(cartesian_control_msgs) |
3 | 3 |
|
4 | | -## Compile as C++11, supported in ROS Kinetic and newer |
5 | | -# add_compile_options(-std=c++11) |
6 | | - |
7 | | -## Find catkin macros and libraries |
8 | | -## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz) |
9 | | -## is used, also find other catkin packages |
10 | | -find_package(catkin REQUIRED COMPONENTS |
11 | | - actionlib_msgs |
12 | | - geometry_msgs |
13 | | - message_generation |
14 | | -) |
15 | | - |
16 | | -################################################ |
17 | | -## Declare ROS messages, services and actions ## |
18 | | -################################################ |
19 | | - |
20 | | -add_message_files( |
21 | | - FILES |
22 | | - CartesianPosture.msg |
23 | | - CartesianTolerance.msg |
24 | | - CartesianTrajectory.msg |
25 | | - CartesianTrajectoryPoint.msg |
26 | | -) |
27 | | - |
28 | | -# add_service_files( |
29 | | -# FILES |
30 | | -# Service1.srv |
31 | | -# Service2.srv |
32 | | -# ) |
33 | | - |
34 | | -add_action_files( |
35 | | - FILES |
36 | | - FollowCartesianTrajectory.action |
37 | | -) |
38 | | - |
39 | | -## Generate added messages and services with any dependencies listed here |
40 | | -generate_messages( |
| 4 | +if(CMAKE_COMPILER_IS_GNUXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
| 5 | + add_compile_options(-Wall -Wextra -Wpedantic) |
| 6 | +endif() |
| 7 | + |
| 8 | +find_package(ament_cmake REQUIRED) |
| 9 | +find_package(action_msgs REQUIRED) |
| 10 | +find_package(builtin_interfaces REQUIRED) |
| 11 | +find_package(geometry_msgs REQUIRED) |
| 12 | +find_package(rosidl_default_generators REQUIRED) |
| 13 | +find_package(std_msgs REQUIRED) |
| 14 | + |
| 15 | +rosidl_generate_interfaces(${PROJECT_NAME} |
| 16 | + "action/FollowCartesianTrajectory.action" |
| 17 | + "msg/CartesianPosture.msg" |
| 18 | + "msg/CartesianTolerance.msg" |
| 19 | + "msg/CartesianTrajectory.msg" |
| 20 | + "msg/CartesianTrajectoryPoint.msg" |
41 | 21 | DEPENDENCIES |
42 | | - actionlib_msgs |
| 22 | + action_msgs |
| 23 | + builtin_interfaces |
43 | 24 | geometry_msgs |
| 25 | + std_msgs |
44 | 26 | ) |
45 | 27 |
|
| 28 | +ament_export_dependencies(rosidl_default_runtime) |
46 | 29 |
|
47 | | -################################### |
48 | | -## catkin specific configuration ## |
49 | | -################################### |
50 | | -## The catkin_package macro generates cmake config files for your package |
51 | | -## Declare things to be passed to dependent projects |
52 | | -## INCLUDE_DIRS: uncomment this if your package contains header files |
53 | | -## LIBRARIES: libraries you create in this project that dependent projects also need |
54 | | -## CATKIN_DEPENDS: catkin_packages dependent projects also need |
55 | | -## DEPENDS: system dependencies of this project that dependent projects also need |
56 | | -catkin_package( |
57 | | -# INCLUDE_DIRS include |
58 | | -# LIBRARIES cartesian_control_msgs |
59 | | - CATKIN_DEPENDS |
60 | | - actionlib_msgs |
61 | | - geometry_msgs |
62 | | - message_runtime |
63 | | -# DEPENDS system_lib |
64 | | -) |
| 30 | +ament_package() |
0 commit comments