action 客户端服务端写完

This commit is contained in:
2026-02-13 18:50:10 +08:00
parent fa96a6610a
commit 5dc6d564c0
68 changed files with 7317 additions and 131 deletions

View File

@@ -26,6 +26,7 @@ add_executable(cpp_sub_node src/cpp_sub_topic.cpp)
add_executable(cpp_server_service src/cpp_server_service.cpp)
add_executable(cpp_client_service src/cpp_client_service.cpp)
add_executable(cpp_server_action src/cpp_server_action.cpp)
add_executable(cpp_client_action src/cpp_client_acton.cpp)
# 链接对应的库
ament_target_dependencies(cpp_pub_node rclcpp std_msgs)
@@ -33,6 +34,7 @@ ament_target_dependencies(cpp_sub_node rclcpp std_msgs)
ament_target_dependencies(cpp_server_service rclcpp std_msgs cpp_prococol)
ament_target_dependencies(cpp_client_service rclcpp std_msgs cpp_prococol)
ament_target_dependencies(cpp_server_action rclcpp rclcpp_action cpp_prococol)
ament_target_dependencies(cpp_client_action rclcpp rclcpp_action cpp_prococol)
if(BUILD_TESTING)
@@ -48,7 +50,7 @@ if(BUILD_TESTING)
endif()
install(
TARGETS cpp_pub_node cpp_sub_node cpp_server_service cpp_client_service cpp_server_action
TARGETS cpp_pub_node cpp_sub_node cpp_server_service cpp_client_service cpp_server_action cpp_client_action
DESTINATION lib/${PROJECT_NAME}
)