diff --git a/tests/helpers/opc_ua_test_server.rs b/tests/helpers/opc_ua_test_server.rs index c51773f..d7e8832 100644 --- a/tests/helpers/opc_ua_test_server.rs +++ b/tests/helpers/opc_ua_test_server.rs @@ -102,6 +102,26 @@ fn add_methods(server: &mut Server, namespace: u16, assertion_tx: Sender "impedance_control/disable".to_string(), assertion_tx.clone(), ); + add_method_stub( + server, + NodeId::new(namespace, 100210), + NodeId::new(namespace, 100211), + Some(vec![ + Variant::Boolean(false), + Variant::UInt32(0), + Variant::Double(0.0), + Variant::UInt32(0), + Variant::Double(0.0), + Variant::Boolean(false), + Variant::Double(0.0), + Variant::Int32(0), + Variant::UInt32(0), + Variant::Boolean(false), + ]), + None, + "move_joints".to_string(), + assertion_tx.clone(), + ); } /// Creates an OPC UA variable that is monotonously increasing. diff --git a/tests/test_bridge_methods.rs b/tests/test_bridge_methods.rs index 9d92e31..04321f6 100644 --- a/tests/test_bridge_methods.rs +++ b/tests/test_bridge_methods.rs @@ -6,6 +6,7 @@ use std::{ use common::{wait_for_function_to_pass, ManagedRosBridge}; use helpers::opc_ua_test_server::OPCUATestServer; use std_srvs::srv::Empty; +use voraus_interfaces::srv::MoveJoints; pub mod common; pub mod helpers; @@ -63,3 +64,4 @@ make_testcase_method!( Empty, test_disable_impedance_control ); +make_testcase_method!("move_joints", MoveJoints, test_move_joints);