From 4e015349d9f5728fe1acdc36236748d90cf3ce0a Mon Sep 17 00:00:00 2001 From: Philipp Caspers <117186241+philipp-caspers@users.noreply.github.com> Date: Fri, 13 Dec 2024 15:36:20 +0000 Subject: [PATCH] feat: Link OPC UA and ROS for `move_joints` --- src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.rs b/src/main.rs index 39cec30..9bbaf36 100644 --- a/src/main.rs +++ b/src/main.rs @@ -59,6 +59,13 @@ fn main() -> Result<(), RclrsError> { move |request_header, request| rsc.disable_impedance_control(request_header, request) }); + let ros_node_copy = Arc::clone(&ros_node); + let _move_joints = + ros_node_copy.create_service::("~/move_joints", { + let rsc = Arc::clone(&ros_services); + move |request_header, request| rsc.move_joints(request_header, request) + }); + let opc_ua_client_copy = Arc::clone(&opc_ua_client); let _wrench_subscriber: Arc> = ros_node.create_subscription( "~/impedance_control/set_wrench",