mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 20:17:47 +08:00
refactor: move Action Command sender to standalone node
This commit is contained in:
@@ -269,6 +269,22 @@ orbbec_target_dependencies(${PROJECT_NAME}
|
||||
rclcpp_components_register_node(
|
||||
${PROJECT_NAME} PLUGIN "orbbec_camera::OBCameraNodeDriver" EXECUTABLE orbbec_camera_node
|
||||
)
|
||||
|
||||
add_library(gige_action_command_component SHARED src/gige_action_command_node.cpp)
|
||||
target_include_directories(gige_action_command_component PUBLIC ${COMMON_INCLUDE_DIRS})
|
||||
target_link_directories(gige_action_command_component PRIVATE ${ORBBEC_LIBS_DIR})
|
||||
target_link_libraries(gige_action_command_component
|
||||
${orbbec_camera_msgs_TARGETS}
|
||||
OrbbecSDK
|
||||
rclcpp::rclcpp
|
||||
)
|
||||
orbbec_target_dependencies(gige_action_command_component rclcpp_components)
|
||||
rclcpp_components_register_node(
|
||||
gige_action_command_component
|
||||
PLUGIN "orbbec_camera::GigEActionCommandNode"
|
||||
EXECUTABLE gige_action_command_node
|
||||
)
|
||||
|
||||
# Add nodes using the macro
|
||||
add_orbbec_executable(list_devices_node tools/list_devices_node.cpp)
|
||||
add_orbbec_executable(list_depth_work_mode_node tools/list_depth_work_mode.cpp)
|
||||
@@ -360,7 +376,8 @@ rclcpp_components_register_node(
|
||||
)
|
||||
|
||||
# Install rules
|
||||
install(TARGETS ${PROJECT_NAME} frame_latency start_benchmark multi_save_rgbir ARCHIVE DESTINATION lib
|
||||
install(TARGETS ${PROJECT_NAME} gige_action_command_component frame_latency start_benchmark
|
||||
multi_save_rgbir ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user