Skip to content

Commit

Permalink
test: Add move_joint integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-caspers committed Dec 18, 2024
1 parent 75fe842 commit e1b4f23
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/helpers/opc_ua_test_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,26 @@ fn add_methods(server: &mut Server, namespace: u16, assertion_tx: Sender<String>
"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.
Expand Down
2 changes: 2 additions & 0 deletions tests/test_bridge_methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -63,3 +64,4 @@ make_testcase_method!(
Empty,
test_disable_impedance_control
);
make_testcase_method!("move_joints", MoveJoints, test_move_joints);

0 comments on commit e1b4f23

Please sign in to comment.