Skip to content

Commit e2d6a9e

Browse files
committed
port cob_actions
1 parent 2334c26 commit e2d6a9e

File tree

3 files changed

+48
-21
lines changed

3 files changed

+48
-21
lines changed

cob_actions/CMakeLists.txt

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,39 @@
1-
cmake_minimum_required(VERSION 3.0.2)
1+
cmake_minimum_required(VERSION 3.5)
22
project(cob_actions)
33

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()
58

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()
1317

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"
1630
)
1731

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
2036
)
37+
38+
ament_export_dependencies(rosidl_default_runtime)
39+
ament_package()

cob_actions/COLCON_IGNORE

Whitespace-only changes.

cob_actions/package.xml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
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">
24
<name>cob_actions</name>
35
<version>0.7.8</version>
46
<description>This Package contains Care-O-bot specific action definitions.</description>
57

68
<license>Apache 2.0</license>
79

8-
<url type="website">http://ros.org/wiki/cob_actions</url>
9-
<!-- <url type="bugtracker"></url> -->
10-
1110
<maintainer email="[email protected]">Felix Messmer</maintainer>
1211
<author email="[email protected]">Felix Messmer</author>
1312

14-
<buildtool_depend>catkin</buildtool_depend>
13+
<buildtool_depend>ament_cmake</buildtool_depend>
14+
<buildtool_depend>rosidl_default_generators</buildtool_depend>
1515

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>
1918
<depend>geometry_msgs</depend>
2019

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>
2129
</package>

0 commit comments

Comments
 (0)