Modified Patrol.action for patrol example

This commit is contained in:
jun 2025-02-18 15:40:01 +09:00
parent 4a52332bb2
commit f8655cb3dc
3 changed files with 11 additions and 8 deletions

View File

@ -19,6 +19,7 @@ find_package(action_msgs REQUIRED)
find_package(ament_cmake REQUIRED)
find_package(rosidl_default_generators REQUIRED)
find_package(std_msgs REQUIRED)
find_package(geometry_msgs REQUIRED)
################################################################################
# Setup for python modules and scripts
@ -46,7 +47,7 @@ rosidl_generate_interfaces(${PROJECT_NAME}
${msg_files}
${srv_files}
${action_files}
DEPENDENCIES action_msgs std_msgs
DEPENDENCIES action_msgs std_msgs geometry_msgs
ADD_LINTER_TESTS
)
ament_export_dependencies(rosidl_default_runtime)

View File

@ -1,8 +1,8 @@
# Goal
float32 radius
# Define the goal
geometry_msgs/Vector3 goal
---
# Result
bool success
# Define the result
string result
---
# Feedback
float32 left_time
# Define a feedback message
string state

View File

@ -22,10 +22,12 @@
<build_depend>builtin_interfaces</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>rosidl_default_runtime</build_depend>
<build_depend>geometry_msgs</build_depend>
<exec_depend>action_msgs</exec_depend>
<exec_depend>builtin_interfaces</exec_depend>
<exec_depend>std_msgs</exec_depend>
<exec_depend>geometry_msgs</exec_depend>
<exec_depend>rosidl_default_runtime</exec_depend>
<test_depend>ament_lint_common</test_depend>
<member_of_group>rosidl_interface_packages</member_of_group>