sas
Modularised monitoring, logging, and control of robots.
Loading...
Searching...
No Matches
test_robot_driver_client_server Namespace Reference

Functions

 rclpy_context ()
 _pump (*nodes)
 _wait_until (predicate, *nodes, timeout=TIMEOUT)
 _close (a, b)
 _prime (server, q, qd=None, tau=None)
 test_target_joint_positions_round_trip (rclpy_context)
 test_target_joint_velocities_round_trip (rclpy_context)
 test_target_joint_forces_round_trip (rclpy_context)
 test_homing_and_clear_signals_round_trip (rclpy_context)
 test_joint_states_round_trip (rclpy_context)
 test_joint_limits_and_home_states_round_trip (rclpy_context)
 test_enabled_queries (rclpy_context)

Variables

float TIMEOUT = 15.0
list Q_MIN = [-1.0, -2.0, -3.0, -4.0, -5.0, -6.0]
list Q_MAX = [1.0, 2.0, 3.0, 4.0, 5.0, 6.0]

Detailed Description

Round-trip tests for the RobotDriverClient and RobotDriverServer bindings.

Both peers run in-process on rclcpp nodes attached to the rclpy-initialized
context, mirroring how simulator drivers use them (see simros2_manager).

Function Documentation

◆ _prime()

_prime ( server,
q,
qd = None,
tau = None )
protected
Publish the state/limit streams the client getters gate on.

◆ rclpy_context()

rclpy_context ( )
Initialize the ROS context once for the whole module.