Skip to content

Commit

Permalink
feat: Link OPC UA and ROS for move_joints
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-caspers committed Dec 18, 2024
1 parent 178f0cc commit 4e01534
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<voraus_interfaces::srv::MoveJoints, _>("~/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<Subscription<Wrench>> = ros_node.create_subscription(
"~/impedance_control/set_wrench",
Expand Down

0 comments on commit 4e01534

Please sign in to comment.