Skip to content

Commit

Permalink
Add message files
Browse files Browse the repository at this point in the history
  • Loading branch information
NaokiTakahashi12 committed Apr 16, 2024
1 parent 7ed4b70 commit 91c01c5
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 3 deletions.
18 changes: 15 additions & 3 deletions cybergear_driver_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,21 @@ endif()

# find dependencies
find_package(ament_cmake REQUIRED)
# uncomment the following section in order to fill in
# further dependencies manually.
# find_package(<dependency> REQUIRED)
find_package(ament_cmake_auto REQUIRED)

ament_auto_find_build_dependencies()

rosidl_generate_interfaces(${PROJECT_NAME}
msg/Setpoint.msg
msg/SetpointStamped.msg
msg/SetpointWithGain.msg
msg/SetpointWithGainStamped.msg
DEPENDENCIES
builtin_interfaces
std_msgs
)

ament_export_dependencies(rosidl_default_runtime)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
Expand Down
3 changes: 3 additions & 0 deletions cybergear_driver_msgs/msg/Setpoint.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
float32 position
float32 velocity
float32 effort
2 changes: 2 additions & 0 deletions cybergear_driver_msgs/msg/SetpointStamped.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
std_msgs/Header header
Setpoint point
3 changes: 3 additions & 0 deletions cybergear_driver_msgs/msg/SetpointWithGain.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Setpoint point
float32 kp
float32 kd
2 changes: 2 additions & 0 deletions cybergear_driver_msgs/msg/SetpointWithGainStamped.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
std_msgs/Header header
SetpointWithGain point_with_gain
7 changes: 7 additions & 0 deletions cybergear_driver_msgs/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,17 @@
<license>MIT</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>ament_cmake_auto</buildtool_depend>
<buildtool_depend>rosidl_default_generators</buildtool_depend>

<depend>builtin_interfaces</depend>
<depend>std_msgs</depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>

<member_of_group>rosidl_interface_packages</member_of_group>

<export>
<build_type>ament_cmake</build_type>
</export>
Expand Down

0 comments on commit 91c01c5

Please # to comment.