File tree Expand file tree Collapse file tree 3 files changed +48
-21
lines changed Expand file tree Collapse file tree 3 files changed +48
-21
lines changed Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.0.2 )
1
+ cmake_minimum_required (VERSION 3.5 )
2
2
project (cob_actions)
3
3
4
- find_package (catkin REQUIRED COMPONENTS actionlib_msgs geometry_msgs message_generation)
4
+ # Default to C99
5
+ if (NOT CMAKE_C_STANDARD)
6
+ set (CMAKE_C_STANDARD 99)
7
+ endif ()
5
8
6
- add_action_files(FILES
7
- Dock.action
8
- SetBool.action
9
- SetFloat.action
10
- SetInt.action
11
- SetString.action
12
- )
9
+ # Default to C++14
10
+ if (NOT CMAKE_CXX_STANDARD)
11
+ set (CMAKE_CXX_STANDARD 14)
12
+ endif ()
13
+
14
+ if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
15
+ add_compile_options (-Wall -Wextra -Wpedantic)
16
+ endif ()
13
17
14
- generate_messages(
15
- DEPENDENCIES actionlib_msgs geometry_msgs
18
+ find_package (ament_cmake REQUIRED)
19
+ find_package (rosidl_default_generators REQUIRED)
20
+ find_package (builtin_interfaces REQUIRED)
21
+ find_package (actionlib_msgs REQUIRED)
22
+ find_package (geometry_msgs REQUIRED)
23
+
24
+ set (action_files
25
+ "action/Dock.action"
26
+ "action/SetBool.action"
27
+ "action/SetFloat.action"
28
+ "action/SetInt.action"
29
+ "action/SetString.action"
16
30
)
17
31
18
- catkin_package(
19
- CATKIN_DEPENDS actionlib_msgs geometry_msgs message_runtime
32
+ rosidl_generate_interfaces(${PROJECT_NAME}
33
+ ${action_files}
34
+ DEPENDENCIES builtin_interfaces actionlib_msgs geometry_msgs
35
+ ADD_LINTER_TESTS
20
36
)
37
+
38
+ ament_export_dependencies(rosidl_default_runtime)
39
+ ament_package()
Original file line number Diff line number Diff line change 1
- <package format =" 2" >
1
+ <?xml version =" 1.0" ?>
2
+ <?xml-model href =" http://download.ros.org/schema/package_format3.xsd" schematypens =" http://www.w3.org/2001/XMLSchema" ?>
3
+ <package format =" 3" >
2
4
<name >cob_actions</name >
3
5
<version >0.7.8</version >
4
6
<description >This Package contains Care-O-bot specific action definitions.</description >
5
7
6
8
<license >Apache 2.0</license >
7
9
8
- <url type =" website" >http://ros.org/wiki/cob_actions</url >
9
- <!-- <url type="bugtracker"></url> -->
10
-
11
10
<
maintainer email =
" [email protected] " >Felix Messmer</
maintainer >
12
11
<
author email =
" [email protected] " >Felix Messmer</
author >
13
12
14
- <buildtool_depend >catkin</buildtool_depend >
13
+ <buildtool_depend >ament_cmake</buildtool_depend >
14
+ <buildtool_depend >rosidl_default_generators</buildtool_depend >
15
15
16
- <build_depend >message_generation</build_depend >
17
- <exec_depend >message_runtime</exec_depend >
18
- <depend >actionlib_msgs</depend >
16
+ <depend >action_msgs</depend >
17
+ <depend >builtin_interfaces</depend >
19
18
<depend >geometry_msgs</depend >
20
19
20
+ <exec_depend >rosidl_default_runtime</exec_depend >
21
+
22
+ <test_depend >ament_lint_common</test_depend >
23
+
24
+ <member_of_group >rosidl_interface_packages</member_of_group >
25
+
26
+ <export >
27
+ <build_type >ament_cmake</build_type >
28
+ </export >
21
29
</package >
You can’t perform that action at this time.
0 commit comments