Skip to content

Commit 0dc6f08

Browse files
committed
Create coffee_head_motion_recorder_msgs package
1 parent b76b67e commit 0dc6f08

File tree

5 files changed

+68
-0
lines changed

5 files changed

+68
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
cmake_minimum_required(VERSION 3.8)
2+
project(coffee_head_motion_recorder_msgs)
3+
4+
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
5+
add_compile_options(-Wall -Wextra -Wpedantic)
6+
endif()
7+
8+
# find dependencies
9+
find_package(ament_cmake REQUIRED)
10+
find_package(std_msgs REQUIRED)
11+
find_package(rosidl_default_generators REQUIRED)
12+
13+
rosidl_generate_interfaces(${PROJECT_NAME}
14+
"srv/SaveMotion.srv"
15+
"srv/LoadMotion.srv"
16+
"srv/ListMotions.srv"
17+
DEPENDENCIES std_msgs
18+
)
19+
20+
if(BUILD_TESTING)
21+
find_package(ament_lint_auto REQUIRED)
22+
# the following line skips the linter which checks for copyrights
23+
# comment the line when a copyright and license is added to all source files
24+
set(ament_cmake_copyright_FOUND TRUE)
25+
# the following line skips cpplint (only works in a git repo)
26+
# comment the line when this package is in a git repo and when
27+
# a copyright and license is added to all source files
28+
set(ament_cmake_cpplint_FOUND TRUE)
29+
ament_lint_auto_find_test_dependencies()
30+
endif()
31+
32+
ament_package()
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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">
4+
<n>coffee_head_motion_recorder_msgs</n>
5+
<version>0.0.0</version>
6+
<description>Service definitions for coffee head motion recorder package</description>
7+
<maintainer email="[email protected]">kpatch</maintainer>
8+
<license>Apache-2.0</license>
9+
10+
<buildtool_depend>ament_cmake</buildtool_depend>
11+
12+
<depend>std_msgs</depend>
13+
<build_depend>rosidl_default_generators</build_depend>
14+
<exec_depend>rosidl_default_runtime</exec_depend>
15+
<member_of_group>rosidl_interface_packages</member_of_group>
16+
17+
<test_depend>ament_lint_auto</test_depend>
18+
<test_depend>ament_lint_common</test_depend>
19+
20+
<export>
21+
<build_type>ament_cmake</build_type>
22+
</export>
23+
</package>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Empty request
2+
---
3+
bool success # Whether the operation was successful
4+
string message # Success/error message
5+
string[] motion_list # List of available motion names
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
string name # Motion name to load
2+
---
3+
bool success # Whether the operation was successful
4+
string message # Additional information or error message
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
string name # Motion name to save
2+
---
3+
bool success # Whether the operation was successful
4+
string message # Additional information or error message

0 commit comments

Comments
 (0)