Tests · HIL bridges
Part of the OpenRAL public-symbol inventory. Hand-curated;
(LNN)markers are refreshed bytools/refresh_methods_linenos.py.
Lab-runner-only rclpy bridges that wire the real-HW HAL adapters
(UR5eRealHAL / UR10eRealHAL / FrankaPandaRealHAL / SawyerRealHAL /
AlohaHAL) onto a live ros2_control controller stack via the HALs'
injected publish_fn / state_fn callables. Off-lab they are guarded
behind importlib.util.find_spec("rclpy") is None plus a per-robot env
probe; the unit-lane conformance tests use SimTransport instead.
tests/hil/_ros_control_transport.py
Single-controller bridge. Used by UR5e, UR10e, Franka Panda, Sawyer.
_make_trajectory_publisher(node, command_topic) -> Publisher— Module-private helper that creates atrajectory_msgs/JointTrajectorypublisher with the shared HIL QoS profile. Reused by_aloha_ros_transport.py. (L58)RosControlHILTransport(node, joint_names, *, command_topic, joint_state_topic)— Subscribes tojoint_state_topic, exposespublish(_topic, msg)for the HAL's outgoing trajectories andstate()for the cached joint state. Helpers:spin_once,wait_for_first_state,last_stamp. (L68)make_hil_transport(node_name, joint_names, *, command_topic, joint_state_topic) -> tuple[Node, RosControlHILTransport, Callable[[], None]]— Factory that initialises rclpy, creates the node, and returns a teardown callable. (L179)
tests/hil/_aloha_ros_transport.py
4-way fan-out bridge for the bimanual ALOHA HAL.
AlohaHILTransport(node, joint_names, *, left_arm_command_topic, right_arm_command_topic, left_gripper_command_topic, right_gripper_command_topic, joint_state_topic)— Owns fourJointTrajectorypublishers (two arms 6-DOF + two grippers 1-DOF — Trossen gripper modeled as a 1-DOFJointTrajectoryController) and one aggregatedJointStatesubscriber.publish(topic, msg)dispatches by topic match; unknown topics raiseValueError. (L67)make_aloha_hil_transport(node_name, *, left/right arm + gripper command topics, joint_state_topic) -> tuple[Node, AlohaHILTransport, Callable[[], None]]— Factory; derives the canonical 14 joint names from the publicALOHA_REAL_DESCRIPTION.jointsso the bridge stays in lock-step with the HAL manifest. (L228)