Skip to content

ROS 2 Lifecycle Nodes (packages/)

Part of the OpenRAL public-symbol inventory. Hand-curated; (LNN) markers are refreshed by tools/refresh_methods_linenos.py.

Thin wrappers around the Python-layer adapters; each exposes a single main() entry point for ros2 run.

packages/openral_hal_node/openral_hal_node/lifecycle_node.py

  • main() -> None (L28) — The one manifest-driven HAL lifecycle node every robot runs: openral_hal.lifecycle.make_lifecycle_main_from_manifest(node_name="openral_hal_node"), i.e. a ManifestHALLifecycleNode that builds its HAL from the robot_yaml + hal_mode parameters via openral_hal.build_hal. Heartbeat, /openral/safe_action consumer and /openral/estop latch come from HALLifecycleNodeBase. openral deploy sim|run launches it under the ROS node NAME openral_hal_<robot_id> (a __node:= remap — not a package name). Covered by packages/openral_hal_node/test/ (parametrised by robot manifest) and tests/integration/test_openarm_hal_lifecycle.py.

packages/world_state/openral_world_state_ros/lifecycle_node.py

  • main() -> None (L89) — WorldStateAggregator lifecycle node. Subscribes joint/policy/camera (camera_topic(name) per camera_names entry; the camera_topic_prefix parameter was removed by ADR-0108; object_depth_points_topic defaults to "" = no depth fallback)/attachment streams and publishes typed fast/slow world-state summaries; attachment updates atomically replace the prior set so multiple changes never expose a partial model; the envelope's place_declaration and grasp_declaration are relayed AttachmentState -> WorldStateStamped (_place_declaration_from_idl / _grasp_declaration_from_idl, _fill_place_declaration / _fill_grasp_declaration; a grasp declaration's target_queries are encoded with the ObjectQuery message factory). Issue #418: subscribes tracked_objects_topic (default /openral/tracked_objects, RELIABLE/VOLATILE/KEEP_LAST 1) and relays the object tracker's set as WorldStateStamped.tracked_objects (_fill_tracked_objects / _tracked_objects_from_idl), tracked_objects_valid false when absent or stale. Shared with rskill_runner_node.
  • _direct_image_frame_sensors() -> set[str] — The direct_image_frame_sensors parameter as a set; _on_image skips these cameras entirely, since the co-located sensor leg's pump already writes them to the aggregator at full cadence.
  • _on_attachment_state(msg) -> None — Validates and applies one complete attachment snapshot to the aggregator, then publishes a world-state message on the fast topic at once (_publish_snapshot(event=True)): the kernel reads attachments only from that message, the timer runs on the node clock, and a sim twin's attachment perception barrier holds that clock still while it waits for the kernel's ack of exactly this revision (a revision arriving during the hold used to wait ~2 s for the clock to move).
  • _publish_snapshot(*, event=False) -> None — Timer callback: snapshot to WorldStateStamped on the fast topic (and every Nth tick the slow one); event=True is the extra publish outside the timer, which is not a tick and leaves the slow cadence alone.
  • _IDL_DIAG_TO_STR: dict[int, str] (L1193) — DiagnosticState.diag_status uint8 → the lowercase label ("ok"/"warn"/"stale"/"error") world_state_from_idl writes onto openral_core.WorldState.
  • world_state_from_idl(msg) -> WorldState (L1201) — Symmetric inverse of build_world_state_stamped_msg: reconstructs an openral_core.WorldState from a WorldStateStamped msg. Used by the reasoner node to feed real state into its ContextRenderer; image_frames is always None (the IDL carries image topic refs, not inline pixels). Each detected object's bbox_3d comes from the detected_object_bbox_valid / _bbox_min / _bbox_max arrays (ignored unless index-aligned with the labels, so an older publisher decodes as no boxes); the reasoner seeds named grasp targets from it.
  • build_world_state_stamped_msg(node, world_state) -> WorldStateStamped (L1402) — Inverse translation: a Pydantic WorldState → WorldStateStamped IDL msg. Parallel arrays are deterministically ordered (sorted by key) so two consumers comparing snapshots at the same timestamp see the same byte layout.

packages/world_state/openral_world_state_ros/object_tracker_node.py

Issue #418 WP D1. The object-tracker lifecycle node (ros2 run openral_world_state object_tracker_node); all decisions in openral_world_state.object_tracker.TrackerSession, the node owns the wire (README "Object tracker"). Its heartbeat also publishes std_msgs/Bool /openral/object_tracker/hands_clear (TrackerSession.hands_clear_of_targets).

  • const DEFAULT_SEGMENT_SERVICE = "/openral/perception/segment_in_view" (L100) — The SegmentInView server (the HAL vision bridge's own); kept local because Layer 2 does not import the HAL. Fixed (no longer a param, like _MASK_TF_WAIT_S 0.3 s, _PROCESS_HZ 15, _HEARTBEAT_HZ 2, _ATTACHMENT_EVIDENCE_TIMEOUT_S 1.0 s).
  • image_array(msg) -> NDArray (L151) — sensor_msgs/Image → (H, W): 32FC1 / 16UC1 → float64 metres, mono8 → uint8; rgb8 / bgr8 / rgba8 / bgra8 → (H, W, 3) uint8 RGB; honours step; ROSConfigError on another encoding. Also the instance mask propagator's decoder. Duplicates openral_hal.depth_cloud.depth_grid_from_image for depth (Layer 2 must not import Layer 0; see 14-duplication-watch).
  • intrinsics_from_info(msg) -> IntrinsicsPinhole (L198) — The driver's live K.
  • decode_instance_cells(object_ids, cell_counts, cells) -> dict | None (L127) — openral_msgs/InstanceCells' flat arrays as {object_id: frozenset[(i, j, k)]}; None when the counts do not add up.
  • contrast_query(label, contrast) -> str (L308) — The LocateInView query: label (a comma-joined label and synonyms) and the contrast labels (locate_contrast_labels) that share no word with any of its names.
  • own_detections(metadata_json, label, *, contrast) -> str (L323) — The locate reply's detections the tracker keeps: contrasted with contrast labels, every one without (a LocateAnything box is named by its <ref> phrase or the whole query, never a name of the label; review of #521).
  • locate_query(label, *, contrast) -> str (L342) — The tracker node's LocateInView query: contrast_query when the locate_contrast_labels node parameter is on, else label alone. A LocateAnything box with no <ref> is labelled with the whole query, which contrasted then dropped (review of #521).
  • contrasted(metadata_json, label, low_score) -> str (L400) — The detections labelled with any of the query's names (the detector labels each box with ONE class of the prompt); one under low_score that another label covers better (IoU > 0.5) is dropped.
  • pick_depth_frame(received_s, ready, now_s, wait_s) -> int | None (L503) — Which waiting depth frame the tracker feeds: the newest one whose robot mask and tf are in (older ones dropped), else the oldest for ageing only once it waited wait_s, else keep waiting; a mask trailing by more than a depth period still pairs (issue #418, Spark shelf scene 2026-10-24).
  • pick_masks(masks, box_xyxy, within_xyxy=None, *, inside_fraction=0.9) -> list[NDArray] (L224) — The qualifying nested candidates, best first: with a box prompt (detector or a track's projected box) those ≥ 90 % inside it, the one whose rectangle matches the box best (IoU) first (SAM's nested candidates are a subpart, the object, and the object spilled onto its support); without one, those inside within_xyxy (a map seed's rectangle) or all, largest first. The node sends the rest as TrackerResult.alternatives.
  • backproject_pixel(depth_m, k, uv, *, win=2) -> tuple | None (L268) — Optical-frame point under a pixel (median valid depth in a window); the SegmentInView prompt point.
  • detector_scores(metadata_json) -> tuple[float, ...] (L288) — LocateInView's detection scores, parallel to detector_boxes (#418: the tracker logs a low-score prompt that confirms).
  • detector_boxes(metadata_json, k) -> tuple[...] (L457) — LocateInView's ObjectsMetadata boxes rescaled to the depth raster.
  • main() -> None (L651) — Entry point.
  • make_object_tracker_node() -> LifecycleNode (L674) — openral_object_tracker: per-camera depth/CameraInfo/robot_mask subscriptions, /openral/world_voxels, /joint_states (manifest names, sim_joint_name aliases), /openral/grasp_events, the declarations; a frame waits _MASK_TF_WAIT_S (wall) for its exact-stamp mask and tf, else is fed for ageing only; one SegmentInView / LocateInView request in flight, answered with the frame it was issued on. A locate service/transport failure or nonempty LocateInView.failure_reason becomes a TrackerResult.failure_reason and query refusal cause; only a completed empty result is locate_found_nothing. Publishes /openral/tracked_objects on change + _HEARTBEAT_HZ, and /openral/attachment_state (bindings + declarations with the tracker-confirmed workspace region, the place region (a declared zone; in on also a destination track) and, in tracking only, the grasp region TrackerSession.grasp_region (the declared search_box while one target track sits in it); heartbeated while joint states are fresh). Revisions seeded from wall time at activate (monotone across restarts). Addendum G escalations (search_start_s / search_max_s params, source s, defaults TrackerParams): each unresolved / exhausted QueryEscalation becomes an ObjectQueryEvidence (escalation_evidence; attempts = SegmentInView/LocateInView requests issued for that query) recorded as a structlog object_tracker.query_escalation (WARN / ERROR), a world_state.object_query span parented on the declaration's trace_id with the ROSObjectNotInMemory recorded, and a FailureTrigger (KIND_OBJECT_QUERY, WARN / FAIL, the declaration's rskill_id / trace_id) on /openral/failure/world_state for the reasoner. Param wrist_links (default 1; the launch passes DeployRuntime.workspace_contact_wrist_links) sizes the hand boxes as the kernel's hand links. configure fails with hal_mode != sim (both modes are sim-only), a missing grounding_wait_s, or a gripper the binder cannot model. One service call is in flight at a time; a call the scheduler abandoned past segment_budget_wall_s is removed from its client (remove_pending_request, _drop_abandoned) at the next issue and at cleanup, freeing its CameraFrame and never feeding a late reply. Only an answer about the last issued frame is queued (_issued_frame); every station edge / activate / deactivate (_leave_station) drops the in-flight call and that frame, and the session frees its scheduler slot, so no answer from the last station is ever fed. The station switch (/openral/object_tracker/station_perception, std_srvs/SetBool) replies success=False while the node is not ACTIVE. /openral/attachment_state is republished on every new grid while the place declaration names a zone (its grid-frame box follows tf2 at each grid stamp), under the same revision (attachment_publish_step). Zones in a frame TrackerSession.zone_frame_refusal refuses are logged at configure (object_tracker.place_zones_refused) and never resolve. A station change (_station_left, one helper for activate / deactivate, the station switch and a base move): the in-flight call, the queued answers and the queued depth frames never reach the tracker, and the track set and attachment state are republished at once. _on_joints takes that path when TrackerSession.on_joint_state reports a measured base move (issue #651): the tracks carried to the new pose (logged at debug, object_tracker.station_reset transition=base_moved carried_tracks=N), or dropped on a fail-closed case (logged at info with its why); _feed refuses a depth frame stamped up to TrackerSession.base_moved_ns.
  • attachment_publish_step(changes, last_changes, view, last_view, *, heartbeat) -> tuple[bool, bool] (L358) — (bump the attachment revision, publish) for one /openral/attachment_state tick: the revision versions the attachment set only (attachment_changes; None after a station edge); the declarations and a place zone re-expressed on a new grid republish under the same revision. The kernel reads a revision edge with no payload as a detach (retiring an armed grasp region) and one with a payload as a new set (restarting its contact snapshot), so a bump per grid or per declaration retired every tracking pick's grasp allowance before contact (AMR aisle, 2026-11-20).
  • escalation_evidence(escalation, query, attempts) -> ObjectQueryEvidence (L533) — Issue #418: one QueryEscalation with its StandingQuery as typed failure evidence, including its owning action invocation_id; waited_s = source seconds since the query's current search started.

packages/world_state/openral_world_state_ros/instance_mask_propagator_node.py

EXPERIMENT (pro#51, sim-only; DeployRuntime.instance_cells). openral_instance_mask_propagator lifecycle node (ros2 run openral_world_state instance_mask_propagator_node --camera <name>): SAM2.1 video masks of the tracker's TARGET / DESTINATION tracks lifted through the aligned depth into /openral/world_voxels cells, published per track on /openral/instance_cells. configure loads SAM2 and subscribes; activate starts propagating; deactivate / cleanup drop every mask, label and video session. The camera pose is the TF at the depth stamp (no latest-TF fallback: the frame is skipped).

  • const LIVE (L45) — Tracker statuses whose masks are followed (TENTATIVE included: a contact hold ages a pushed object through it).
  • const SEEDABLE = "confirmed" (L47) — The only status whose box seeds or re-seeds SAM; any other track keeps its mask or loses it.
  • const ROLES (L54) — target, destination.
  • const WEIGHTS (L56) — facebook/sam2.1-hiera-small.
  • const REVISION_RESEED_JUMP (L50) — A tracked-objects revision jump past 1e9 is a re-activated tracker (it reseeds its revision from wall ns): a new episode.
  • const CLOCK_RESET_NS (L52) — A sensor stamp 1 s behind the newest kept is a clock reset, a new episode: every mask, label and session is dropped.
  • quat_xyzw_to_r(q) -> ndarray (L59) — Rotation matrix of a unit quaternion.
  • erode(m, n) -> ndarray (L136) — 4-neighbour erosion by n pixels.
  • stamp_ns(st) -> int (L158) — A builtin_interfaces/Time in ns.
  • keep(d, t, v, n=30) -> bool (L76) — Keep the n newest stamped frames; False (emptied) on a clock reset.
  • ROBOT_MASK_MATCH_NS (L97) — How far a robot mask's stamp may sit from its depth frame's (20 ms): the self-filter stamps each mask with its depth frame.
  • robot_mask_for(masks, depth_ns) -> tuple[mask | None, bool] (L100) — The robot mask cut from the depth frame at depth_ns: none received → used without one (no publisher); masks arriving but none at this stamp → the frame is skipped (the nearest mask may be any age; review of #521).
  • new_tracker_session(prev, rev) -> bool (L124) — Whether a tracked-objects revision comes from a new tracker session.
  • plan(ids, status, seen, td, empty, drift) -> (want, new, gone, stale) (L194) — Which tracks to follow, seed, drop and re-seed: only a confirmed track is seeded from its box; a drifted mask with no fresh box is dropped (a held one is kept).
  • lift_cells(mask, depth, k, r_gc, t_gc, origin, r_grid, res) -> ndarray (L163) — Unique lattice cells the masked depth pixels fall in.
  • main() -> None (L237) — Entry point.

packages/openral_nav2_bringup/openral_nav2_bringup/

  • _footprint_geometry.py — Footprint geometry shared by this package's nodes: convex_hull_2d (monotone-chain convex hull) and base_footprint_polygon (manifest polygon, else an N-gon around the radius). The costmaps' footprint is now static, substituted at launch — no node publishes it.
  • prop SHAPE_SPHERE, SHAPE_CAPSULE, SHAPE_BOX (_footprint_geometry.py L23–25) — Mirror openral_msgs/AttachedCollisionPrimitive's shape enum as plain ints, so this pure module imports without the colcon message overlay.
  • _MIN_POLYGON_VERTICES (_footprint_geometry.py L27) — 3; minimum distinct-vertex count convex_hull_2d accepts.
  • convex_hull_2d(points) -> list[tuple[float, float]] (_footprint_geometry.py L30) — Counter-clockwise convex hull via Andrew's monotone chain; drops collinear points, raises on fewer than _MIN_POLYGON_VERTICES distinct points.
  • base_footprint_polygon(description, *, circle_samples=12) -> list[tuple[float, float]] (_footprint_geometry.py L94) — The manifest's footprint_polygon if declared, else a circumscribed N-gon around footprint_radius.
  • payload_scan_filter_node.py — Removes a carried payload's and the robot's own silhouette from the /scan Nav2's costmaps read, republishing on /openral/nav2/scan. Every failure mode leaves more obstacles in the scan, never fewer, except a startup gate that withholds output until the self-TF first resolves.
  • DEFAULT_OUTPUT_TOPIC (payload_scan_filter_node.py L66) — "/openral/nav2/scan"; where the filtered scan is published — every costmap observation source and config/nav2_panda_mobile.yaml's collision monitor point here.
  • points_in_primitive(points_xyz, shape_type, shape_dimensions, transform, *, margin_m=0.0) (payload_scan_filter_node.py L69) — The kernel's surface_distance containment at zero slack, vectorised over points.
  • _MIN_POLYGON_VERTICES (payload_scan_filter_node.py L45) — Now imported from _footprint_geometry (formerly a local copy of the constant).
  • points_in_convex_polygon(points_xy, polygon, *, margin_m=0.0) (payload_scan_filter_node.py L140) — Half-plane containment test that verifies CCW convexity rather than assuming it (a concave or CW outline raises, so the node then removes nothing).
  • filter_scan_ranges(ranges, *, angle_min, angle_increment, range_min, range_max, placements, margin_m=0.0, self_polygon=None, base_from_scan=None, self_margin_m=0.0) (payload_scan_filter_node.py L208) — Sets removed beams to inf (Nav2 discards those: inf_is_valid defaults to False) and leaves readings already outside [range_min, range_max] alone.
  • main(args=None) -> None (payload_scan_filter_node.py L309) — ROS 2 entry point; defines PayloadScanFilterNode lazily inside so the module stays importable without the colcon overlay.
  • twist_to_action_relay_node.py — Opt-in (nav2.launch.py cmd_vel_relay:=true) relay of Nav2's /cmd_vel onto /openral/candidate_action as horizon-1 BODY_TWIST chunks via ROSPublishingHAL, so the safety kernel bounds base speed. Refuses (ROSConfigError) a manifest declaring base_joints (MobileBaseBridge owns that /cmd_vel, ADR-0040/0099) or lacking body_twist or either max_base_* speed bound; after cmd_vel_timeout_s (default 0.5 s, wall clock) of silence following a non-zero command it publishes one zero twist.
  • twist_to_body_twist_row(msg) -> tuple[float, ...] (twist_to_action_relay_node.py L45) — Twist → [linear.x, linear.y, 0, 0, 0, angular.z], the same mapping as MobileBaseBridge._on_cmd_vel.
  • main(args=None) -> None (twist_to_action_relay_node.py L57) — ROS 2 entry point; defines TwistToActionRelayNode lazily inside.

packages/openral_nav2_bringup/launch/nav2.launch.py

  • generate_launch_description() -> LaunchDescription (L91) — Stand-alone bring-up of the upstream Nav2 navigation_launch.py include; robot_yaml rewrites robot_radius/inflation_radius/motion_model over the shared base params file (lidar or, for slam_backend=visual, the visual variant) and clamps its velocity limits to the manifest's max_base_* bounds.
  • _cap_speeds(params, max_linear_m_s, max_angular_rad_s) -> None (L256) — Lowers velocity_smoother.max_velocity/min_velocity (the (vx, vy) corner scaled onto the ‖v‖ disk) and MPPI vx_max/wz_max in place to the kernel BODY_TWIST bounds; never raises a limit.
  • _dock_differential(params) -> None (L311) — For a base_kinematics: differential base: wraps MPPI FollowPath in RotationShimController (terminal in-place turn to the goal heading, turn rate capped by wz_max), confines MPPI's GoalAngleCritic to the dock tolerance (fallback if the shim's turn is blocked), tightens general_goal_checker to DIFF_DOCK_* and switches to a rotation-aware PoseProgressChecker. Raises ROSConfigError without an MPPI FollowPath (bare or already shim-wrapped) and the two checkers.
  • DIFF_DOCK_XY_TOLERANCE_M (L307) — 0.03 m; differential-base goal checker xy tolerance (measured on the AMR restock aisle).
  • DIFF_DOCK_YAW_TOLERANCE_RAD (L308) — 0.02 rad; differential-base goal checker yaw tolerance.
  • _speed_capped_params_file(params_file, max_linear_m_s, max_angular_rad_s, *, differential=False) -> str (L532) — params_file unchanged when neither bound is set and differential is false, else a temp copy with _cap_speeds and/or _dock_differential applied (Jazzy RewrittenYaml cannot set a list element).

  • BOND_TIMEOUT_S (L67) — 30.0; how long a Nav2 lifecycle manager waits on a bond heartbeat before treating a descheduled server as dead. Not disabled (0.0), so a server that really dies is still caught.

  • DEFAULT_PARAMS_PATH (L686) — Default config/nav2_panda_mobile.yaml path; used by test/test_nav2_launch.py for hermetic argument validation without spawning a real ROS 2 graph.
  • nav_to_pose_tree(params, description) -> tuple[float, float] | str (nav2.launch.py L435) — The backup-recovery tree's (backup_dist, backup_speed) for this base, or the reason Nav2's stock tree is kept (no robot_yaml, no footprint_polygon, no backup needed, or the params file names its own default_nav_to_pose_bt_xml). Padding and resolution are read from the params' local costmap. The launch sets the key by full path in a params copy, or leaves it unset; an empty key would be taken as the tree's file name.
  • backup_recovery_tree(stock_xml, backup_m, speed_m_s) -> str (nav2.launch.py L476) — Nav2's installed stock navigate-to-pose tree with ForceSuccess(BackUp) inserted before the local-costmap clear in the inner FollowPath recovery: a stuck controller backs the base up on its first failure, collision-checked on the un-cleared costmap, and a failed backup still gets the stock clear-and-retry. Raises ROSConfigError without that recovery.
  • backup_distance_m(footprint_polygon, padding_m, margin_m) -> float | None (nav2.launch.py L394) — How far a base backs straight off an obstacle dead ahead before it can turn in place: the padded outline's circumscribed radius minus where the +x ray leaves it, plus margin_m (one costmap cell); None without a polygon, with the origin outside it, or when the front already reaches the turning circle.
  • NAV2_FOOTPRINT_PADDING_M (nav2.launch.py L374) — Nav2's default costmap footprint_padding, 0.01 m, used where the params file sets none.
  • NAV2_COSTMAP_RESOLUTION_M (nav2.launch.py L375) — Nav2's default costmap resolution, 0.05 m, used where the params file sets none.
  • BACKUP_SPEED_M_S (nav2.launch.py L378) — The backup's reverse speed, 0.10 m/s, capped by the robot's max_base_linear_speed_m_s.

packages/openral_perception_ros/openral_perception_ros/

  • main(args=None) -> None (ros_image_detector_node.py L958) — Standalone ROS-image object detector: subscribes a camera topic, runs an openral_runner backend (RT-DETR ONNX or an open-vocab VLM), and publishes detections as a PromptStamped. continuous mode publishes every frame; on_demand instead serves a one-shot locate_in_view query. Its LocateInView.failure_reason distinguishes inactive/no-frame/inference failure from a successful no-match.
  • make_detector_node(node_name="openral_ros_image_detector") -> Any (ros_image_detector_node.py L946) — Constructs the real detector lifecycle node behind lazy ROS imports (the class is hoisted out of main); sam3_perception_node hosts it under the locator's deploy name. Its continuous_leg parameter ("auto" / "on") feeds detector_node_wiring.
  • parse_node_names(argv) -> argparse.Namespace (sam3_perception_node.py L29) — The --detector-node / --segmenter-node names from the non-ROS arguments.
  • main(args=None) -> None (sam3_perception_node.py L45) — Entry point: init ROS, spin the detector node and (when named) the segmenter node on one three-thread MultiThreadedExecutor, so both use the process's shared SAM 3.
  • image_source_stamp_ns(msg) -> int (ros_image_detector_node.py L102) — Convert the source Image header to nanoseconds.
  • new_locate_frame_history() -> deque (ros_image_detector_node.py L116) — Fixed 32-image history for one configured camera.
  • select_locate_frame(frames, requested_stamp_ns) -> tuple | None (ros_image_detector_node.py L121) — Latest image only for zero; otherwise exact stamped image or unavailable.
  • locate_frame_failure_reason(frames, requested_stamp_ns) -> str (ros_image_detector_node.py L142) — Missing/invalid requested image cause, distinct from a successful negative detection.
  • _locate_exception_reason(exc) -> str (ros_image_detector_node.py L153) — Bounded printable exception cause for LocateInView.failure_reason; preserves the exception type and compact message within the service's 128-character bound.
  • DETECTOR_LOG_LEVEL_ENV (ros_image_detector_node.py L84) — "OPENRAL_DETECTOR_LOG_LEVEL"; operators set this to debug to surface the continuous leg's per-publish DEBUG line, which the default INFO console hides.
  • _LOG_LEVEL_ALIASES (ros_image_detector_node.py L88) — Accepted spellings → the rclpy LoggingSeverity member name ("warning" → "WARN").
  • normalize_log_level(value) -> str | None (ros_image_detector_node.py L160) — Normalises an operator-supplied log level to an rclpy severity name; case-insensitive, whitespace-trimmed. None for an empty/unrecognised value so a typo never silences the node.
  • classify_continuous_tick(*, error, detection_count) -> tuple[str, str] (ros_image_detector_node.py L186) — Maps one continuous-leg detect tick to (log_level, message): a detect() exception → warning, an empty result → info liveness heartbeat, a non-empty result → debug.
  • camera_geometry_from_info(msg) -> tuple[str, IntrinsicsPinhole] (ros_image_detector_node.py L241) — A driver sensor_msgs/CameraInfo's (header.frame_id, K) via openral_hal.depth_cloud.intrinsics_from_camera_info; ROSConfigError when uncalibrated or frameless.
  • stamp_camera_geometry(md, geometry) -> ObjectsMetadata (ros_image_detector_node.py L264) — md re-validated with camera_frame_id/camera_intrinsics from geometry, or unchanged for None (no CameraInfo yet → the lift's logged manifest fallback). The node stamps every continuous batch and locate_in_view reply for cameras its camera_infos parameter names.
  • crop_bgr(bgr, width, height, roi_norm_xyxy) -> tuple[bytes, int, int, int, int] | None (ros_image_detector_node.py L299) — Issue #418: the packed BGR frame cropped to a normalised ROI (x0, y0, x1, y1) in [0, 1] (clamped), with its size and offset; None (no ROI, or no area) = detect on the whole frame. _on_locate_in_view detects on the crop of LocateInView.roi_norm_xyxy.
  • uncrop_metadata(md, x0, y0, width, height) -> ObjectsMetadata (ros_image_detector_node.py L323) — Detections made on a crop at (x0, y0) back in full-frame pixels (bbox and any contour), frame_width/frame_height the full frame's.
  • main(args=None) -> None (scene_vlm_node.py L47) — Scene-VLM query service node: caches each camera's latest frame and serves /openral/perception/query_scene, a free-text answer to a question about the current frame, from a QwenSceneVlm backend. The reasoning counterpart of locate_in_view. destroy_node closes the VLM, ending the sidecar its configure-time warm_up spawned.
  • main(args=None) -> None (reward_monitor_node.py L80) — Reward-monitor query service node: buffers the active VLA's camera frames and serves /openral/perception/query_task_progress from a reward backend (Robometer or TOPReward). A scoring heartbeat (score_period_s, over the last score_window_s of footage: launch reward_monitor_score_window_s, DeployRuntime.reward_monitor_score_window_s) also drives the dashboard's progress bar and an optional Tier-C CriticScore publish. The backend is loaded at configure (warm_up). Advisory-only.
  • main(args=None) -> None (segmenter_node.py L1077) — Entry point: init ROS, spin the segmenter node on a two-thread MultiThreadedExecutor (the image subscriptions have their own callback group, so they keep caching while a SegmentInView call waits for its frame), shut down cleanly.
  • make_segmenter_node(node_name="openral_segmenter") -> Any (segmenter_node.py L1062) — Constructs the real segmenter lifecycle node behind lazy ROS imports; the seam test_segment_in_view_service.py uses to stand up the node in-process. Node behaviour: Promptable-segmenter service node (kind: segmenter rSkill): serves /openral/perception/segment_in_view, turning a 3-D point into the pixel mask of the object there via an in-process SAM 2.1 model. Every failure path returns an empty failure_reason rather than raising. on_activate builds and warms the model and burns the handler's lazy openral_hal.depth_cloud / openral_core.geometry imports (the openral_hal import alone was 839 ms of a 1019 ms first call on Thor), logging the warm-up time.
  • DEFAULT_SEGMENT_SERVICE (segmenter_node.py L153) — "/openral/perception/segment_in_view"; the service name the HAL's vision attachment bridge calls by default.
  • DEFAULT_DEBUG_MASKS_TOPIC (segmenter_node.py L159) — "/openral/perception/masks"; diagnostic topic the latest mask set is re-published on when publish_debug_masks is enabled.
  • FRAME_HISTORY (segmenter_node.py L163) — 8; frames cached per camera, so a request a slow model serves late still finds the frame its stamp names.
  • DEFAULT_MAX_FRAME_SKEW_S (segmenter_node.py L166) — 0.1; default max_frame_skew_s, the HAL's vision_attachment_mask_depth_max_skew_s.
  • frame_nearest_stamp(frames, stamp_ns, *, max_skew_s) -> tuple[frame | None, str] (segmenter_node.py L227) — The cached (stamp_ns, frame) nearest a request's stamp (newest for a zero stamp), or None with a ROSPerceptionStale reason when none is within max_skew_s. SegmentInView is served from it, so masks pair with the depth frame the HAL stamped the request with.
  • DEFAULT_FRAME_WAIT_S (segmenter_node.py L170) — 0.2; default frame_wait_s.
  • DEFAULT_REQUEST_DEADLINE_S (segmenter_node.py L173) — 0.25; default request_deadline_s, the HAL's vision_attachment_deadline_s.
  • DEFAULT_SERVE_S (segmenter_node.py L177) — 0.1; the serve time frame_wait_budget_s assumes until a request is measured (warmed SAM 2.1: 53-81 ms).
  • wait_for_frame(frames, arrived, stamp_ns, *, max_skew_s, wait_s) -> tuple[frame | None, str] (segmenter_node.py L263) — frame_nearest_stamp, but when no cached frame is within the skew and the newest is OLDER than the stamp (the RGB twin of the HAL's depth frame not yet arrived, DROID t7), waits up to wait_s on the arrived condition for a frame at or after it; an empty cache counts as behind a nonzero stamp (the first frame may be on its way). A request behind the cache, an unstamped one on an empty cache, or one still unmatched after the wait, is refused as before.
  • frame_wait_budget_s(frame_wait_s, request_deadline_s, *, serve_s) -> float (segmenter_node.py L180) — The wait_for_frame budget the node uses: frame_wait_s capped at request_deadline_s (param, the HAL's vision_attachment_deadline_s, default 0.25; the deploy launch passes the HAL's value) minus the last served request's measured time outside the wait (DEFAULT_SERVE_S 0.1 until one is measured), never negative — a frame not cached by then is refused (ROSPerceptionStale) instead of answered after the HAL dropped the reply.
  • parse_camera_deadlines(entries, cameras) -> dict[str, float] (segmenter_node.py L196) — The camera_request_deadlines param ("camera=seconds", issue #418): for those cameras both the frame wait and the deadline (the deploy launch gives the object tracker's cameras 1.5 s, the HAL's camera keeps request_deadline_s). Raises ROSConfigError on an unconfigured camera or a non-positive / non-finite value.
  • sensor_spec_by_name(description, name) -> SensorSpec | None (segmenter_node.py L313) — Finds a SensorSpec by name across sensors + sensor_bundles.
  • box_prompt(request) -> tuple[float, float, float, float] | None (segmenter_node.py L421) — A SegmentInView request's detector box prompt (box_valid / box_xyxy, issue #418), or None. With it the service passes the box to SAM alongside the point prompts, and the points become optional: a TCP point that does not project, or a prompt frame tf2 cannot place, is dropped instead of refusing the call (private _prompt_pixels). Frame selection (frame_nearest_stamp / wait_for_frame) is unchanged.
  • mono8_bytes_from_mask(mask) -> bytes (segmenter_node.py L437) — 255 set / 0 clear; raw mono8, deliberately not RLE (a one-shot event call does not justify a bespoke codec).
  • projection_geometry(spec, *, width, height, header_frame_id, camera_info=None) -> tuple[IntrinsicsPinhole, str, tuple[str, ...]] (segmenter_node.py L333) — Picks the K and optical frame a 3-D prompt is projected in: the cached image's header.frame_id over spec.frame_id (which may be a body frame — OpenArm head_zed), and the driver's live CameraInfo K (openral_hal.depth_cloud.intrinsics_from_camera_info) over the manifest's nominal intrinsics, rescaled to the frame via scale_intrinsics_to. spec=None (a camera the manifest does not declare, e.g. a scene sim depth camera the #418 tracker fits with) projects only through the live CameraInfo and the image header frame, else ROSConfigError. Returns one note per fallback taken; the node logs each once at warning. Raises ROSConfigError on an uncalibrated CameraInfo or no K source at all.
  • parse_camera_entries(entries) -> dict[str, str] (camera_topics.py L23) — The bare "id=topic" parse (blank / half entries skipped, declaration order kept, possibly empty) behind resolve_camera_topics; used as-is for optional per-camera side streams such as segmenter_node's camera_infos. Pure and ROS-free.
  • resolve_camera_topics(entries, *, primary_camera, image_topic) -> dict[str, str] (camera_topics.py L49) — The one implementation of the camera-agnostic id=topic → ordered map every node in this package resolves its cameras with. Insertion order matters: the first key is the primary camera. Raises ROSConfigError when neither entries nor image_topic names a camera — every node's image_topic default is "" (ADR-0108), so a node the launch did not wire refuses to configure instead of subscribing to a guessed name. Pure and ROS-free.
  • image_to_bgr_bytes(msg) -> tuple[bytes, int, int] (image_convert.py L31) — The one sensor_msgs/Image → contiguous H·W·3 BGR uint8 converter for every perception node (segmenter, detector, scene VLM, reward monitor, depth provider). Accepts bgr8/8UC3, rgb8, bgra8/rgba8 (alpha dropped — the ZED's default layout), mono8/8UC1 (replicated); honours step, so pitch-padded rows are sliced off. No cv_bridge dependency. Callers log a refusal at WARNING (throttled 5 s) naming camera and encoding.
  • ImageConvertError (image_convert.py L27) — Raised by image_to_bgr_bytes on an unsupported encoding, a step shorter than a packed row, or a payload shorter than height*step.
  • SUPPORTED_ENCODINGS: frozenset[str] (image_convert.py L24) — the encodings image_to_bgr_bytes accepts.
  • depth_array_to_image_msg(depth_m, *, frame_id, stamp=None) -> Image (depth_convert.py L30) — Metric-depth message boundary (no torch). Builds a 32FC1 sensor_msgs/Image in metres (NaN = no return) with tightly-packed rows.
  • image_msg_to_depth_array(msg) -> ndarray (depth_convert.py L67) — Inverse of depth_array_to_image_msg.
  • camera_info_from_intrinsics(*, fx, fy, cx, cy, width, height, frame_id, stamp=None) -> CameraInfo (depth_convert.py L89) — Builds a plain pinhole CameraInfo (plumb_bob, zero distortion, K/P matrices). Used by depth_provider_node to feed nvblox.
  • camera_info_problem(k, info_wh, image_wh) -> str | None (metric_depth.py L42) — Why a CameraInfo cannot scale an image's DA3 depth: a non-positive / non-finite focal (an uncalibrated driver's all-zero K), an empty size, or another aspect ratio (a crop, another view). A uniform resize (a driver's full-resolution CameraInfo beside a downscaled republish) is usable. The metric provider drops such frames.
  • scale_intrinsics(k, src_wh, dst_wh) -> tuple[float, float, float, float] (metric_depth.py L77) — (fx, fy, cx, cy) of an image resized (not cropped), pixel centres to pixel centres.
  • metres_from_output(raw, contract, *, fx, fy) -> ndarray (metric_depth.py L93) — A kind: depth_estimator skill's raw output → metres per its DepthEstimatorContract.output: metric passes through (Depth Pro 2), canonical_focal is mean(fx, fy) * raw / canonical_focal_px with the focal at the output raster (DA3METRIC), relative raises ROSConfigError; non-finite / non-positive → 0.0.
  • points_from_depth(depth, *, fx, fy, cx, cy, max_range_m) -> ndarray (metric_depth.py L126) — Metric raster → (N, 3) REP-103 optical cloud, dropping no-returns and z beyond max_range_m.
  • build_rectifier(k, size, model, coeffs) -> PinholeRectifier (lens_rectify.py L123) — The raw → exact-pinhole remap for one lens at one size, from a ROS CameraInfo lens model: plumb_bob / rational_polynomial (cv2.initUndistortRectifyMap) or equidistant fisheye (cv2.fisheye.initUndistortRectifyMap); no distortion → no remap. Valid pixels only (alpha/balance 0) and the camera's pixel aspect kept (one zoom); R (stereo) not applied, so the image stays in the camera's optical frame. Raises ValueError for what distortion_problem refuses.
  • PinholeRectifier (lens_rectify.py L98) — Frozen: k (rectified pinhole (fx, fy, cx, cy)), size, maps (None = already pinhole). The metric provider rectifies every frame before DA3 sees it, rebuilding only when the calibration or size changes.
  • PinholeRectifier.apply(image) -> ndarray (lens_rectify.py L111) — The rectified H x W x C image (cv2.remap, bilinear); the input itself when already pinhole.
  • distortion_problem(model, coeffs) -> str | None (lens_rectify.py L58) — Why a CameraInfo lens cannot be rectified: an unsupported model, a wrong coefficient count, a non-finite value; None when usable (incl. no distortion).
  • rectified_stream_k(p) -> tuple[float, float, float, float] (lens_rectify.py L84) — (fx, fy, cx, cy) of an already-rectified stream from CameraInfo.p (an image_rect topic shares the raw stream's CameraInfo; the deploy declares it with backend_params.rectified: true).
  • DISTORTION_COEFF_COUNTS: dict[str, int] (lens_rectify.py L47) — coefficients per supported model (plumb_bob 5, rational_polynomial 8, equidistant 4).
  • DepthConvertError (depth_convert.py L26) — Raised on non-2D depth, a non-32FC1 encoding, or a padded stride (step != width*4).
  • main(args=None) -> None (depth_provider_node.py L54) — Monocular depth provider: forwards each RGB frame to the manifest_path depth_estimator rSkill's sidecar over ZMQ and republishes the depth as a 32FC1 image + CameraInfo (SLAM mode: the model's own K, for nvblox.launch.py). image_topic / depth_topic / camera_info_topic / manifest_path have no default (ADR-0108); an empty one (or an unusable skill: openral_rskill.depth_estimator.depth_skill, license gate included) fails the configure transition (logged, FAILURE); a reply naming another model than the skill's is dropped. Managed lifecycle node (DepthProviderNode(LifecycleNode)): configure reads the parameters, checks the skill, opens the ZMQ socket, publishers and subscriptions; only ACTIVE forwards frames to the sidecar and publishes; deactivate stops both (the sidecar process keeps its weights: no VRAM freed); cleanup / shutdown close the socket and destroy the topics. deploy_e2e autostarts both instances ACTIVE (_poll_autostart). Best-effort; rebuilds its socket on a timed-out reply so a slow sidecar can't wedge depth forever. A change_state whose transition the current state lacks (a repeated deactivate) is answered success: false instead of killing the node. SLAM mode publishes a relative skill's output (DA3-SMALL) unconverted: nvblox / cuVSLAM read it as approximately metres (scale error carried into /map), never the kernel's world map. Metric mode (rgb_camera_info_topic set; DeployRuntime.estimated_depth_camera): sends the rectified fx as f_px to a metric skill and converts the output to metres through the RGB CameraInfo focal scaled to the model's raster (metres_from_output), publishes depth + that scaled CameraInfo in depth_frame_id (the launch's resolved optical frame; empty = the CameraInfo's frame) and, with points_topic, the back-projected cloud (clipped at max_range_m, default 3.0); drops frames until a CameraInfo arrives.

packages/openral_slam_bringup/openral_slam_bringup/

  • main(args=None) -> None (depth_height_filter_node.py L434) — Nvblox floor-exclusion prefilter: derives a robot-relative navigation-height band from the manifest's collision geometry and zeroes depth pixels outside it before nvblox integrates them. Needed because nvblox's occupancy integrator still projects raw floor returns into /map. input_depth_topic / input_camera_info_topic have no default (ADR-0108); an empty one raises ROSConfigError.
  • RobotRelativeHeightBand (depth_height_filter_node.py L35) — Frozen dataclass: min_z_m/max_z_m navigation-height band plus source ("collision_geometry" or the min_body_height_m floor default).
  • quaternion_to_matrix_z_row(x, y, z, w) -> tuple[float, float, float] (depth_height_filter_node.py L43) — The rotation matrix's third row only — enough to project a shape's local z-extent onto the world z axis.
  • derive_robot_relative_height_band(description, *, floor_clearance_m=0.10, min_body_height_m=0.30) -> RobotRelativeHeightBand (depth_height_filter_node.py L294) — Measures the manifest's collision geometry (or falls back to min_body_height_m) to produce the navigation-height band.
  • filter_depth_by_global_height(depth_m, *, fx, fy, cx, cy, rotation_z_row, translation_z_m, min_height_m, max_height_m) (depth_height_filter_node.py L344) — Zeroes out-of-band/invalid pixels; raises ValueError on invalid intrinsics, shape, or band.
  • main(args=None) -> None (pycuvslam_node.py L221) — In-process cuVSLAM visual SLAM (PyCuVSLAM wheel): tracks a rectified stereo pair, or one RGB camera plus a metric-depth stream, publishes nav_msgs/Odometry, and broadcasts the map → odom TF edge. The pip-wheel alternative to the composable isaac_ros_visual_slam path. The four camera-topic params have no default (ADR-0108); _setup_inputs raises ROSConfigError naming any required one left empty (left always, right in stereo mode).
  • stereo_baseline_m(right_p) -> float (pycuvslam_node.py L47) — Raises ValueError unless the rectified right P encodes a positive baseline.
  • transform_to_pose(transform) (pycuvslam_node.py L134) — A geometry_msgs/Transform → rig_from_camera pose.
  • compose_pose(a, b) (pycuvslam_node.py L106) — Compose two ((qx,qy,qz,qw),(tx,ty,tz)) poses.
  • invert_pose(p) (pycuvslam_node.py L114) — Inverse of a ((qx,qy,qz,qw),(tx,ty,tz)) pose.
  • map_from_odom(map_from_rig, odom_from_rig) (pycuvslam_node.py L122) — Composes the tracked pose with the live odom ← rig TF to yield the map → odom edge.
  • depth_to_uint16_mm(msg, width, height, scale) (pycuvslam_node.py L160) — A 32FC1 metres Image → the uint16 grid cuVSLAM RGBD eats (PIL float-bilinear resize onto the RGB resolution, metres × scale clipped to uint16); raises ValueError on a non-32FC1 encoding.

packages/openral_octomap_bridge/launch/octomap_voxel_bridge.launch.py

  • generate_launch_description() -> LaunchDescription (L21) — Declares params (base_frame, octomap_topic, output_topic, resolution, coverage_radius_m, coverage_center_z, publish_rate_hz, max_octree_age_s) and spawns the octomap_voxel_bridge node that turns an OctoMap into the openral_msgs/OccupancyVoxels grid the safety kernel consumes.

packages/openral_hal_openarm/launch/real_bringup.launch.py

Bringup-only package: no HAL node of its own (OpenArm runs openral_hal_node); robots/openarm/robot.yaml reaches this file through hal.real_bringup.

  • _require_host_confined_graph(context) -> list (L64) — OpaqueFunction placed before the vendor include: applies openral_core.ros_graph_scope.require_host_confined_real_bringup to os.environ (issue #556), so a hand run on SUBNET/unset discovery is refused without OPENRAL_ALLOW_NETWORK_ROS=1 + SROS2 Enforce, and an opted-in scope is logged unless deploy_e2e included it (hal_mode set); fails closed with an ImportError naming the missing symbol and the venv interpreter when openral_core is not importable.
  • generate_launch_description() -> LaunchDescription (L85) — Real-hardware ros2_control bringup for the OpenArm v2: includes upstream openarm_bringup's bimanual launch with this HAL's own CAN interface names. Never run alongside a deploy — two copies would double-publish /joint_states; activation energises the motors.
  • prop _LEFT_CAN_INTERFACE, _RIGHT_CAN_INTERFACE (L55–56) — "openarm_left" / "openarm_right"; must match the udev names openral_hal.openarm_real._LEFT_CAN_INTERFACE / _RIGHT_CAN_INTERFACE assign to the USB CAN-FD adapter's two channels.
  • _ROBOT_CONTROLLER (L61) — "joint_trajectory_controller"; must match the controller type OpenArmRealHAL publishes JointTrajectory messages to, not forward_position_controller (which takes Float64MultiArray).

packages/openral_hal_rizon/launch/real_bringup.launch.py

Real-hardware ros2_control bringup for the dual Flexiv Rizon 4s (robots/rizon_dual), included by deploy run through hal.real_bringup.

  • _ROBOT_SN_LEFT, _ROBOT_SN_RIGHT (L37) — The reference rig's serials (Rizon4s-063642 left, Rizon4s-063618 right); the defaults deploy run uses, since it forwards no launch arguments.
  • _CONTROLLERS (L40) — joint_state_broadcaster, left_arm_controller, right_arm_controller; the arm names must match the manifest's hal.parameters.defaults.groups (pinned by tests/unit/test_rizon_dual_real_hal.py).
  • generate_launch_description() -> LaunchDescription (L61) — Refuses a networked ROS graph (require_host_confined_real_bringup), then starts robot_state_publisher on urdf/rizon_dual.urdf.xacro (ros2_control:=true: upstream flexiv_description kinematics + one upstream FlexivHardwareInterface per arm), ros2_control_node with config/rizon_dual_controllers.yaml (1 kHz) and the three spawners. Args: robot_sn_left, robot_sn_right, mounting_file. Activation enables both arms (brakes released; the controllers hold the measured pose).

packages/openral_hal_unitree/launch/real_bringup.launch.py

Bringup package (plus the guarded safety-controller plugin below): the Unitree hg HAL node is the generic openral_hal_node running openral_hal.unitree_real:UnitreeHgRealHAL; robots/g1/robot.yaml and robots/h2/robot.yaml reach this file through hal.real_bringup. Also ships urdf/h2_real_hardware.urdf.xacro — the H2 robot_description NVIDIA does not ship (pinned unitree_ros H2.urdf + upstream's ros2_control block, robot_variant: h2, 31 joints in SDK motor order).

  • generate_launch_description() -> LaunchDescription (L336) — NVIDIA's S0 graph for a real Unitree hg robot: controller_manager (200 Hz) on unitree_hg_ros2_control with the model's real xacro (G1: NVIDIA's, with_hands:=false, 29 joints; H2: this package's, body_urdf:=ensure_h2_urdf(), 31 joints), broadcasters, safety_controller ← inference_controller (S0 ONNX policy) + upper_body_forward_joint_command_controller, freeze_controller loaded inactive. Args robot_model (g1/h2; empty = the deploying manifest's, required on a hand run), policy (empty = the manifest's s0_policy, else _DEFAULT_POLICIES[model]; the policy file's controllers block via openral_hal.unitree_s0_policy), network_interface (default $OPENRAL_UNITREE_NETWORK_INTERFACE / eth0), inference_controller_config_path. _launch_setup first applies openral_core.ros_graph_scope.require_host_confined_real_bringup to os.environ (issue #556: a networked graph is refused before any node; an opted-in one logged on a hand run). Loads everything inactive then activates the runtime group in one strict switch; safety_controller.blend_ratio stays 0.0 (operator raises it). Refuses (require_watchdog_enforced) a policy file whose stale-input watchdog would not be enforced. Activation releases Unitree's built-in locomotion — robot on a gantry. The deferred switch_controllers step pins the ROS_SECURITY_ENCLAVE_OVERRIDE it was included under (ADR-0130: only the HAL enclave may call /controller_manager/*).
  • _S0_CHAIN (L132) — must equal UnitreeHgRealHAL.controller_names() (test-enforced).
  • _DEFAULT_POLICIES (L116) — per-model hand-run policy (g1: gr00t_decoupled_wbc, h2: agile_velocity); each must equal its manifest's hal.parameters.defaults.s0_policy (test-enforced).
  • resolve_model_and_policy(robot_model, policy, robot_yaml) -> tuple[str, str] — deploy run forwards no arguments, so an empty robot_model / policy takes the deploying manifest's (robot_yaml launch configuration) hal.parameters.defaults; a contradicting explicit robot_model:=, or no model at all on a hand run, raises ROSConfigError. (L288)
  • _xacro_mappings(robot_model) -> list[str] — model-specific xacro args (G1 with_hands:=false; H2 body_urdf:= the pinned H2.urdf). (L322)

packages/openral_hal_unitree/include/openral_hal_unitree/guarded_safety_controller.hpp

C++ ros2_control plugin (openral_hal_unitree/GuardedSafetyController, issue #548, hazard-log Entry 078 / HZ-DDS-7; stale hold #565). NVIDIA's SafetyController (isaac_ros_deploy v4.6-0 3e84f85a, the Jazzy pin) with its blend parameters locked down and v5.0's stale-reference hold; the G1 and H2 controller_manager.yaml run safety_controller as this type. Built only where isaac_ros_deploy_ros2_control is installed; never falls back to the unguarded class.

  • update_and_write_commands(time, period) -> return_type — while any position reference is NaN, replays upstream's update through SafetyControllerTestAccess::update_holding with every joint commanded to the measured pose captured at the first NaN tick and the blend input at 1.0 (v5.0 stale_position_hold); otherwise upstream's update unchanged. Reset at activation. v4.6 alone re-reads the measured pose every tick (no restoring force).
  • class isaac_ros_deploy_ros2_control::controllers::SafetyControllerTestAccess — the name upstream befriends; defined here (not in the tests) because the hold needs upstream's private update steps: max_blend_ratio_speed, target_blend_ratio, applied_blend_ratio (read), update_holding(...).

  • class GuardedSafetyController : isaac_ros_deploy_ros2_control::controllers::SafetyController — on_configure refuses (ERROR) a max_blend_ratio_speed outside (0, kMaxBlendRatioSpeed], runs upstream's configure, then registers a parameter callback that refuses every runtime set of max_blend_ratio_speed (re-registered after upstream's on every configure: rclcpp runs the newest callback first, and upstream stores the value inside its own). on_activate resets blend_ratio to 0.0 through the parameter service (WARN) before upstream's activation, which snaps the applied blend to its target with no ramp — a reset, not a refusal: a strict switch_controller whose activation fails keeps its deactivations, which would leave the hg joints unclaimed (zero torque); pinned live by tests/integration/test_unitree_real_hal_ros2_control_live.py. blend_ratio stays writable — the operator's gantry blend-in. Pinned by test/test_guarded_safety_controller.cpp against the real upstream controller.

  • position_limits_refusal(size_t joints, const std::vector<double>& lower, const std::vector<double>& upper) -> std::optional<std::string> — the configure decision for the required joint_position_limits.{lower,upper} (one finite lower < upper pair per joints entry, nullopt = allowed). GuardedSafetyController clamps every joint's position command to them after upstream writes it, on the normal and the stale-hold path (hazard-log Entry 105 C1: nothing else on the real chain bounds an S0 target); runtime sets of either array are refused. tests/unit/test_unitree_real_bringup_config.py pins the YAML values to the manifest's position_limits.
  • kMaxBlendRatioSpeed = 1.0 — fastest configurable blend ramp (/s); tests/unit/test_unitree_real_bringup_config.py pins the YAML under it.
  • blend_speed_refusal(double) -> std::optional<std::string>, runtime_set_refusal(const std::vector<rclcpp::Parameter>&, bool activating) -> std::optional<std::string> — the configure and runtime-set decisions, nullopt = allowed. While activating (set across on_activate), a non-zero blend_ratio is refused too, closing the window between the reset and upstream's no-ramp copy of the target (the parameter service runs on another executor thread).
  • CMake option OPENRAL_REQUIRE_GUARDED_SAFETY_CONTROLLER (default OFF) — ON makes a missing isaac_ros_deploy_ros2_control a build error instead of skipped plugins (both guarded controllers, library openral_hal_unitree_guarded_controllers); robot hosts pass it.

packages/openral_hal_unitree/include/openral_hal_unitree/guarded_inference_controller.hpp

C++ ros2_control plugin (openral_hal_unitree/GuardedInferenceController, issue #565). NVIDIA's InferenceController (isaac_ros_deploy v4.6-0, which has no stale-input watchdog) with v5.0's topic_input_timeout_ms / topic_input_sources; the G1 and H2 controller_manager.yaml run inference_controller as this type. Pinned by test/test_guarded_inference_controller.cpp against the real upstream controller running the GR00T bundle through Triton.

  • class GuardedInferenceController : isaac_ros_deploy_ros2_control::controllers::InferenceController — on_init declares both keys. on_configure refuses (before the model loads) a non-double timeout or one outside {0} ∪ [kMinTopicInputTimeoutMs, kMaxTopicInputTimeoutMs] (1 ms … 1 h, so the ns conversion can neither round to 0 nor overflow), two sources on one topic with different types, and a listed source that v4.6 does not read from a topic (classified from the LEAPP config the way upstream does); with a timeout, subscribes to every policy topic input (a converter-less one is refused). on_activate discards messages from before the activation. update sets every command interface to NaN and skips the policy step while any watched topic has no message since activation or none within the timeout, measured on the controller manager's update clock (message counter sampled per tick; a message first seen on a tick counts from the next one, giving upstream's own subscription a tick to store it).
  • topic_input_timeout_refusal(double) -> std::optional<std::string>, topic_input_sources_refusal(const std::vector<std::string>&, const std::set<std::string>&) -> std::optional<std::string> — the configure decisions, nullopt = allowed.

packages/openral_slam_bringup/launch/

  • generate_launch_description() -> LaunchDescription (slam_toolbox.launch.py L40) — Stand-alone bring-up of upstream slam_toolbox/async_slam_toolbox_node as a LifecycleNode (auto-transitions only to INACTIVE; the Reasoner promotes to ACTIVE via LifecycleTransitionTool). Composed into deploy_e2e.launch.py when enable_slam:=true.
  • _SLAM_NODE_NAME (slam_toolbox.launch.py L26) — The async_slam_toolbox_node node name.
  • prop DEFAULT_PARAMS_PATH, NODE_NAME (slam_toolbox.launch.py L93–94) — Test-hermeticity re-exports used by packages/openral_slam_bringup/test/test_slam_toolbox_launch.py without spawning a real ROS 2 graph.
  • generate_launch_description() -> LaunchDescription (pycuvslam.launch.py L40) — Stand-alone bring-up of the in-process PyCuVSLAM stereo/mono-RGBD node (a plain Node, not a ComposableNodeContainer); the pip-wheel alternative to cuvslam.launch.py's NITROS path.
  • prop _NODE_NAME, _PACKAGE, _EXECUTABLE (pycuvslam.launch.py L26–28) — The pycuvslam_node node/package/executable names.
  • prop DEFAULT_PARAMS_PATH, NODE_NAME, PACKAGE, EXECUTABLE (pycuvslam.launch.py L140–143) — Test-hermeticity re-exports used by test/test_pycuvslam_launch.py without spawning a real ROS 2 graph or the cuVSLAM wheel.
  • generate_launch_description() -> LaunchDescription (nvblox.launch.py L55) — Stand-alone bring-up of the upstream nvblox::NvbloxNode composable node inside a ComposableNodeContainer, remapping its ~/static_occupancy_grid onto the backend-agnostic /map for lidar-less Nav2.
  • prop _NVBLOX_NODE_NAME, _NVBLOX_CONTAINER_NAME, _NVBLOX_PACKAGE, _NVBLOX_PLUGIN (nvblox.launch.py L38–43) — Node/container name and the Isaac ROS composable-node package+plugin id for NvbloxNode.
  • prop DEFAULT_PARAMS_PATH, NODE_NAME, PACKAGE, PLUGIN (nvblox.launch.py L193–196) — Test-hermeticity re-exports used by test/test_nvblox_launch.py without spawning a real ROS 2 graph or the nvblox engine.
  • generate_launch_description() -> LaunchDescription (cuvslam.launch.py L53) — Stand-alone bring-up of the upstream Isaac ROS VisualSlamNode (cuVSLAM) composable node inside a ComposableNodeContainer for NITROS-zero-copy image topics.
  • prop _VSLAM_NODE_NAME, _VSLAM_CONTAINER_NAME, _VSLAM_PACKAGE, _VSLAM_PLUGIN (cuvslam.launch.py L36–41) — Node/container name and the Isaac ROS composable-node package+plugin id for VisualSlamNode.
  • prop DEFAULT_PARAMS_PATH, NODE_NAME, PACKAGE, PLUGIN (cuvslam.launch.py L145–148) — Test-hermeticity re-exports used by test/test_cuvslam_launch.py without spawning a real ROS 2 graph or the cuVSLAM engine.

packages/openral_human_estop/openral_human_estop/forwarder_node.py

  • class HumanEstopForwarderNode(LifecycleNode) (L25) — Subscribes /openral/human_estop and republishes onto /openral/estop plus a FailureTrigger on /openral/failure/safety. No in-repo node currently publishes /openral/human_estop — the dashboard stop button publishes /openral/estop directly.
  • on_configure(state) -> TransitionCallbackReturn (L46) — Opens the estop publisher, the FailureTrigger publisher, and the /openral/human_estop subscription.
  • on_activate(state) -> TransitionCallbackReturn (L72) — No additional resources to start.
  • on_deactivate(state) -> TransitionCallbackReturn (L77) — No additional resources to stop.
  • on_cleanup(state) -> TransitionCallbackReturn (L82) — Releases the subscription + publishers.
  • on_shutdown(state) -> TransitionCallbackReturn (L96) — Forces cleanup (delegates to on_cleanup).
  • main(args=None) -> int (L126) — Entry point for ros2 run openral_human_estop forwarder_node.

packages/openral_compliance/openral_compliance/recorder_node.py

  • OPERATOR_ACTION_TOPIC: str = "/openral/operator_action" (L77) — Where channels announce who is acting (openral_msgs/OperatorAction); the recorder pairs an announcement within STOP_EXPLAIN_WINDOW_S with an e-stop reset or a param_set.
  • DISK_CHECK_PERIOD_S: float = 30.0 (L80) — Period of the free-space check on the compliance log's filesystem.
  • DISK_WARN_FREE_FRACTION: float = 0.2 (L81) — Below this free fraction under the log the recorder warns; it stops the machine only when a write fails.
  • STOP_EXPLAIN_WINDOW_S: float = 2.0 (L86) — How far apart, either way, a latch and the safety failure that explains it may arrive.
  • explains(drop_reason, failure_kind) -> bool (L99) — Whether a FailureTrigger of failure_kind can cause a SafetyStatus latch with drop_reason: external e-stop ↔ human/timeout, the kernel's fail-closed input drops ↔ perception, otherwise the matching kind.
  • class ComplianceRecorderNode(LifecycleNode) (L158) — Turns failure-bus triggers, safety-status latches/resets, operator actions (a reset's attribution; param_set; the dashboard's estop / prompt / skill_execute as override interventions, ADR-0129) and lifecycle transitions into openral_core.ComplianceRecords, written to the on-robot ComplianceLog and emitted over OTLP. Publishes only a stop (/openral/estop + a safety FailureTrigger) when a record cannot be written, or on deactivate under stop_when_inactive. Parameters run_mode, stop_when_inactive.
  • on_configure(state) -> TransitionCallbackReturn (L200) — Opens the log (FAILURE when it cannot), the failure-bus / safety-status / operator-action subscriptions, the stop publishers and the disk timer.
  • on_activate(state) -> TransitionCallbackReturn (L256) — Starts recording: a SessionRecord start plus a SoftwareInventoryRecord.
  • on_deactivate(state) -> TransitionCallbackReturn (L267) — Closes the session; with stop_when_inactive also publishes the stop.
  • on_cleanup(state) -> TransitionCallbackReturn (L276) — Releases subscriptions, publishers and the timer, and forgets the latch state.
  • on_shutdown(state) -> TransitionCallbackReturn (L295) — Delegates to on_cleanup.
  • close_session() -> None (L299) — Idempotent: records a stop or reset still waiting for its cause, then the session end. main calls it on SIGINT, where rclpy skips the shutdown transition.
  • main(args=None) -> int (L558) — Entry point for ros2 run openral_compliance recorder_node.py.

packages/openral_safety_watchdog/openral_safety_watchdog/

  • estop_qos() -> QoSProfile (_qos.py L19) — QoS for /openral/estop: RELIABLE / VOLATILE / KEEP_LAST=10.
  • failure_qos() -> QoSProfile (_qos.py L30) — QoS for /openral/failure/safety: RELIABLE / VOLATILE / KEEP_LAST=50. Both factories are the single shared definition both nodes' on_configure calls, keeping their QoS identical by construction.
  • install_parameter_guard(node, locked) -> None (_param_guard.py L23) — Registers an on_set_parameters callback refusing every change to an existing parameter while locked() is true; a batch of only undeclared names (a declaration) passes. Both nodes latch their lock at the start of on_configure and in on_cleanup — the C++ kernel's guard (Entry 078) in one flag: fixed after any configure, failed or not (issue #546).
  • refuse_unavailable_transitions(node) -> None (transition_guard.py L22) — Dependency-free copy of openral_observability.refuse_unavailable_transitions for the E-stop sources: an id-only change_state naming a transition the current state lacks is logged and answered success: false (state unchanged) instead of rclpy raising RCLError out of the executor and taking the brake source off the graph. Installed in __init__ by DeadmanWatchdogNode, HardwareEstopNode and openral_human_estop's HumanEstopForwarderNode (which exec_depends on this package for it).
  • class DeadmanWatchdogNode(LifecycleNode) (deadman_watchdog_node.py L128) — Fires /openral/estop plus a timeout FailureTrigger when /openral/safe_action dies, in its own process so a kernel crash still brakes. arm_status_topic gates the deadline to an active goal; the post-estop latch releases only on a genuine SafetyStatus transition to clear.
  • prop DEFAULT_SAFE_ACTION_DEADLINE_S, DEFAULT_CHECK_PERIOD_S, DEFAULT_FIRST_CHUNK_DEADLINE_S, DEFAULT_SAFETY_STATUS_TOPIC, SAFETY_STATUS_LIVENESS_S (deadman_watchdog_node.py L67–96) — Defaults for the safe-action deadline (0.2 s), the deadline-check timer period (50 ms), the goal-accepted→first-chunk grace (60 s), the latched SafetyStatus topic, and the HZ-0096-1 liveness window (3 s) past which a SafetyStatus sample is treated as unknown-not-safe.
  • prop DEFAULT_RESULT_ONLY_TOPIC, DEFAULT_RESULT_ONLY_GRACE_S, DEFAULT_RESULT_ONLY_MAX_S (deadman_watchdog_node.py L78–86) — /openral/result_only_goal, 15 s and 1800 s: a live goal the runner announced as publishing no chunks (ResultOnlyGoal) is bounded by its announced wall bound + grace, capped, from the announcement, instead of the first-chunk window (ADR-0127 D5).
  • _LIVE_GOAL_STATUS_NAMES (deadman_watchdog_node.py L105) — ("STATUS_ACCEPTED", "STATUS_EXECUTING", "STATUS_CANCELING"); resolved to values off the generated message class rather than hardcoded, so an upstream renumbering cannot silently widen or narrow the gate.
  • DeadmanWatchdogNode.on_configure(state) -> TransitionCallbackReturn (deadman_watchdog_node.py L221) — Opens the /openral/safe_action subscription, the estop/failure publishers (QoS from _qos.estop_qos/_qos.failure_qos), and (if arm_status_topic is set) the goal-status subscription.
  • DeadmanWatchdogNode.on_activate(state) -> TransitionCallbackReturn (deadman_watchdog_node.py L318) — Arms the deadline check; opens the execution window immediately when free-running, else waits for the first live goal status.
  • DeadmanWatchdogNode.on_deactivate(state) -> TransitionCallbackReturn (deadman_watchdog_node.py L332) — Disarms — deadline checks become no-ops until the next activate.
  • DeadmanWatchdogNode.on_cleanup(state) -> TransitionCallbackReturn (deadman_watchdog_node.py L338) — Releases the timer, subscriptions and publishers.
  • DeadmanWatchdogNode.on_shutdown(state) -> TransitionCallbackReturn (deadman_watchdog_node.py L358) — Forces cleanup (delegates to on_cleanup).
  • main(args=None) -> int (deadman_watchdog_node.py L550) — Entry point for ros2 run openral_safety_watchdog deadman_watchdog_node.
  • class HardwareEstopNode(LifecycleNode) (hardware_estop_node.py L51) — Polls a hardware E-stop source and publishes /openral/estop plus a FailureTrigger on the rising edge. With no device declared, on_configure refuses to activate rather than coming up ACTIVE over a stub; a read that raises latches as unknown-therefore-unsafe.
  • DEFAULT_POLL_RATE_HZ (hardware_estop_node.py L47) — 100.0; how often to query the hardware estop state.
  • HardwareEstopNode.on_configure(state) -> TransitionCallbackReturn (hardware_estop_node.py L109) — Opens publishers and starts the polling timer only if a device is really there; returns FAILURE (leaving the node UNCONFIGURED) when this host has no hardware E-stop this node could read.
  • HardwareEstopNode.on_activate(state) -> TransitionCallbackReturn (hardware_estop_node.py L145) — Starts braking; a button already held at activation brakes on the first poll.
  • HardwareEstopNode.on_deactivate(state) -> TransitionCallbackReturn (hardware_estop_node.py L153) — Stops braking; the timer keeps running but _poll is a no-op.
  • HardwareEstopNode.on_cleanup(state) -> TransitionCallbackReturn (hardware_estop_node.py L159) — Releases the timer + publishers.
  • HardwareEstopNode.on_shutdown(state) -> TransitionCallbackReturn (hardware_estop_node.py L174) — Forces cleanup (delegates to on_cleanup).
  • main(args=None) -> int (hardware_estop_node.py L277) — Entry point for ros2 run openral_safety_watchdog hardware_estop_node.

packages/openral_rskill_ros/openral_rskill_ros/

  • RskillRunnerNode(*, node_name="openral_skill_runner", robot_description, aggregator, skill_resolver=None) (rskill_runner_node.py L678) — The ExecuteRskill action server: a lifecycle node dispatching to the resolved rSkill at rate_hz (param 0 = the manifest's action_spec.control_freq_hz, else 30 Hz — issue #303), aborting any blocking wait the instant /openral/estop or a latched /openral/safety_status reports unsafe. Every terminal outcome stamps both a prose failure_reason and a typed failure_kind. on_configure draws a random nonzero 64-bit _runner_session_id (logged as rskill_runner session id 0x…) that ROSPublishingHAL stamps on every ActionChunk; the tick counter restarts per process, so the HAL's replay watermark is keyed on (session, tick) (hazard log Entry 036 Amendment 3). Goal-scoped declarations: the goal's own place_declaration / grasp_declaration, else the scene's place_declaration_json / grasp_declaration_json param (for the grasp one, else with grasp_approach_enabled a goal-scope declaration: target_id="approach", every hand's links via openral_core.gripper_hands, no search box, timeout_s = the goal deadline capped at 120 s — the HAL's approach-armed target narrows it to one hand; for the place one, else with place_approach_enabled a goal-scope declaration: target_id="surface", no object, no search box, timeout_s = the goal deadline capped at 120 s — the HAL's place-target leg attaches the surface it measures under the carried payload and never declares on its own; under object_tracking: tracking / on deploy_e2e always sets it and the tracker measures the region, TrackerSession.place_region; the goal-scope declaration names the prompt's place_zones_json zone (or a station candidate set) under tracking, and under on only when no DESTINATION standing query exists — a non-monotone, sim-only relaxation, Safety-WG review and a hazard-log row owed), is armed at goal start on /openral/place_declaration / /openral/grasp_declaration (RELIABLE + TRANSIENT_LOCAL, depth 1) with rskill_id / trace_id / stamp_ns overwritten and any region stripped, and retracted on every exit incl. E-stop (_arm_*_declaration / _retract_*_declaration). Object tracking (issue #418): params object_tracking ("off", the deploy's DeployRuntime.object_tracking) and object_queries_json (a JSON list of ObjectQuery, from openral deploy sim); not "off", _with_queries attaches the TARGET/CONTEXT queries as the armed grasp declaration's target_queries (each hinted with openral_core.hand_joint of its contact_links) and the DESTINATION one as the place declaration's destination_query — a goal's own queries win, and a goal naming its own target still gets the deploy's CONTEXT queries it does not name (Spark R273); with no declaration of that kind in force it logs rskill_runner.<grasp|place>_queries_unarmed and arms nothing (a place declaration would let the sim attest a place witness). The grasp declaration is encoded with query_factory=openral_msgs/ObjectQuery (_tracking_queries validates the JSON; a bad one refuses the declaration like any malformed one). "off" leaves both declarations exactly as before. Grounding is for manipulation goals only: with tracking on the runner reads the goal's manifest (_goal_manifest: the resident skill's, else the two-phase resolver's, no weights) and a base-only skill (station_perception_wanted is False, e.g. Nav2) arms no place or grasp declaration, so no standing query rides it and nothing is waited for (rskill_runner.declarations_skipped why=base_only); a skill that may grasp (_grasps: a vla, or actuators_required naming a gripper / dex-hand mode, or a manifest that cannot be read — not a wrapped MoveIt look-at / joints / end-effector-pose motion) whose resolved grasp declaration carries no target_queries (goal, scene and standing queries all empty), or that has no grasp declaration in force at all (none configured, or one that does not validate), is refused before any declaration is published or the station perception switched with ROSReasonerInvalidPlan (FAILURE_PLANNING_ERROR: the reasoner re-sends with grasp_target; the skill stays in its palette); a skill actuating nothing keeps the previous behaviour. Order: the refusals (_grasp_declaration_for), then the station perception (_station_perception_for, so the tracker's search timers start with the perception on), then the place and grasp declarations are published (_arm_place_declaration, _publish_armed_grasp); _goal_manifest's resolution is reused by _resolve_and_gate (one resolve, one Hub fetch, per dispatch). A goal-built grasp declaration whose pre-execution waits (station transitions, grounding wait, skill load, starting pose) ate half its TIMEOUT_MARGIN_S is republished under the same key just before the run with timeout_s = elapsed + the resolved budget + the margin, capped at 120 s (_extend_grasp_declaration, rskill_runner.grasp_declaration_extended). Grounding wait (#418 design step 1.4): params grounding_wait_s (tracking on with 0 refuses on_configure) and grounding_required; the runner subscribes to /openral/tracked_objects (RELIABLE, VOLATILE, depth 1; in every tracking mode since #635, which feeds each publication to the running goal's success judge) and, with tracking on, after arming, _await_grounding polls the graph clock until every TARGET query on the armed grasp declaration is grounded (ungrounded_target_queries), logging rskill_runner.grounding_ready, else after the wait rskill_runner.grounding_incomplete (proceeds, no exemption for them) or, under grounding_required, aborts the goal before the skill loads with ROSPerceptionStale (FAILURE_PERCEPTION_STALE). Cancel / E-stop end the wait, and the goal then ends there, before the skill loads (_end_stopped_before_skill: an E-stop as the in-rollout safety_estop: result, a cancel through _end_cancelled; #421 review). With tracking on it also subscribes to /openral/failure/world_state: an exhausted ObjectQueryEvidence keyed to the goal's armed grasp or place declaration (_on_world_state_failure) sets the cancel flag, and every cancel branch (_end_cancelled: the grounding wait, the starting-pose preamble, the rollout) ends the goal aborted with FAILURE_OBJECT_NOT_FOUND and ROSObjectNotInMemory: …, recorded on the goal's rskill.execute span (only this cause gets that kind; _failure_kind_for_exception still maps ROSObjectNotInMemory to FAILURE_PERCEPTION_STALE). The goal-end publishes (the Episode END marker, the declaration retractions) go through _publish_unless_shut_down: once SIGINT has shut the rclpy context down a publish that raises InvalidHandle/RCLError is skipped with one rskill_runner.publish_skipped_context_shutdown info line (no traceback out of the action server, no …_retracted line for a retraction that never reached the wire); with the context up the error is unchanged and every retraction is still attempted in the same order. A supplied place declaration (goal or place_declaration_json) that does not validate aborts the goal with a ROSConfigError reason before the skill is resolved — never a fall-back to the goal-scope one. Services /openral/rskill/hold (std_srvs/SetBool: while held the policy steps and its actions are dropped; the runner sends hold_action of the last tick's actions, frozen when the hold engages — the arm at its measured joints, the jaw at its last command — so the deadman stays fed and nothing moves; refused when the last command has no position to hold) and /openral/rskill/complete (std_srvs/Trigger: ends the running goal as a success), both cleared with the goal — the completion check's seam (2026-10-22).
  • merge_grasp_declarations(goal, scene, *, budget_s) -> tuple[GraspDeclaration, dict[str, str]] (rskill_runner_node.py L306) — The grasp declaration a goal arms: the goal's own (target_id, object_id, target_queries, its search_box when the reasoner seeded one) completed from the scene's grasp_declaration_json — search_box / workspace_box / contact_links fill only what the goal leaves unset, and only when the goal names the scene's hand (another hand: the goal's links, no scene box or lifetime, logged at warning, and the runner appends a (note: ...) naming both hands to that goal's failure reason when the hand can explain it — a safety stop, a target that did not ground or was not found — so the reasoner can correct the hand); a scene naming its own object (TARGET target_queries) lends its boxes only to a goal naming that label (boxes=other_object otherwise); the goal's target_id is kept (the one source of the key the tracker's queries, its tracks and the kernel share). timeout_s = max(goal, scene (same hand only), budget_s + GraspDeclaration.TIMEOUT_MARGIN_S) capped at GraspDeclaration.MAX_TIMEOUT_S (120 s; past it the runner ends the goal before the declaration lapses). A merged non-sim: scene search_box also seeds the TARGET queries with no seed. Returns the per-field source the runner logs as rskill_runner.grasp_declaration_merged.
  • station_perception_wanted(manifest) -> bool | None (rskill_runner_node.py L100) — Station mode: whether a skill needs the station perception (object tracker + segmenter) active, from its manifest's actuators_required: True when any actuator is not a base mode (arm / gripper / hand / Cartesian, e.g. pi0.5, MoveIt), False when every actuator is body_twist / foot_placement (Nav2, a VLN policy), None when it actuates nothing (perception left as it is). The runner (station_perception_nodes param, set by deploy_e2e only on a mobile base with tracking on) activates the nodes and switches the tracker's station perception on (station_perception_service) before a manipulation goal's declarations are published, and keeps both on across the goals at that station (pick, then place: no segmenter reload per goal); a base-only goal switches them off before it is sent, best effort (logged: a crashed segmenter must not stop every Nav2 goal). A failed activation refuses the goal with ROSPerceptionStale naming the node. Each service round trip is bounded by station_perception_timeout_s in all, and an unanswered request is dropped from its client (_station_call).
  • place_zones_for_prompt(prompt, zones, *, base_frame) -> list[PlaceZone] (rskill_runner_node.py L414) — The declared place zones a goal's prompt names (read as openral_core.place_zone_for_prompt reads it): a zone named by its own name wins over the alias every station shares; else the zones the aliases name must be one slot (two slots named → [], never both); several zones of that slot are a station candidate set only when all are in a fixed frame and base_frame is known (no robot description → []). One zone → its zone:<name>; several → zone_candidates_target_id; [] → "surface" (_goal_scope_place_declaration).
  • ungrounded_target_queries(queries, tracked, key) -> list[str] (rskill_runner_node.py L573) — Issue #418: the labels of queries with fewer than min_instances CONFIRMED / OCCLUDED / BOUND tracks of their label and role keyed key (the declaration's "<target_id>@<stamp_ns>") in tracked (a TrackedObjectSet, or None) — the tracker's own RESOLVED rule, read by the runner's grounding wait.
  • base_settled(samples, *, window_s, tolerance_m, tolerance_rad) -> bool (rskill_runner_node.py L138) — Whether a base held still over the last window_s of (t_s, x, y, yaw) samples: every sample in the window within the planar and (wrapped) yaw tolerance of the newest, and the samples span the window. The runner's gate before a station's arm skill (_wait_base_settled, which refuses the goal at base_settle_timeout_s).
  • home_held_joints(joints, home) -> frozenset[str] (rskill_runner_node.py L5855) — The joints a move home never commands, outside the openral_home planning group: every joint the pose does not name (the base among them) and role: gripper joints. Every other joint is planned and checked on arrival, an already-home one included.
  • within_limits(joints, measured, skip=()) -> bool (rskill_runner_node.py L5879) — Whether every joint not in skip measures inside its position_limits, within _STOW_HOLD_TOLERANCE of a limit counting as inside (a joint resting on its hard stop reads a hair past it); arms_at_home and the move home's arrival check both require it.
  • arms_at_home(joints, home, measured) -> bool (rskill_runner_node.py L5908) — Whether every planned joint measures within 1e-3 of its home value and inside its position_limits (a joint out of range is never taken as home); the move home is skipped when true.
  • _new_execution_budget(budget_s) -> ExecutionBudget / _deadline_lapsed(budget, chunks) -> bool — The goal's execution budget (node_execution_budget(self, …)) runs on the graph clock under use_sim_time (sim seconds, like Nav2's and MoveIt's own timeouts; re-read per goal) and on time.monotonic() otherwise; _deadline_lapsed logs the miss, adds the deadline_missed span event with miss.kind, and stashes the BudgetMiss so the aborted goal's failure_reason reads deadline_exceeded: … or clock_stalled: … (both FAILURE_DEADLINE_MISSED). _grasp_declaration_lapsing(chunks) ends the goal the same way when its grasp declaration is about to expire (declaration_expiry_miss; TimeoutEvidence.operation rskill.execute:grasp_declaration:deadline_exceeded; a wrapped ROSActionRskill's stop_check checks it too), and _report_miss is the logging/evidence step both share. ROS params execution_wall_cap_factor (20) and graph_clock_stall_s (10 s) are the wall-clock backstops, shared with every wrapped skill on the node and validated at on_configure (non-positive / non-finite fails the transition); a NaN goal deadline_s is rejected as FAILURE_CONFIG_ERROR. Adapted from DsslRobot/openral.
  • _drop_exception_type(code, status_cls) -> type[Exception] (module-level) — The exception an apply-wait raises when the kernel reports a SafetyStatus drop of its tick: ROSPerceptionStale for DROP_{VOXEL,ATTACHED,STATE}_UNAVAILABLE (a stale or missing kernel input), ROSRuntimeError otherwise. Recorded with the drop by _on_safety_status; _safety_drop_reason(since) -> tuple[str, type[Exception]] | None hands both to ROSPublishingHAL.
  • _on_safety_failure(msg) / _attach_failure_evidence(result) -> result — The runner subscribes to the kernel's /openral/failure/safety (RELIABLE, VOLATILE, depth 10) and caches its newest evidence_json; _execute_cb stamps every failed result's evidence_json: the goal's own TimeoutEvidence (deadline) / ObjectQueryEvidence (object not found) for its own kind, else the kernel's report received during the goal — PerceptionStaleEvidence for FAILURE_PERCEPTION_STALE, any other kernel report for FAILURE_SAFETY_ESTOP — else nothing.
  • _resolve_success_condition(request) -> SuccessCondition | None / _success_condition_met(tracked) -> bool / _stamp_task_outcome(result, span) — Issue #635. The goal's own success_condition wins; else the one the success_conditions_json parameter (the deploy scene's {prompt: SuccessCondition}) declares for the goal's prompt (success_condition_for_prompt; a prompt none of them names is logged rskill_runner.success_condition_unmatched); one that does not validate refuses the goal (ROSConfigError). _on_tracked_objects feeds every set the tracker publishes to the goal's openral_core.success.SuccessJudge; each tick, while the world-state snapshot holds a live tracked set, a settled condition with end_on_success ends the goal as a success and its verdict is latched for the Result (without it the verdict only labels the Result). Every result leaving the rskill.execute span is stamped (_task_outcome_stamped) with task_outcome + task_outcome_json and the span with rskill.task_outcome / .source / .reason: the latched verdict, else the condition's verdict at goal end (unknown when the tracked set is gone or the judge cannot run; ROSSafetyViolation is re-raised); a goal the skill (ROSRskillGoalSatisfied) or a completion check (/openral/rskill/complete) ended is succeeded by skill / checker unless a condition says failed; else unknown (source: none). A scene that grades the goal's prompt decides ahead of all of these (source: scene).
  • _on_scene_grade(msg) -> None / _scene_grade_met(tracked) -> bool — The scene's own success condition: /openral/sim/placement_grade (std_msgs/String JSON {prompt, grade, score, require_released}, RELIABLE / TRANSIENT_LOCAL / depth 1, from the HAL node). Under _goal_lock it keeps the newest grade and, while a goal runs, the one of its prompt; a goal seeds from the newest grade when that one is of its prompt (the reasoner set the active task before the goal arrived), and _reset_active_goal drops it. While the goal's prompt is graded, its success grade ends the goal once the object is let go (scene_grade_ends_goal) and the tracker's end_on_success does not; _stamp_task_outcome reports the grade (scene_grade_outcome) ahead of any latched verdict.
  • goal_scene_grade(grade, prompt) -> dict[str, Any] | None (rskill_runner_node.py L6128) — grade when it is the scene's grade of prompt, else None.
  • scene_grade_ends_goal(grade, tracked) -> bool (rskill_runner_node.py L6142) — True for the success grade of a rubric with require_released; without it (a held object in the target grades placed) only once tracked holds no BOUND track; with no tracked set the goal runs on and its outcome is still the grade.
  • scene_grade_outcome(grade) -> TaskOutcome | None (rskill_runner_node.py L6170) — The TaskOutcome (source="scene") a scene grade gives a goal: the rubric's success grade (score 1.0, whatever its name) succeeds, any other fails; None without a grade.
  • _failure_kind_for_exception(exc) -> int (module-level) — Maps the OpenRAL exception hierarchy onto the ExecuteRskill.Result.FAILURE_* uint8 constants, most-specific-first. A ROSSafetyViolation other than ROSEStopRequested has no kind by design — it is re-raised to the safety supervisor, never folded into a Result.
  • _classify_runtime_failure(exc) -> tuple[str, int] (staticmethod) — One message probe yielding both the typed failure_reason and the matching failure_kind for a raw non-ROSError escape, so the string and the uint8 can never disagree. _label_runtime_failure(exc) -> str is the thin projection onto the first element.
  • _apply_starting_pose(skill, goal_handle) -> tuple[int, str] | None / _interpolate_starting_pose(pose, goal_handle) -> tuple[int, str] | None / _dispatch_moveit_approach(pose, goal_handle) -> tuple[int, str] | None — Reach a manifest starting_pose (widened by expand_starting_pose) before inference via either a configured MoveIt plan (rskill-moveit, goal {"target": "joints", "joints": {...}}) or a bounded joint ramp, checking cancellation between waypoints and failing the goal on any error.
  • class ResolvedRskill(NamedTuple) (rskill_runner_node.py L5234) — (rskill_id, manifest, manifest_path, in_tree, revision): the manifest the gates check and the build binds (one object), and where it came from (an in-tree file, or the Hub snapshots/<commit>/rskill.yaml the weight download is pinned to).
  • class TwoPhaseSkillResolver(Protocol) (rskill_runner_node.py L5255) — @runtime_checkable resolve(*, rskill_id, revision) -> ResolvedRskill + build(resolved, *, prompt, prompt_metadata_json, goal_params_json, description) -> rSkillBase. RskillRunnerNode gates any such resolver between the two calls (_resolve_and_gate, before it evicts the resident skill), so a wrapper keeps the gate as long as it exposes both; any other callable is an opaque SkillResolver, gated after the build and shut down (_shutdown_skill) on refusal.
    • TwoPhaseSkillResolver.resolve(*, rskill_id, revision) -> ResolvedRskill (rskill_runner_node.py L5266) — The validated manifest; no weights.
    • TwoPhaseSkillResolver.build(resolved, *, prompt, prompt_metadata_json, goal_params_json, description) -> rSkillBase (rskill_runner_node.py L5270) — A configured + activated skill from a gated resolved.
  • class ManifestSkillResolver(*, search_paths=(), hub_fallback=True, ros_node=None, scene_cameras=(), tf_lookup=None, tf_lookup_getter=None) (rskill_runner_node.py L5283) — The production TwoPhaseSkillResolver. resolve looks the id up fresh per dispatch (openral_rskill.loader.manifest_paths_by_name, first search path wins) and parses it typed (parse_rskill_manifest, so an invalid in-tree manifest raises its own error and is never replaced by a Hub copy of the same name); only an id not found in-tree goes to rSkill.fetch_manifest (with hub_fallback). build binds exactly the gated manifest: policies via _build_runtime_skill_from_manifest (a Hub policy after rSkill.install_snapshot, pinned to the gated commit); ros_action/ros_service via ROSActionRskill on ros_node, in-tree only, shut down if configure/activate fails. Calling the instance runs resolve + check_manifest_gates (a description is required; scene_gripper_convention is forwarded) + build.
    • ManifestSkillResolver.resolve(*, rskill_id, revision) -> ResolvedRskill (rskill_runner_node.py L5338) — ROSConfigError for an invalid in-tree manifest, an unknown id without hub_fallback (naming the known ids), or an unfetchable / invalid Hub manifest.
    • ManifestSkillResolver.build(resolved, *, prompt, prompt_metadata_json, goal_params_json, description) -> rSkillBase (rskill_runner_node.py L5364) — Re-runs rSkill.check_dispatchable defensively.
  • check_manifest_gates(manifest, *, description, commercial_deployment, scene_gripper_convention=None) -> None (rskill_runner_node.py L5201) — The runner's dispatch gates, before any download, load or eviction: rSkill.check_dispatchable (kind + no any on an actuating skill), rSkill._check_license, then rSkill.check_compatibility (embodiment, capability flags, runtime/dtype vs compute, sensors, gripper encoding with the scene override) — the umbrella openral sim run and openral detect use. description is required.
  • make_default_skill_resolver(ros_node, *, search_paths=(), scene_cameras=(), tf_lookup=None, tf_lookup_getter=None) -> ManifestSkillResolver (rskill_runner_node.py L5485) — Production resolver factory: ManifestSkillResolver(hub_fallback=True, ros_node=ros_node). Its Hub branch binds rSkill.from_pretrained's packaging handle to a runtime skill via _build_runtime_skill_from_manifest(handle.local_dir / "rskill.yaml", …) — until 2026-09-22 the Hub path returned the handle raw, so every Hub-hosted VLA aborted at the embodiment gate (a non-rSkillBase return now raises a typed ROSConfigError instead of a bare AttributeError with an empty failure_reason). Preload: parameters preload_rskill_id / preload_rskill_revision / preload_prompt make on_activate start a daemon worker (_preload_resident_skill) that runs _acquire_skill under _execute_serial so the skill is GPU-resident before any goal exists (a deactivate/activate cycle mid-load keeps the one worker: on_activate never starts a second while the first is alive, so _preload_in_flight stays set until the load finishes); _goal_cb REJECTS goals while _preload_in_flight is set (acceptance is what arms the deadman's first-chunk window), and REJECTS every goal while the e-stop latch is held, logging rskill_runner.goal_rejected: e-stop latched at WARNING with the recovery (openral estop reset) since a ROS 2 rejection carries no reason, and _acquire_skill keeps the weights resident per (id, revision): a skill exposing set_goal_prompt(prompt) (the VLA shim from _make_policy_adapter_skill, which applies _effective_goal_prompt's default_prompt fallback and resets the adapter so the previous goal's buffered chunk / prefetch is dropped) is retargeted to the new goal's prompt with no reload, so preload_prompt is only a warm-up prompt; any other skill keeps (prompt, prompt_metadata_json, goal_params_json) in its key, because a wrapped-ROS skill lowers them into its goal at construction. A key change logs rskill_runner.resident_key_mismatch, since it costs the full cold load inside the watchdog window. A ROSSafetyViolation raised while preloading is logged as rskill_runner.preload_safety_violation and handed to _rethrow_on_executor(exc), a one-shot timer that re-raises it on the executor thread so it escapes spin() exactly as it does from the goal path (a bare re-raise on the worker thread would end only that thread while the node kept accepting goals).
  • make_local_skill_resolver(search_paths, *, scene_cameras=(), tf_lookup=None, tf_lookup_getter=None) -> ManifestSkillResolver (rskill_runner_node.py L5513) — In-tree-only resolver: ManifestSkillResolver(hub_fallback=False) with no ros_node, so only policies build; an unknown id raises ROSConfigError naming the known ids.
  • resolve_control_rate_hz(param_hz, description) -> float | None (rskill_runner_node.py L5541) — The tick rate: rate_hz > 0 wins, else the manifest's action_spec.control_freq_hz, else None; RskillRunnerNode._control_rate_hz() then warns (naming the missing field) and ticks at 30 Hz, which only a sim-only manifest can reach because a real ros2_control HAL refuses to build without the field. Issue #303: the real ros2_control HAL derives every trajectory deadline from that same manifest field, so runner and HAL cannot disagree unless an operator overrides the param on purpose. RskillRunnerNode._control_rate_hz() wraps it for both tick loops.
  • starting_pose_joint_bounds(param_max_delta_per_s, param_tolerance_rad, description) -> list[tuple[float, float]] (rskill_runner_node.py L5566) — Per-joint (max speed, arrival tolerance) for the move to a skill's starting pose, each in the joint's own units: prismatic joints use safety.starting_pose_max_joint_speed_m_s / starting_pose_tolerance_m, every other joint the _rad_s / _rad fields; each speed is capped at the joint's velocity_limit. Declared per robot, never derived (issue #303). A positive param overrides the rad values only, never a prismatic joint. ROSConfigError naming the missing field. Wrapped by RskillRunnerNode._starting_pose_bounds(*, arrival=True): the starting_pose_tolerance param widens only the arrival check, arrival=False (the manifest's tolerance) decides whether the ramp is skipped, so a joint off by more than the manifest allows is still commanded; replaced the scalar resolve_starting_pose_ramp (audit C F2: a 0.05 "rad" tolerance swallowed a 0.041 m gripper stroke and the Franka gripper ramped at 5x its limit).
  • expand_starting_pose(pose, manifest, description, measured) -> list[float] (rskill_runner_node.py L5622) — A manifest starting_pose as one target per robot joint: a robot-width pose passes through; a pose as wide as slot_state_joint_names sets those joints by name and keeps every other joint (base, lift) at measured. ROSConfigError for any other width or a measured of the wrong width. Used by _apply_starting_pose and _wait_for_starting_pose.
  • starting_pose_waypoint_action(names, current, target, alpha, *, held_joints=()) -> Action (rskill_runner_node.py L5668) — One starting-pose ramp waypoint: JOINT_POSITION naming every joint but held_joints, zero-padded at those (the ADR-0102 slot-row form), so the kernel places them at their measured value and the HAL holds them; a twist-only base part never gets a joint target and a held joint is never range-checked.
  • validate_starting_pose(description, target, *, held_joints=()) -> None (rskill_runner_node.py L5707) — Refuses a robot-order starting_pose target before the ramp: wrong width, a non-finite value, or a named joint outside its position_limits (ROSConfigError). held_joints (not named by a slot-subset pose, held at their measured value by expand_starting_pose) skip the range check.
  • starting_pose_reached(current, target, bounds) -> bool (rskill_runner_node.py L5746) — Every joint within its own tolerance; the runner's arrival check before the first inference tick.
  • starting_pose_misses(current, target, bounds, names) -> list[tuple[str, float, float]] (rskill_runner_node.py L5761) — (joint, target - measured, tolerance) for every joint starting_pose_reached rejects (a non-finite residual is a miss); residuals rounded to 4 decimals unless that would print a miss as within tolerance. _wait_for_starting_pose polls WorldStateAggregator.fresh_joint_state (no per-poll snapshot span) and raises the misses as a ROSRuntimeError, with ControllerEvidence(state="starting_pose_not_reached", detail=<JSON joint/residual/tolerance list>) as the goal's evidence, only when the newest fresh frame at the timeout was stamped after the move ended; no measured frame, or a stalled stream, is ROSPerceptionStale.
  • hold_action(action, measured, gripper_joints, manifest_names) -> Action | None (rskill_runner_node.py L5791) — The completion check's hold (2026-10-22): a one-step JOINT_POSITION command holding every arm joint at its measured position and every role: gripper joint, the gripper and dex_hand_joints fields at their last command; unnamed rows take manifest_names when that long. None for another mode, an unnamed row of another length, or an unmeasured arm joint.
  • starting_pose_ramp_steps(current, target, bounds, rate_hz) -> int (rskill_runner_node.py L5934) — Ticks of the linear ramp: 0 when already reached, else the longest per-joint |delta| / speed * rate_hz, so no joint exceeds its own cap.
  • resolve_control_rate_source(param_hz, description) -> tuple[float, str] (rskill_runner_node.py L5962) — The tick rate and its source (rate_hz_param / manifest / fallback = _FALLBACK_CONTROL_RATE_HZ, 30 Hz). _control_rate_hz() warns on fallback; _check_skill_control_rate records control.rate_hz / control.rate_source on the rskill.execute span.
  • check_skill_control_rate(trained_hz, tick_hz, *, skill_id, robot) -> None (rskill_runner_node.py L5983) — ROSConfigError when the skill's action_contract.control_freq_hz is declared and differs from the tick rate (there is no action resampler); the goal is rejected before the starting-pose move. None = undeclared, unchecked.
  • _require_positive_param(node, name) -> float (rskill_runner_node.py L6010) — Reads a float ROS param the launch must set (joint_state_staleness_limit_s, declared 0.0 = unset) and raises ROSConfigError naming it when it is not positive; deploy_e2e.launch.py sets it from the manifest's safety.joint_state_staleness_limit_s in real mode (_runner_joint_state_staleness_s(description, hal_mode, *, republished); when the runner reads the HAL's rate-limited ~/joint_states republish it adds two republish periods, limit + 2 / control_freq_hz, capped at the former 0.5 s — the HAL's own check stays at the manifest value; sim keeps 0.5 s).
  • _warmup_observation() / shim on_warmup (rskill_runner_node.py) — Warm-up through the real tick path: the policy shim's on_warmup runs adapter.step on _warmup_observation() — zeros shaped like the cell's RGB intrinsics for every required camera slot, state_contract.dim zeros (falling back to the robot description's joint count; with neither it raises a typed ROSConfigError, which the non-fatal wrapper logs as rskill_runner.warmup_failed and activate proceeds cold), the goal prompt — then adapter.reset(), instead of a bare warm_up_lerobot_policy forward. The bare forward left the first real tick paying 306–357 s on a Jetson AGX Orin under a live graph (chunk executor thread, autocast, preprocessor on real-sized frames each have first-call costs) against the deadman's 120 s first-chunk window; a warm second dispatch in the same process took 426 ms, which is what the preload now pays.
  • prop _CANCEL_DRAIN_S, _MAX_APPROACH_WAYPOINTS, _DEFAULT_EXECUTION_DEADLINE_S (rskill_runner_node.py L258–274) — The 100 ms cancel drain; the runaway guard on the MoveIt approach replay waypoint count; and the global fallback (45 s) for a goal's execution budget when neither the dispatch nor the skill manifest declares one.
  • prop _SAFETY_STATUS_TOPIC, _SAFETY_STATUS_LIVENESS_S (rskill_runner_node.py L469–487) — ADR-0096's latched safety-state topic (/openral/safety_status) both the C++ kernel and SafetyPassthroughNode publish on, and the HZ-0096-1 liveness window (3 s) past which a stale SafetyStatus is reported as an abort reason rather than downgraded to clear.
  • main(args=None) -> int (rskill_runner_node.py L7099) — Entry point for ros2 run openral_rskill_ros rskill_runner_node; bootstraps a standalone node with a fresh RobotDescription and WorldStateAggregator. Production launches use compose_so100_runtime instead, to share the aggregator with the colocated world_state_node.
  • compose_runtime(robot_yaml, *, skill_resolver=None, enable_world_cloud_bridge=False, world_cloud_topic="", slam_source_node="", dataset_out=None, image_staleness_limit_s=None, deploy_sensors=(), sensor_overlays=(), …) -> ComposedRuntime (compose.py L179) — Loads a robot manifest and builds one WorldStateAggregator shared by a colocated world-state node and RskillRunnerNode, always attaching a SlamMapBridge so any /map publisher populates the dashboard. Cameras get their own freshness window, independent of joint/EE staleness. deploy_sensors (a DeployScene.sensors block) is merged into the manifest's sensors via merge_deploy_sensors before the aggregator and runner are built, so a scene's workcell cameras (and any vla_feature_key they carry; the scene never touches a robot camera) reach the runner's camera slots, the dataset recorder and world state alike — until 2026-09-23 only the sensor readers saw it and the OpenArm pick-and-place π0.5 ran with its context (ZED head) view replaced by lerobot's masked blank. sensor_overlays (the host's RobotUnit overlays, resolved by runtime_node) are applied to the manifest sensors first (apply_sensor_overlays).
  • spin_until_shutdown(executor) -> None (compose.py L86) — executor.spin() until a signal-driven shutdown: KeyboardInterrupt, ExternalShutdownException and a RuntimeError (covers RCLError / InvalidHandle, and a take racing the shutdown) raised after the context went down (the SIGINT handler invalidates it mid-spin: the next wait set, a dequeued callback's publish, a subscription take) all end it quietly; a RuntimeError with the context still up propagates. runtime_node and the world-state events thread spin through it (the runtime exited 1 on that race). The executor twin of openral_hal.lifecycle.spin_until_shutdown, which spins a node; kept per layer (the rSkill layer does not import the HAL).
  • start_world_state_executor(world_state_node, *, on_failure=None) -> Callable[[], None] | None (compose.py L112) — ExternalShutdownException (Ctrl-C, or an external rclpy.shutdown()) is a clean exit, never a failure. A callback that raises ends spin on the daemon thread; the exception is logged as world_state.executor_died and handed to on_failure (the runtime_node script stops its own executor and exits 7), or re-raised when no handler is given; the stop callable's own shutdown is not a failure. spins the world-state node on rclpy's C++ rclpy.experimental.EventsExecutor in a daemon thread and returns a stop callable (shutdown + join), or None on an rclpy without it (pre-Jazzy 7.1) so the caller adds the node to its own executor. Why: the Python MultiThreadedExecutor rebuilds its wait set in Python on every wake-up over every entity of every node it holds; with world_state's ~40 topics on it that loop held 64 % of the deploy runtime's GIL on an AGX Orin and the in-process π0.5 inference thread got <2 % (1.6 s idle forward → ~300 s live). The skill runner stays on the multi-threaded executor, whose reentrant group keeps execute_rskill accept/cancel/result live while a goal blocks a worker.
  • compose_so100_runtime(*, skill_resolver=None) -> ComposedRuntime (compose.py L411) — SO-100 convenience wrapper over compose_runtime.
  • ComposedRuntime (compose.py L41) — Dataclass returned by compose_runtime: description, aggregator, world_state_node, skill_runner_node, slam_bridge, world_cloud_bridge, dataset_recorder_bridge fields.
  • SensorLeg (sensor_leg.py L199) — Real-mode camera leg for openral deploy run, the real-hardware counterpart of the sim HAL's SimSensorBridge. Dataclass holding readers + publishers + which sensors write directly to the aggregator without a duplicate ROS-topic path.
  • SensorLeg.start() -> None (sensor_leg.py L219) — Starts every prepared publisher after ROS lifecycle configuration; entity creation and lifecycle transitions remain single-threaded until this point.
  • SensorLeg.close() -> None (sensor_leg.py L232) — Stops publishers first, then closes readers, idempotently and exception-safe (teardown must always reach the HAL shutdown behind it).
  • _DEFAULT_PUBLISH_RATE_HZ (sensor_leg.py L61) — 10.0; publish cadence when the binding's backend_params carry no fps. Matches the WorldStateAggregator staleness-gate expectation.
  • _RGB_CHANNELS (sensor_leg.py L65) — 3; channel count of an interleaved colour frame — the only layout the 180° dashboard flip knows how to reshape.
  • _MAX_FALLBACK_TOPIC_RATE_HZ (sensor_leg.py L85) — Cap on the ROS topic cadence for the Python fallback publisher only (the native GStreamer tee is uncapped).
  • _DEFAULT_TOPIC_MAX_SIZE (sensor_leg.py L96) — (320, 240); resolution ceiling topic_frame_size falls back to.
  • slam_camera_names(runtime) -> frozenset[str] (sensor_leg.py L287) — Camera names feeding visual SLAM, which must never be rate-capped (cuVSLAM / PyCuVSLAM lose the track on a starved stream). Empty when SLAM is off, in which case the fallback-rate cap applies to every camera.
  • open_deploy_sensor_readers(sensors, *, aggregator=None, ros_node=None, uncapped_sensors=(), topic_max_size=None) -> SensorLeg (sensor_leg.py L565) — Builds the complete deploy-bound sensor batch; every camera publishes on openral_core.camera_topic(name) (+ CAMERA_INFO with intrinsics; the topic_prefix argument and DEFAULT_TOPIC_PREFIX were removed by ADR-0108) — gstreamer backends via an in-pipeline ROS tee, others via a polling publisher. On both paths a spec with intrinsics also publishes CameraInfo stamped with spec.frame_id (the tee gets them via SensorReaderConfig.publish_frame_id / publish_camera_info). A shared aggregator also gets a pump writing frames directly into WorldStateAggregator; the fallback publisher's max_size comes from _topic_max_size (capture size for cameras in uncapped_sensors or with topic_native: true, else topic_max_size).
  • _AggregatorPump (sensor_leg.py L123) — Daemon-thread pump polling read_latest at the spec rate into the aggregator, deduplicating on the frame's monotonic stamp. Emits the per-frame observability span after each write, guarded so a failing display path can never starve the policy.
  • _emit_frame_observability(sensor_name, frame, flip_180) -> None (sensor_leg.py L99) — Emits the dashboard's per-frame observability span for a pump-fed camera; exists because the ROS tee these cameras skip is what the dashboard would otherwise read from.
  • _sensor_topics(spec) -> tuple[str, str] (sensor_leg.py L253) — (image, camera_info) topics by modality: a depth sensor → camera_topic(name, DEPTH_IMAGE / DEPTH_CAMERA_INFO) (where the sim bridge and every depth consumer look), anything else → IMAGE / CAMERA_INFO.
  • _publish_rate_hz(spec) -> float (sensor_leg.py L276) — Binding fps, else spec rate_hz, else 10 Hz. This is the capture/native-tee cadence and is not capped.
  • _fallback_topic_rate_hz(spec, uncapped=()) -> float (sensor_leg.py L413) — Caps the ROS topic cadence for the Python fallback publisher only (at _MAX_FALLBACK_TOPIC_RATE_HZ, 3 Hz; an explicit positive topic rate wins and a camera in uncapped — the SLAM cameras — keeps its full rate), since every tick is a GIL-held full-resolution conversion; the native GStreamer tee and the policy's in-process read stay at full rate.
  • _topic_native(spec) -> bool (sensor_leg.py L447) — backend_params["topic_native"] is True: that camera's fallback topic publishes at capture size (and its CameraInfo unscaled) regardless of topic_frame_size, for a bus reader that needs exact pixels (Foxglove, openral record, calibration). Resolution only — the 3 Hz rate cap still applies unless topic_rate_hz lifts it; a native 960x600 publish is ~55 ms of GIL per frame per camera, so it is per camera and opt-in. Only a boolean true counts (YAML 1.1 also reads unquoted yes/on as one); any other value keeps the ceiling and logs sensor_leg.topic_native_ignored. Off by default in every unit file, the OpenArm's included (a commented switch on each wrist for calibration passes). The in-process paths (the policy's aggregator read, --dataset-out) are native regardless.
  • _topic_max_size(spec, uncapped, ceiling) -> tuple[int, int] | None (sensor_leg.py L490) — Resolution ceiling for one camera's fallback topic, the per-camera counterpart of _fallback_topic_rate_hz: None (capture size) for a SLAM camera in uncapped or a topic_native: true binding, else the launch-wide ceiling from topic_frame_size. What open_deploy_sensor_readers hands SensorRosPublisher.max_size.
  • topic_frame_size(runtime) -> tuple[int, int] | None (sensor_leg.py L381) — Resolution ceiling for the fallback topic; None (native pixels) when the object detector or SLAM is on, since both need full resolution. The policy is unaffected either way, reading the aggregator in-process at capture resolution; a single camera opts out of the ceiling with topic_native: true (_topic_native).
  • apply_launch_overrides(runtime, *, enable_object_detector=None, enable_slam=None, slam_stereo_cameras=None, slam_mono_camera=None) -> object | None (sensor_leg.py L323) — Folds the launch's resolved auto-detected flags over the scene's raw runtime block before camera rate-capping decisions are made, since only the CLI resolves the scene's tri-state auto settings.

packages/openral_rskill_ros/openral_rskill_ros/moveit_scene_node.py

Kernel voxels as a MoveIt world octomap: /openral/world_voxels to /planning_scene (a PlanningScene diff carrying only the octomap, so MoveIt keeps its other world objects; an empty grid clears it), minus cells within padding_m of the robot's collision volume (TF link poses; a fixed_attachments child without a TF frame is posed from its parent's). Parameters robot_yaml, geometry_json (the collision_geometry / fixed_attachments of the model move_group plans with, overriding robot_yaml's: a sim scene adds a carried tote), input_topic, output_topic, rate_hz=2.0, padding_m (<0: half cell diagonal + 5 mm).

  • main() -> int (L33) — ros2 run openral_rskill_ros moveit_scene_node.
  • make_moveit_scene_node() -> Node (L50) — Builds the node; publishes only when a newer grid arrived, at most rate_hz.

packages/openral_rskill_ros/scripts/runtime_node

Composed-runtime entry point installed as lib/openral_rskill_ros/runtime_node. Reads the robot_yaml parameter, calls compose_runtime, and spins both lifecycle nodes on a MultiThreadedExecutor; for a real deploy it also opens every deploy-bound sensor reader before spinning. The script eagerly initializes GStreamer before any numpy/pydantic/rclpy import, since a later rclpy.Node() can segfault otherwise. Spins the world-state node on the C++ EventsExecutor (start_world_state_executor; falls back to sharing the multi-threaded executor with a stderr notice) and the skill runner on a 4-thread executor. Launch param joint_states_topic (resolved by deploy_e2e.launch.py via openral_hal.hal_joint_states_topic: scene override, else a real ros2_control HAL's /<hal_node>/joint_states) reaches both composed nodes through the launch's wildcard params: world_state's ingest and the runner's ROSPublishingHAL joint-state cache (RskillRunnerNode param joint_states_topic, "" = /joint_states) share the one topic, so a ros2_control arm's 750 Hz broadcaster stream never wakes the Python executors. With a deploy_config, it loads the scene BEFORE compose_runtime and passes its sensors: as deploy_sensors; the sensor leg then reads readers off that merged description.

  • _prewarm_vla_imports() -> None — Imports torch + lerobot.policies.factory early so the shared bulk of any VLA adapter's import cost is paid before any camera-reader thread exists. Must run ahead of open_deploy_sensor_readers, since a transformers import can otherwise starve a reader thread of the GIL for minutes.

packages/openral_rskill_ros/launch/deploy_e2e.launch.py

  • _object_tracking(mode, *, hal_mode, vision_attachment_enabled, enable_octomap, self_filter_runs, grounding_wait_s, cameras, depth_cameras, exemption_provider="") -> tuple[str, tuple[str, ...]] (L1981) — Issue #418: checks the object_tracking launch arg (off composes nothing; otherwise the octomap and vision attachment legs, the robot self-filter (self_filter_runs, _cloud_shows_the_robot: its robot masks; a MuJoCo ray-cast deploy runs none and is refused) and grounding_wait_s are required, tracking/on refused off hal_mode:=sim (the removed shadow/bind refused as unknown), on refused without an exemption_provider (ADR-0121 step 3: its tracked-object rules are the provider's, and on stands the HAL's grasp-region producer down)) and returns the tracked cameras (object_tracking_cameras, else every publishing depth camera). With it on, the launch starts openral_object_tracker (autostarted lifecycle node), adds the tracked cameras to the self-filter's robot_mask_cameras and to the segmenter's cameras / camera_infos, passes object_tracking to the skill runner and the reasoner, appends vision_attachment_publish_attachment_state:=false to the HAL params after the params file whenever tracking is on, and hands one tracked_release_timeout_s (default 3.0 s) to the kernel, the voxel bridge (released_clear_timeout_s) and the tracker.
  • _tracked_release_params(description, object_tracking) -> dict[str, object] (L2109) — Issue #418 K5: in tracking/on the jaw-open release params (an exemption-provider rule since ADR-0121 step 3: reach only the provider as contact_exemptions.*) from the manifest: every calibrated gripper joint, its open sign (away from closed_position, an end of position_limits), tracked_release_gap = the largest stall_gap / 2 (the tracker monitor's gap) and the shared openral_world_state.object_tracker.session.RELEASE_DWELL_S (0.3 s, also the tracker's release_dwell_s); {} in off.
  • _tracked_grasp_exemption(object_tracking, *, grasp_allowance_enabled) -> bool (L2175) — Issue #418 K2: tracked_grasp_exemption_enabled (provider-only since ADR-0121 step 3, passed as contact_exemptions.*), true iff object_tracking == "on" (a source selector: the tracked objects replace the producer region as the grasp exemption's source; never a disable). ROSConfigError for on without grasp_allowance_enabled (the kernel would refuse configure); on is already sim-only.
  • _workspace_explained_cells(object_tracking, *, workspace_contact_enabled, requested=True) -> bool (L2217) — Issue #418 K7: workspace_explained_cells_enabled (provider-only since ADR-0121 step 3, passed as contact_exemptions.*), true iff object_tracking == "on", workspace contact is on and requested (DeployRuntime.workspace_explained_cells). With a provider the launch then passes the kernel static_points_file = _static_points_file(..., kernel_cells=True) when the scene declares static geometry.
  • _locate_contrast_labels(locator_specs) -> bool (L2341) — The object tracker's locate_contrast_labels: on only when its locator (the first, its locate_service) is zeroshot_hf (OmDet), the one engine that names each box with one class of the prompt.
  • _tracked_clear_enabled(object_tracking) -> bool (L2353) — Whether a track may drive a map clear (tracked_clear_enabled on the octomap_voxel_bridge and robot_self_filter nodes: identity clear, released-box window, carry sweep / vacated box, payload point drop). True for tracking and on (the clears follow a unique tracker binding); off leaves a carried payload mapped.
  • _payload_sweep_clear_params(*, enabled, hal_mode) -> dict[str, str] (L2373) — The octomap bridge's octree-clearing params: {} when off (the default; the bridge never calls clear_bbox), {"payload_sweep_clear_service": "/openral_octomap_server/clear_bbox"} when DeployRuntime.payload_sweep_clear_enabled is on in sim; ROSConfigError on any other hal_mode (sim-only until Safety-WG review).
  • compose_runtime_graph(context, *_args, **_kwargs) -> list (L3533) — Resolves every launch arg, loads the robot manifest, and assembles the full deploy-sim ROS graph — HAL, safety kernel, reasoner, SLAM/Nav2, sensor drivers, optional Foxglove viz. On hal_mode:=real it also starts the robot's vendor ros2_control bringup itself. Always passes the kernel grasp_allowance_enabled (launch arg, default false, from DeployRuntime.grasp_allowance_enabled) and grasp_contact_links = the manifest's role: gripper child_links (omitted when empty); grasp_allowance_enabled:=true on a robot with no gripper joint raises ROSConfigError, and so does it on any non-sim launch unless enable_vision_attachment:=true and the HAL's hal_params_file (read back by _hal_file_params) sets vision_attachment_enabled and vision_attachment_grasp_target_enabled true (no region producer on real otherwise). With workspace_contact_enabled:=true (issue #349; plus workspace_contact_max_speed_mps:= and workspace_contact_max_lead_m:=) it passes the kernel _workspace_contact_kernel_params(...): workspace_contact_links = RobotDescription.hand_links(wrist_links=) (launch arg workspace_contact_wrist_links, default 1, from DeployRuntime.workspace_contact_wrist_links), workspace_contact_jaw_joints = the role: gripper joint names, workspace_contact_brake_enabled: true, the speed and lead bounds, and workspace_contact_control_period_s = 1 / action_spec.control_freq_hz; refused (ROSConfigError) on a non-sim hal_mode, without grasp_allowance_enabled, without a positive speed bound, without a lead bound in (0, 0.10] m, or for a robot with no gripper / no control rate; off, it passes workspace_contact_enabled: false. With tracked_grasp_exemption_enabled (object_tracking: on, so with a provider) it also passes tracked_grasp_extra_contact_links = RobotDescription.fixed_jaw_links() (omitted when empty). It also passes grasp_region_max_age_s and place_region_max_age_s = 2 × world_voxel_deadline_s (how old a producer-measured region may be and still exempt anything). The octomap voxel bridge gets attach_link_tf_frames from the vision_attachment_tf_frames launch arg (comma-joined link=frame, forwarded by resolve_launch_invocation with the leg on as the exact strings the HAL gets) so a held payload's manifest attach link is found on the cell's TF tree; omitted when empty. The reasoner gets grasp_target_voxel_m = _octomap_resolution(hal_mode) (one cell of the map the grasp-target producer searches). With the vision leg on, the HAL node also gets vision_attachment_grid_max_age_s = the kernel's world_voxel_deadline_s and vision_attachment_release_clear_m = _world_voxel_margin_m(hal_mode) + _octomap_resolution(hal_mode) (one octree cell), placed before the CLI's params file so an explicit --hal value still wins; whatever the source, a vision_attachment_grid_max_age_s above the kernel's world_voxel_deadline_s or a vision_attachment_release_clear_m below world_voxel_margin_m + resolution fails the launch with ROSConfigError (checked whenever the launch arg or the HAL params file enables the leg). The robot self-filter (in front of octomap) runs wherever the input cloud shows the robot, _cloud_shows_the_robot(hal_mode, scene_backend): real cameras and an isaacsim deploy scene (its depth camera renders the arm), not the MuJoCo sensor bridge (robot bodies transparent). It needs no rename: it poses a manifest attach link from its own collision model (link_index) and only falls back to TF for a non-model link. ADR-0121: with the exemption_provider launch arg the kernel params gain the provider and its hand-link mask (_exemption_provider_kernel_params, refused off sim), and the rules are handed to it (_hand_rules_to_provider: the #349 switches off (_PROVIDER_MOVED_RULES_OFF), every rule's parameters mirrored under contact_exemptions., the rules step 3 removed from the open kernel (_PROVIDER_ONLY_RULES: K2, the K5 release decision, K7, OT-10) never passed in-tree; pinned equal to tools/kernel_replay_diff.py's kernel B). Without a provider _hand_rules_to_provider drops _PROVIDER_ONLY_RULES and _PROVIDER_INPUTS (tracked_grasp_extra_contact_links, static_points_file) from the kernel params.
  • _static_points_file(static_geometry_file, resolution_m, *, kernel_cells=False) -> str (L385) — Samples the declared static geometry a quarter cell apart (openral_safety.static_geometry) into a points file in the private $OPENRAL_CACHE_DIR (default ~/.cache/openral) static_geometry/ cache (mode 0700; keyed on every input, including this launch file's cell reduction) for the octomap bridge's static_points_file; the launch refuses static_geometry_file with enable_octomap off (declared walls never dropped silently). (#349) With kernel_cells (issue #418 K7) it writes one centre per cell the bridge marks from those points (the base frame's resolution_m lattice, where a fixed-base grid lies) to openral_static_cells_*.txt, for the safety kernel's static_points_file (the exemption provider's static cells), passed only with a provider and whenever one of its rules reads it: K7's workspace_explained_cells_enabled or the OT-10 payload_own_cells_enabled / pinch_payload_own_cells_enabled (a declared static cell is never the payload; Spark R374 ran K7 off with static_cells=0).
  • generate_launch_description() -> LaunchDescription (L6741) — Robot-agnostic deploy-sim launch graph entry point; wraps compose_runtime_graph in an OpaqueFunction.
  • _foxglove_asset_env(robot_description_xml) -> dict[str, str] (L2788) — foxglove_bridge's additional_env: prepends openral_hal.ros_package_overlay.public_package_overlay to AMENT_PREFIX_PATH so a viewer's fetchAsset resolves package:// meshes of a fetched public package (OpenArm's openarm_description); {} when none is needed or the overlay cannot be built (printed, never raised).
  • _ancestor_package_file(m, urdf_dir) -> str (L2845) — A URDF package://<pkg>/<path> mesh ref as an absolute file when an ancestor folder of the URDF is named <pkg> (the package-root convention; rd:panda_description's package://example-robot-data/...), so _robot_mesh_package serves it; else unchanged.
  • _portable_robot_description(urdf_xml) -> str (L2917) — The manifest URDF as robot_state_publisher publishes it: rd:<module>:<relpath> mesh refs expanded to absolute paths (openral_core.assets.expand_rd_mesh_refs), which _robot_mesh_package then hands foxglove_bridge as package:// URIs (its ASSET_URI_ALLOWLIST refuses file://, so the viewer drew bare links) (ur5e, ur10e, rizon4, h1, droid_franka_robotiq); only clones already in the robot_descriptions cache are read (cached_only=True: a launch never clones or fetches, which had no timeout); left as is, printed, when one is not cached.
  • _require_host_confined_real_graph(hal_mode, env) -> None (L2938) — Called right after hal_mode resolves: under any hal_mode other than "sim" (fail closed) applies openral_core.ros_graph_scope.require_host_confined_ros_scope to the launch's own os.environ, so a hand-run ros2 launch ... hal_mode:=real on SUBNET/unset discovery (including the SUBNET setup.bash exports — the launch cannot re-scope its own started environment, so it refuses where deploy run defaults LOCALHOST) or ROS_STATIC_PEERS raises ROSConfigError without OPENRAL_ALLOW_NETWORK_ROS=1, and with it unless the graph runs under SROS2 Enforce (ADR-0130; when both hold it logs the structlog warning deploy_e2e.real_robot_graph_networked — the one emitter per deploy, #558). Pinned behaviourally by test_deploy_e2e_real_graph_scope.py: walking the whole launch description under a refused scope reaches no process and reads no manifest.
  • _hand_off_enclaves(context) -> Callable[[str], dict[str, str]] (L2975) — ADR-0130. Called right after _require_host_confined_real_graph; returns enclave -> additional_env ({} per process with security off). Under ROS_SECURITY_ENABLE=true, in every hal_mode, it applies require_secure_ros_graph, refuses unless this process runs in LAUNCH_ENCLAVE, creates the launch's own ROS node, then resets ROS_SECURITY_ENCLAVE_OVERRIDE to / for the children. compose_runtime_graph gives the kernel KERNEL_ENCLAVE, the HAL HAL_ENCLAVE and the dashboard OPERATOR_ENCLAVE, and wraps the real bringup and the scene drivers in a scoped GroupAction that sets HAL_ENCLAVE.
  • _build_real_bringup_include(real_bringup) -> object | None (L3019) — IncludeLaunchDescription of the manifest's hal.real_bringup ("<pkg>:<file>.launch.py") on hal_mode:=real; None when the manifest declares none; raises RuntimeError when the declared package or file is not installed. There is no package-name convention fallback.
  • _VENV_SITE (L45) — Optional workspace-editable-install site-dir from OPENRAL_VENV_SITE, registered via site.addsitedir (plain PYTHONPATH is not enough: .pth files are only processed by the site module on registered site-dirs).
  • _REPO_ROOT (L144) — Resolved repo root (_resolve_repo_root()).
  • _RSKILLS_DIR (L166) — str(_REPO_ROOT / "rskills").
  • _VENV_RAL (L168) — _REPO_ROOT / ".venv" / "bin" / "openral".
  • _RAL_EXECUTABLE (L169) — The workspace venv's openral binary when it exists, else the bare "openral" on PATH.
  • _stereo_camera_topics(names_csv) -> tuple[str, str, str, str] | None — "<left>,<right>" → the four camera_topic(...) stereo topics; None when not exactly two names (the stereo SLAM impl then gets no topics and refuses to start, ADR-0108).
  • _primary_rgb_camera(sensors) -> str — The perception legs' default camera, from sensors (the deploy's publishing_sensors, so on a real deploy only bound cameras count). Selection order, first match in manifest order at each step: (1) an rgb sensor whose shares_mount_with names a modality: depth sensor (the depth camera's colour stream; a lidar on the same mount never qualifies), e.g. the OpenAMRobot 2.0's and OpenArm's top on head_zed; (2) an rgb sensor whose frame_id ends in _optical_frame; (3) the first rgb sensor; (4) "". The object detector's locate_in_view camera and the reasoner's completion camera both follow it; pinned per robot by tests/unit/test_primary_rgb_camera.py.
  • _runner_starting_pose_tolerance(robot, hal_mode, scene_backend) -> float — The runner's starting_pose_tolerance: _ISAAC_STARTING_POSE_TOLERANCE_RAD[robot] (0.08 rad for openamrobot_v2 / openarm_v2: their Isaac twins run position gains without gravity feed-forward and settle joint4 ~0.065 rad short) on an Isaac Sim deploy, else 0 (the manifest's safety.starting_pose_tolerance_rad; real hardware and MuJoCo unchanged).
  • _vram_locator_peers(locator_specs, object_tracking) -> list[str] — The locators the reasoner evicts for VRAM before a dispatch: all, except the tracker's own (the first) while tracking is on, which is logged (deploy_e2e.locator_kept_resident) since it stays co-resident with the policy.
  • _sam3_sharing(detector, locator, segmenter, object_tracking) -> _Sam3Sharing — Pure: with tracking on and the tracker's locator (locator_specs[0]) on sam3_hf, whether the continuous detector (merge_detector) and the vision-attachment segmenter (host_segmenter) are SAM 3 on the locator's pinned weights (the continuous detector also at the locator's score_threshold). Merged, no openral_ros_image_detector node is launched or made a (VRAM) lifecycle peer: locator 0 runs continuous_leg=on with query = the continuous manifest's labels (or object_detector_query), and the locator's detector_query topic retargets that leg too. Hosted, locator 0 and openral_segmenter run in one sam3_perception_node.py process (params via _write_node_params_file), the segmenter still autostarted INACTIVE in station mode.
  • _write_node_params_file(params_by_node) -> str — A temp ROS params file with one /**/<name> section per node, for a process hosting several nodes.
  • _STATION_PERCEPTION_SERVICE — /openral/object_tracker/station_perception, the tracker's station switch the runner calls in station mode (station_perception_service).
  • _live_camera_info_topic(spec, hal_mode) -> str — The CameraInfo carrying a camera's live calibration: sim → camera_topic(name, CAMERA_INFO); real → openral_sensors.ros_publisher.camera_info_topic_for(<ros2_image binding topic>) (the driver's, never the sensor leg's manifest-built one); any other real backend → "". Feeds the detector's and locators' camera_infos.
  • _depth_camera(description) -> str — The manifest's first depth sensor with intrinsics (openral_hal.depth_cloud.is_depth_sensor), else ""; feeds nvblox under enable_nav2.
  • _optical_mounts(sensors, hal_mode) -> dict[str, str] (L1460) — Issue #627: {mount frame: optical child} for every RGB camera whose openral_core.depth_extrinsic.image_frame_id is the REP-103 optical child of its mount frame (its own body-convention mount, or the sensor it shares_mount_with), a loop over openral_core.depth_extrinsic.optical_mount (the rule image_frame_id itself reads, #641) so the launch publishes exactly the frame the object lift reads; {} in sim, where the sensor bridge publishes it. The launch passes the manifest's sensors, its sensor_bundles' and the scene's (the same deploy_sensors list its mount TFs and DA3 resolver use) and publishes each with _optical_tf_node, so a real camera with no driver CameraInfo (MakerMods top) is placed. The DA3 leg skips its own optical publisher when this already names its cloud_frame.
  • _optical_tf_node(parent, optical) -> Node (L1551) — Static parent -> optical TF with openral_hal.depth_cloud.BODY_TO_OPTICAL_QUAT_XYZW (REP-103 body to optical, the sim bridge's convention), shared by the sensor-mount optical children and _build_estimated_depth_nodes.
  • _build_estimated_depth_nodes(camera, *, rgb_camera_info_topic, rgb_image_rectified, cloud_frame, optical_parent, use_sim_time) -> list (L1572) — DeployRuntime.estimated_depth_camera's DA3METRIC sidecar (_ESTIMATED_DEPTH_MODEL on _ESTIMATED_DEPTH_PORT 5772, beside mono SLAM's 5771) + depth_provider_node in metric mode on that camera's canonical image / depth / points topics, its focal and lens from rgb_camera_info_topic (_live_camera_info_topic: the driver's own calibrated CameraInfo on a real deploy, else the sensor leg's, built from this unit's calibrated intrinsics); rgb_image_rectified (the binding's backend_params.rectified) reads an already-rectified stream through CameraInfo.p. Stamps everything in cloud_frame (depth_frame_id) and publishes optical_parent -> cloud_frame (REP-103) on /tf_static for a body-convention mount. The provider is a LifecycleNode named _ESTIMATED_DEPTH_PROVIDER (openral_estimated_depth_provider), autostarted ACTIVE (_poll_autostart) and always one of the reasoner's lifecycle_peer_node_ids (never a vram_lifecycle_peers entry: the model lives in the sidecar); while it is inactive octomap gets no cloud and the kernel's world-voxel deadline stops motion. With enable_octomap and no cloud and no estimated_depth_camera, compose_runtime_graph picks the camera itself (openral_core.depth_extrinsic.auto_estimated_depth_camera) for a direct ros2 launch.
  • _cloud_shows_the_robot(hal_mode, scene_backend, *, estimated_depth=False) -> bool (L1392) — Whether octomap's input cloud contains the robot (real, an Isaac render, or a DA3 estimate), so the robot self filter runs on it.
  • _octomap_cloud_topic(pinned, description, hal_mode, estimated_camera="") -> str — openral_core.deploy_cloud_topic, raising ROSConfigError when it is empty (a real deploy with nothing pinned, or no depth sensor) so a direct ros2 launch never spawns octomap_server against silence. The object-lift fallback (object_depth_points_topic) takes deploy_cloud_topic unchecked ("" disables it).
  • _rig_from_launch_args(raw) -> DeployRuntime (L598) — The per-rig DeployRuntime values openral deploy forwards as launch args (_RIG_LAUNCH_ARGS: world_voxel_deadline_s, max_octree_age_s, world_voxel_data_age_budget_s, robot_self_filter_padding_m; empty = schema default), validated through DeployRuntime, which refuses an octree age above the deadline (hazard log Entry 033). compose_runtime_graph feeds voxel_freshness_s to the kernel's world_voxel_deadline_ms and the octomap bridge's max_octree_age_s, and world_voxel_data_age_budget_s to the kernel's world_voxel_data_age_budget_ms (Entry 034).
  • _SELF_FILTERED_CLOUD_TOPIC (L652) — /openral/world_cloud/self_filtered, octomap_server's input on the real path; deliberately not a /openral/cameras/... topic (ADR-0108), since it is the world map's input rather than one camera's cloud; x/y/z only (the self filter strips any other field).
  • _SELF_FILTERED_RGB_CLOUD_TOPIC — /openral/world_cloud/self_filtered_rgb, the same robot-free cloud with every input field (a sim cloud's rgb), published by the self filter only while subscribed; for viewers (Foxglove), never the map.
  • _tracked_camera_infos(tracked_cameras, publishing, hal_mode) -> dict[str, str] (L2058) — Issue #418 (#421 review): each tracked camera's CameraInfo topic, _live_camera_info_topic of its publishing spec (on real the driver's own, never the manifest-rebuilt /openral/cameras/<cam>/camera_info), else camera_topic(name, CAMERA_INFO); the locator and the segmenter both read it.
  • _locator_cameras(det_camera, det_image_topic, det_camera_infos, tracked_infos) -> tuple[list[str], list[str]] (L2079) — Issue #418: an on-demand locator node's cameras / camera_infos (id=topic): the detector camera first, then every object-tracker camera under its own name with its registered RGB / camera_info topic, so the tracker's locate_in_view(camera=<depth camera>) finds a frame.
  • _collision_base_dofs(description, collision_params=None) -> list[int] (L659) — Dof indices of the manifest's planar base_joints (empty on a fixed arm): the kernel's collision_base_dofs and the self-filter's, so both hold them at zero and pose the model in base_frame. Computed once in compose_runtime_graph from the final collision model; given collision_params, ROSConfigError unless the root -> base_frame chain is identity-origin fixed / revolute / prismatic links with no curve, moving on exactly those dofs, with no other link on one (_check_base_chain; the filter holds the same rule at runtime).
  • _self_filter_params(collision_params, description, joint_states_topic, padding_m, robot_mask_cameras=(), *, base_dofs=None, runtime_period_from_hal=False) -> dict[str, object] (L885) — The robot_self_filter node's parameters: every collision_* key the kernel receives (so both pose the same model), collision_joint_names from the manifest with each joint's sim_joint_name as collision_joint_aliases, the runtime nodes' joint-state topic (hal_joint_states_topic: scene override, else a real ros2_control HAL's ~/joint_states, else /joint_states), padding_m (the rig's DeployRuntime.robot_self_filter_padding_m, default 0.02 m, provisional; it is also the width of the blind shell around the arm), joint_state_period_s = 1 / control_rate_hz when the manifest declares a rate, robot_mask_hand_links (hand_links()), and, for each of robot_mask_cameras (launch arg robot_mask_cameras, comma-separated, default empty = off; issue #418), the robot mask's depth / depth camera_info / ROBOT_MASK topics via camera_topic. For an Isaac sim robot-visible camera path, runtime_period_from_hal initializes the period as unavailable and enables a HAL SetParametersAtomically handoff to the exact filter node; the HAL resets the sidecar before this handoff, so the value is the measured post-physics callback interval times configured physics substeps (the clock advancing Isaac current_time), not nominal configured get_physics_dt(). The filter drops clouds until a finite actual simulation tick is admitted and clears joint history on acceptance. Other camera paths use the manifest cadence. The launch composes the filter where the cloud contains the robot and a collision model exists; octomap_server's cloud_in is then remapped to the filtered topic. base_frame is always the manifest's, the frame the filter poses the model in, as the kernel checks it (an MJCF-lowered root link is named after its MJCF body, e.g. WidowX wx250s/base_link, which no TF tree publishes); on a mobile manipulator (base_dofs, the caller's _collision_base_dofs) it also sends collision_base_dofs (held at zero, as the kernel); robot_mask_hand_links only when the robot has hands.
  • _hal_file_params(path, node_name) -> dict[str, object] (L1692) — The ros__parameters the HAL's hal_params_file gives it (/**, then its own node name), so the launch's HAL couplings judge the effective params whatever wrote the file; a missing/unreadable file reads as {} (launch_ros refuses it when the HAL starts, and an absent key reads as off).
  • _attached_collision_enabled(hal_mode, vision_attachment_enabled) -> bool (L1642) — Whether the kernel gets attached_collision_enabled: hal_mode == "sim" (the sim attachment manager) or the vision attachment leg is on (enable_vision_attachment:=true, from DeployRuntime.vision_attachment). Coupling rule: the vision leg on real always turns the kernel's attached check on, never the leg alone — the octomap bridge's payload clearing and the robot self-filter consume /openral/world_state_fast regardless of the flag. The leg on a robot with no collision geometry raises ROSConfigError. With the leg on, the launch also composes the openral_segmenter lifecycle node (segmenter_node.py: robot_yaml, manifest_path, cameras/camera_infos = <camera>=<rgb topic> / <camera>=<rgb camera_info>, primary_camera, device, use_sim_time), autostarted to ACTIVE.
  • _attached_collision_deadline_ms(hal_mode) -> float (L1683) — The kernel's attached_collision_deadline_ms: 5000 ms on sim, 1000 ms on real.
  • _cpuset_prefix(env) -> str (L246) — A taskset -c launch prefix from OPENRAL_PERCEPTION_CPUSET (octomap_server + the voxel bridge) or OPENRAL_RUNTIME_CPUSET (the runtime node), or ""; unset = nothing pinned. Affinity needs no privilege where raising priority does (ulimit -e 0 on Thor); a value that is not a cpu list is refused loudly.

python/runner/src/openral_runner/ros_publishing_hal.py

HAL Protocol adapter that publishes ActionChunk on /openral/candidate_action.

  • ROSPublishingHAL(*, node, description, skill_id_getter=..., skill_revision_getter=..., tick_index_getter=lambda: 0, runner_session_id=0, joint_state_topic="/joint_states", candidate_action_topic="/openral/candidate_action", action_applied_topic="/openral/action_applied", safety_abort_getter=lambda: None, drop_reason_getter=lambda _since: None, action_applied_timeout_s=5.0, joint_state_staleness_limit_s=0.5) (L117) — Publishes typed candidate action chunks and blocks with bounded backpressure until the HAL acknowledges application, polling the injected safety latch every 50 ms and raising ROSEStopRequested instead of hiding a stop behind a plain timeout. A non-latching kernel drop reported since the tick's first slot was published (drop_reason_getter → (reason, exception type)) ends the wait at once — the dropped tick is never applied — raising that type with the reason appended (ROSPerceptionStale for a stale kernel input); an unexplained timeout raises ROSRuntimeError. Stamps runner_session_id (the runner's random per-session uint64; 0 = session-less) on every ActionChunk, so the HAL keys its replay watermark on (session, tick).
  • _row_major_flatten(rows) -> list[float] (L57) — Private helper used by _action_to_chunk; preserves row-major ordering for the chunk flat array.
  • _CONTROL_MODE_TO_UINT8: dict[ControlMode, int] (L114) — Stable mapping from openral_core.ControlMode to the uint8 slot in ActionChunk.control_mode.
  • ROSPublishingHAL.connect() -> None (L232) — Opens the publisher on candidate_action + subscriber on joint_states.
  • ROSPublishingHAL.disconnect() -> None (L285) — Closes the publisher + subscription. Idempotent.
  • ROSPublishingHAL.read_state() -> JointState (L302) — Returns the latest cached JointState from /joint_states; raises ROSRuntimeError if called before connect() or before any message has arrived.
  • ROSPublishingHAL.send_action(action) -> None (L318) — Publishes an ActionChunk on /openral/candidate_action. Does NOT touch motors — the safety node republishes the chunk on /openral/safe_action, which the per-robot HAL lifecycle node consumes and forwards to the underlying controller.
  • ROSPublishingHAL.begin_goal() -> None (L335) — Resets goal-local partial-group state.
  • ROSPublishingHAL.estop() -> None (L421) — Triggers an emergency stop by raising ROSEStopRequested so the safety supervisor boundary can record and brake; the owning lifecycle node also publishes on /openral/estop as defense-in-depth.
  • _SAFETY_ABORT_POLL_S (L54) — 0.05; how often a blocked apply-wait polls the injected safety latch — a latched safety stop produces silence, nothing to wake the wait on, so this bounds how long the abort stays invisible.

python/runner/src/openral_runner/slam_bridge.py

rclpy → OTLP bridge for slam_toolbox /map. Throttles to 1 Hz, rasterises the nav_msgs/OccupancyGrid to a base64 PNG, looks up the robot's map-frame pose via tf2, and emits one slam.occupancy_grid OTel span the dashboard's SLAM Map card renders (store handler in openral_observability.dashboard.store).

  • SLAM_MAP_TOPIC_DEFAULT = "/map" (L43) — Default nav_msgs/OccupancyGrid topic slam_toolbox publishes on.
  • encode_occupancy_grid_png(*, width: int, height: int, data: list[int]) -> str (L70) — Pure function rendering an OccupancyGrid.data array as a base64 PNG (unknown→mid-grey, free→white, occupied→black, in-between linear ramp; flipped so map-north points up). Raises ValueError if len(data) != width * height. Exercised directly by tests against synthetic grids.
  • robot_pose_from_transform(*, translation_xyz: tuple[float, float, float], rotation_xyzw: tuple[float, float, float, float]) -> tuple[float, float, float] (L128) — Planar (x, y, yaw) from a tf2 transform's translation + rotation (z ignored); delegates yaw to openral_core.geometry.quat_xyzw_to_yaw. Used by SlamMapBridge to project the map→base_frame lookup into the span attributes.
  • class SlamMapBridge (L159) — rclpy.node.Node-hosted subscription on /map; on each accepted callback rasterises the grid, looks up the robot pose, and emits a slam.occupancy_grid span the dashboard renders. Degrades gracefully (no robot marker) when TF is unavailable.
  • __init__(node, *, topic=SLAM_MAP_TOPIC_DEFAULT, base_frame="base_link", footprint_radius_m=None, footprint_polygon=None, source_node_name="openral_slam_toolbox", publish_interval_s=1.0, max_cells=4_000_000) (L205) — Subscribes with slam_toolbox's QoS; footprint_polygon (base-frame XY) lets the dashboard draw the true oriented outline instead of falling back to the footprint_radius_m circle.
  • destroy() -> None (L277) — Release the ROS subscription. Safe to call multiple times.
  • _DEFAULT_PUBLISH_INTERVAL_S (L49) — 1.0; throttle so a busy SLAM run doesn't flood the OTLP pipeline (the dashboard re-renders on every span).
  • _UNKNOWN_GREY (L58) — 128; the 8-bit greyscale value an unknown (-1) occupancy cell renders as.
  • prop _OCC_FREE_THRESHOLD, _OCC_OCCUPIED_THRESHOLD (L61–62) — 0 / 100; the nav_msgs/OccupancyGrid probability bounds free/occupied map to (white/black), with values in between scaled linearly.
  • prop _OVERSIZE_WARN_BURST, _OVERSIZE_WARN_RATE (L66–67) — 3 / 100; how many oversize-grid warnings are emitted verbosely before falling back to a 1-in-100 rate to keep log noise bounded.

packages/openral_foxglove_bringup/

Read-only Foxglove live-scene surface, hybrid with the OTel dashboard which keeps traces, metrics, and every write path. Provides the bridge + republishers, a converter node, and an MCAP recorder; layout generated by python -m openral_foxglove_bringup.layout. Spawned into deploy-sim whenever the dashboard is (--no-foxglove opts out); the dashboard proxies the bridge at /ws for its 3D view (ADR-0129).

  • SCENE_TOPICS: list[str] (topics.py L26) — Allowlist group 1: the geometry needed to draw the robot in its world — camera images + camera_info, /map, octomap cloud, /scan, /odom, /joint_states, /robot_description, /openral/robot_description, /tf(_static).
  • DEPTH_TOPICS: list[str] (topics.py L56) — Allowlist group 2: the RGBD / nvblox / visual-SLAM leg — per-camera depth + points, the self-filtered world cloud with its colour (/openral/world_cloud/self_filtered_rgb, the viewer's robot-free cloud; octomap's x/y/z-only input /openral/world_cloud/self_filtered is not exposed), the DA3 sidecar's depth topics, nvblox's filtered depth + ESDF cloud, /openral/nav2/scan, /openral/imu, /openral/visual_slam/odometry. Published only under the matching deploy posture.
  • BUCKET2_TOPICS: list[str] (topics.py L79) — Allowlist group 3: the bucket2_markers converter's outputs (/openral/world_voxels_cloud, /openral/viz/attachments, /openral/viz/static_geometry, /openral/viz/collisions, the thinned clouds /openral/viz/cameras/<name>/points and /openral/viz/world_cloud/self_filtered_rgb).
  • TELEMETRY_TOPICS: list[str] (topics.py L112) — Allowlist group 4: the mission/state plane mirrored from the OTel dashboard's cards — world/policy state, episode, critic score, active task, objects, attachments, skill registry, diagnostics. Observation-only; /openral/safety_status is excluded pending safety-WG sign-off.
  • BUCKET1_TOPIC_WHITELIST: list[str] (topics.py L131) — The foxglove_bridge topic_whitelist: the four groups above concatenated, nothing else — notably never the safety/e-stop/action/command topics. Imported by both launch files so the allowlist has one source of truth.
  • ASSET_URI_ALLOWLIST: list[str] (topics.py L163) — The bridge's asset_uri_allowlist, controlling which mesh/asset paths a connected viewer may fetch to draw the URDF; extended from upstream's default to admit dotted version segments while still refusing path traversal; ASCII letters, digits, _, -, . only (no %, so a percent-encoded %2e%2e cannot pass). Applied by both launch files.
  • READ_ONLY_CAPABILITIES: list[str] (topics.py L168) — ["connectionGraph", "assets"]; omits clientPublish/services/parameters so a connected viewer cannot publish, call services, or write params (cannot actuate).
  • DEFAULT_CAMERAS: tuple[str, ...] (layout.py L57) — ("top", "wrist_left", "wrist_right"); the camera slots the shipped layout is generated for. These are sensor names from the robot manifest, not labels — a slot that doesn't exist on a given robot renders as a dead panel.
  • DEFAULT_LAYOUT_PATH: str (layout.py L60) — "config/openral_layout.json"; where the generated layout is shipped, relative to the package root.
  • camera_image_topic(camera, *, compressed=False) -> str (layout.py L63) — openral_core.camera_topic(camera), or the image_transport /compressed sibling.
  • ROBOT_DESCRIPTION_TOPIC: str (layout.py L89) — "/robot_description"; the std_msgs/String topic the layout's URDF layer reads (manifest URDF under deploy sim, vendor URDF under deploy run).
  • urdf_layer(topic=ROBOT_DESCRIPTION_TOPIC) -> dict[str, dict[str, Any]] (layout.py L92) — 3D-panel layers entry (layerId: "foxglove.Urdf", sourceType: "topic") that draws the robot. Needed because the 3D panel auto-loads a URDF only from the /robot_description parameter, which the read-only bridge withholds; a topics entry for the String topic draws nothing.
  • build_layout(cameras=DEFAULT_CAMERAS, *, compressed=False, follow_frame="base_link") -> dict[str, Any] (layout.py L298) — Builds the Foxglove layout for a scene's camera slots: a hero 3D panel (clouds + urdf_layer() robot) plus one Image panel per camera (none for an empty cameras: the generic viz.openral.com layout, ADR-0129) and tabbed panels for nav, joints, policy/world state, and diagnostics. Every referenced topic is on BUCKET1_TOPIC_WHITELIST, and no generated layout contains a write-capable panel. Both URDF-drawing 3D panels set scene.ignoreColladaUpAxis (Collada vertices read as authored, as RViz/Gazebo/Isaac do — OpenArm v2's Blender meshes bake Z-up yet declare Y_UP).
  • main(argv=None) -> int (layout.py L478) — python -m openral_foxglove_bringup.layout entry point: --cameras, --compressed, --follow-frame, -o/--output, --write-default (overwrite the shipped config/openral_layout.json).
  • occupied_voxel_centers(origin, resolution, size, occupancy, orientation_xyzw=(0,0,0,1)) -> list[tuple[float,float,float]] (bucket2_markers.py L168) — Pure: centre coordinates of occupied voxels, placed by the grid's own rotation — without it every voxel is drawn somewhere the obstacle is not. Raises on a mismatched occupancy length or a non-unit orientation quaternion.
  • ATTACHMENT_MARKERS_TOPIC: str (bucket2_markers.py L156) — "/openral/viz/attachments"; where the attachment / declaration-region MarkerArray is published.
  • outside_boxes(centers, boxes, pad_m) -> NDArray[np.bool_] (bucket2_markers.py L229) — Mask of voxel centres outside every (base_from_box, half_extents) box grown by pad_m; the viewer's static-voxel filter.
  • static_boxes(path) -> list[tuple[NDArray, NDArray]] (bucket2_markers.py L251) — The declared box fixtures of a StaticGeometry YAML as (base_from_box 4x4, half_extents).
  • VIZ_CLOUD_MAX_POINTS: int (bucket2_markers.py L68) — 40_000; points a viewer's copy of a depth cloud keeps.
  • VIZ_CLOUD_MAX_HZ: float (bucket2_markers.py L73) — 2.0; viewer copies of one cloud a second, at most (viz_cloud_due).
  • viz_cloud_due(last_s, now_s, max_hz) -> bool (bucket2_markers.py L76) — Pure: whether a viewer copy may go out at now_s, the last having gone at last_s (None = never); at most max_hz a second, max_hz <= 0 lets every cloud through. The converter's viz_cloud_max_hz parameter (default VIZ_CLOUD_MAX_HZ) feeds it per viewer publisher.
  • viz_cloud_topic(topic) -> str (bucket2_markers.py L94) — the thinned viewer copy's topic: /openral/<path> → /openral/viz/<path> (/openral/viz/cameras/<name>/points, /openral/viz/world_cloud/self_filtered_rgb); any other topic (a pinned driver cloud) → /openral/viz/cameras/<path with / as _>/points.
  • decimate_cloud(data, point_step, x_offset, max_points, width=0, row_step=0) -> tuple[bytes, int] (bucket2_markers.py L114) — Pure: keeps at most max_points evenly spaced points with a finite x, every field byte for byte, skipping row padding; the converter's camera_cloud_topics → viewer clouds.
  • COLLISION_MARKERS_TOPIC: str (bucket2_markers.py L276) — "/openral/viz/collisions"; where each kernel stop is drawn (latched MarkerArray).
  • COLLISION_RGBA (bucket2_markers.py L278) — solid red for a kernel stop.
  • voxel_center(index, origin, resolution, size, orientation_xyzw) (bucket2_markers.py L281) — The centre of grid cell index, the cell a kernel stop names as voxel_<index>.
  • collision_markers(stops) -> MarkerArray (bucket2_markers.py L299) — Every kernel stop so far as a red sphere + STOP <link> label, from (frame, xyz, label) triples.
  • STATIC_GEOMETRY_MARKERS_TOPIC: str (bucket2_markers.py L158) — "/openral/viz/static_geometry"; where the declared static geometry MarkerArray is published (latched, once).
  • SEARCH_BOX_RGBA: tuple[float, float, float, float] (bucket2_markers.py L375) — Faint white; the grasp declaration's search_box.
  • WORKSPACE_RGBA: tuple[float, float, float, float] (bucket2_markers.py L377) — Amber; the map-confirmed manipulation workspace (workspace_region, #349). A declared-only workspace_box is drawn in INACTIVE_REGION_RGBA.
  • MEASURED_RGBA: tuple[float, float, float, float] (bucket2_markers.py L379) — White; a payload box's measured inner box (its stage-2 refinement).
  • STATIC_RGBA: tuple[float, float, float, float] (bucket2_markers.py L381) — Translucent red; declared static geometry.
  • static_geometry_markers(path, frame) -> visualization_msgs/MarkerArray (bucket2_markers.py L607) — A StaticGeometry YAML (DeployRuntime.static_geometry_file) → DELETEALL + one CUBE per box at its pose and one TRIANGLE_LIST per mesh .npz, all in frame (the manifest base_frame the file is declared in). Raises ROSConfigError on an unreadable/invalid file or a missing/malformed mesh.
  • parse_attach_link_tf_frames(entries) -> dict[str, str] (bucket2_markers.py L324) — Pure: "link=frame" strings → manifest-link → TF-frame map, the same strings and rules as the octomap bridge's attach_link_tf_frames (payload_clearing.hpp::parse_attach_link_tf_frames, deliberate C++/Python mirror): empty entries skipped; a malformed entry or a link mapped to two frames raises ValueError.
  • EVIDENCE_RGBA: dict[str, tuple[float, float, float, float]] (bucket2_markers.py L363) — Payload marker colour per evidence_kind: grasp_target_region orange, vision_segmentation cyan, gripper_closure yellow.
  • OTHER_EVIDENCE_RGBA: tuple[float, float, float, float] (bucket2_markers.py L369) — Magenta payload colour for every evidence kind not in EVIDENCE_RGBA (sim ground truth, operator, perception track).
  • GRASP_REGION_RGBA: tuple[float, float, float, float] (bucket2_markers.py L371) — Green; an active grasp declaration's region.
  • PLACE_REGION_RGBA: tuple[float, float, float, float] (bucket2_markers.py L372) — Blue; an active place declaration's region.
  • INACTIVE_REGION_RGBA: tuple[float, float, float, float] (bucket2_markers.py L373) — Grey; a retracted (active=false) declaration's region.
  • attachment_markers(state, attach_link_tf_frames=None) -> visualization_msgs/MarkerArray (bucket2_markers.py L393) — Pure (msg types only): openral_msgs/AttachmentState → DELETEALL + re-add markers. Each attached object's primitives (box CUBE, SPHERE, capsule CYLINDER + end caps) at pose_in_link ∘ pose_in_object on the attach link's TF frame (renamed via the map), frame-locked, translucent, coloured by evidence kind, plus a text label (short id · evidence · support · released for a frozen release record); the grasp / place declaration regions (only when declaration and region are valid) as a translucent box + LINE_LIST wireframe + target label, active vs retracted coloured; a box primitive's measured inner box (first three tight_dop_lo/tight_dop_hi axes, ns attached_measured); the grasp declaration's search_box and manipulation workspace (workspace_region amber once confirmed, else workspace_box grey). Raises ValueError on a bad primitive, ROSConfigError on a degenerate quaternion.
  • class Bucket2MarkersNode (bucket2_markers.py L672) — rclpy.node.Node subscribing /openral/world_voxels and /openral/attachment_state (TRANSIENT_LOCAL); re-publishes /openral/world_voxels_cloud (PointCloud2) and /openral/viz/attachments (MarkerArray, TRANSIENT_LOCAL) via the pure functions. Parameter attach_link_tf_frames (string list, deploy_e2e passes the octomap bridge's); static_geometry_file + base_frame publish static_geometry_markers once on /openral/viz/static_geometry (TRANSIENT_LOCAL; deploy_e2e passes the scene's file); hide_static_voxels (default true) leaves the voxels inside a declared box fixture out of /openral/world_voxels_cloud (viewer only). Subscribes /openral/failure/safety and draws each kernel collision stop on /openral/viz/collisions (red sphere at the voxel centre via the grid matching the stop's disclosed origin, or at the link's frame for a link-vs-link stop). Read-only viz; defers rclpy/openral_msgs imports.
  • spin() -> None (bucket2_markers.py L982) — Spins the node until shutdown.
  • destroy() -> None (bucket2_markers.py L988) — Releases the subscriptions and publishers. Safe to call multiple times.
  • main() -> None (bucket2_markers.py L993) — Console entry point (installed as lib/openral_foxglove_bringup/bucket2_markers); rclpy.init → spin → shutdown.
  • generate_launch_description() -> LaunchDescription (bucket2.launch.py L27) — Bucket-2 converter node launch; declares use_sim_time and spawns the bucket2_markers node.
  • generate_launch_description() -> LaunchDescription (foxglove.launch.py L42) — Read-only foxglove_bridge bring-up for the Bucket-1 topics; topic_whitelist is an explicit allowlist, so anything unmatched — including safety/e-stop/action/command topics — stays invisible.
  • generate_launch_description() -> LaunchDescription (record.launch.py L35) — Opt-in MCAP recorder for the Bucket-1 allowlist (ros2 bag record -e, one regex per allowlisted topic).

packages/openral_reasoner_ros/openral_reasoner_ros/critic_producer_node.py

Tier-C critic producer, the default publisher for /openral/failure/critic. Subscribes the generic /openral/critic/score topic that any reward model publishes, routes each sample through a CriticWatchdogGroup, and on a stall emits a FailureTrigger that reasoner_node maps to a forced Tier-C tick. Advisory only.

  • class CriticProducerNode (L61) — rclpy.node.Node. Builds a CriticWatchdogGroup and a FailureBusPublisher, subscribes CriticScore, and routes each sample; on a stall publishes one KIND_CRITIC/SEVERITY_FAIL FailureTrigger per stall. A critic_id ending in #success (the reward monitor's success head, the completion check's trigger) is ignored: flat near 0 for most of a goal, it would "stall" and cancel a skill whose progress head still climbs (#421 review).
  • destroy_node() -> None (L126) — Tears down the FailureBusPublisher before base teardown.
  • main(args=None) -> None (L132) — Console entry point (installed as lib/openral_reasoner_ros/critic_producer_node.py); rclpy.init → spin → shutdown.

packages/openral_reasoner_ros/openral_reasoner_ros/completion_check_node.py

Completion check (2026-10-22): on the reward monitor's success stream (CriticScore whose critic_id ends #success) at/above 0.6, a DETACH on /openral/grasp_events or a track newly released on /openral/tracked_objects (CompletionTrigger, one check per 10 s, only while /openral/reward/active_task names a task and never while /openral/attachment_state holds a payload — a release fires once the hand is empty), it holds the runner (/openral/rskill/hold), asks /openral/perception/query_scene the reasoner's COMPLETION_QUESTION plus the release rule (a placement is finished only once let go) once per camera, and ends the goal (/openral/rskill/complete) only when every answer parse_yes_nos true; otherwise it releases the hold. Advisory: it only withholds or ends motion. Launched by enable_completion_check (DeployRuntime.enable_completion_check; requires the reward monitor, the critic leg and the scene VLM). A 1 Hz tick offers the release rechecks (release_rechecks, default 3). A false on /openral/object_tracker/hands_clear counts as holding (never asked with a hand still at the target); no tracker publishing leaves that gate off.

  • class CompletionCheckNode (L79) — rclpy.node.Node; params success_threshold (0.6), cooldown_s (10.0), cameras (["exterior", "wrist"]; the launch passes every publishing RGB camera), settle_s (0.5), query_timeout_s (90.0), judge (scene_vlm | reasoner: the reasoner's model via build_tool_use_client_from_env, one describe_image on tiled_jpeg of the cameras' latest frames; launch completion_check_judge, DeployRuntime.completion_check_judge), flip_180 (False; the launch mirrors OPENRAL_DASHBOARD_FLIP_180, the reasoner judge's tiles are rotated upright). A worker thread runs one check at a time; a check that raises is logged and the worker takes the next one (#421 review).
  • main(args=None) -> None (L312) — Console entry point (installed as lib/openral_reasoner_ros/completion_check_node.py); spins on a two-thread MultiThreadedExecutor.

packages/openral_compliance/openral_compliance/recorder_node.py

Compliance recorder lifecycle node (#467/#468). Turns what the graph already publishes into openral_core.ComplianceRecords: /openral/failure/<source> → FailureRecord; each /openral/safety_status transition into latched → SafetyStopRecord linked to the safety failure that explains it; each latch clearing → InterventionRecord(estop_reset) attributed via /openral/operator_action; activate / deactivate → SessionRecord start / end plus a SoftwareInventoryRecord. Records go to the on-robot log (#469) and out as OTLP log records. Not on the actuation path; the one thing it publishes is a stop when a record cannot be written.

  • const OPERATOR_ACTION_TOPIC = "/openral/operator_action" (L77) — Where channels announce who is acting (openral_msgs/OperatorAction).
  • const DISK_CHECK_PERIOD_S = 30.0 (L80) — Period of the free-space check under the compliance log.
  • const DISK_WARN_FREE_FRACTION = 0.2 (L81) — Below this free fraction the recorder warns (it stops when writes fail).
  • const STOP_EXPLAIN_WINDOW_S = 2.0 (L86) — How far apart a latch and the safety failure that explains it may arrive, either way; also the window for matching an OperatorAction to a reset.
  • explains(drop_reason: int, failure_kind: int) -> bool (L99) — Whether a FailureTrigger kind can be the cause of a latch with this SafetyStatus drop reason (external e-stop ← human/timeout; fail-closed input drops ← perception; otherwise kinds must match).
  • class ComplianceRecorderNode(LifecycleNode) (L158) — Params run_mode ("sim"/"hardware", for the SessionRecord) and stop_when_inactive (real hardware: deactivating the recorder stops the machine). Only an ACTIVE node records.
  • on_configure(state) -> TransitionCallbackReturn (L200) — Opens the compliance log (refuses to configure when it cannot) and the failure-bus, safety-status and operator-action subscriptions.
  • on_activate(state) -> TransitionCallbackReturn (L256) — Opens the session and records the software inventory.
  • on_deactivate(state) -> TransitionCallbackReturn (L267) — Stops recording and closes the session; with stop_when_inactive, publishes the stop.
  • on_cleanup(state) -> TransitionCallbackReturn (L276) — Closes the session, releases subscriptions/publishers and forgets the latch state.
  • on_shutdown(state) -> TransitionCallbackReturn (L295) — Closes an open session, then cleans up.
  • close_session() -> None (L299) — Records a stop still waiting for its cause, then the session's end; stops recording. Idempotent; main calls it on SIGINT, where rclpy skips the shutdown transition.
  • main(args: list[str] | None = None) -> int (L558) — Entry point for ros2 run openral_compliance recorder_node.py; configures observability, spins, and closes the session on exit.