ROS 2 Lifecycle Nodes (packages/)
Part of the OpenRAL public-symbol inventory. Hand-curated;
(LNN)markers are refreshed bytools/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. aManifestHALLifecycleNodethat builds its HAL from therobot_yaml+hal_modeparameters viaopenral_hal.build_hal. Heartbeat,/openral/safe_actionconsumer and/openral/estoplatch come fromHALLifecycleNodeBase.openral deploy sim|runlaunches it under the ROS node NAMEopenral_hal_<robot_id>(a__node:=remap — not a package name). Covered bypackages/openral_hal_node/test/(parametrised by robot manifest) andtests/integration/test_openarm_hal_lifecycle.py.
packages/world_state/openral_world_state_ros/lifecycle_node.py
main() -> None(L89) —WorldStateAggregatorlifecycle node. Subscribes joint/policy/camera (camera_topic(name)percamera_namesentry; thecamera_topic_prefixparameter was removed by ADR-0108;object_depth_points_topicdefaults 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'splace_declarationandgrasp_declarationare relayedAttachmentState -> WorldStateStamped(_place_declaration_from_idl/_grasp_declaration_from_idl,_fill_place_declaration/_fill_grasp_declaration; a grasp declaration'starget_queriesare encoded with theObjectQuerymessage factory). Issue #418: subscribestracked_objects_topic(default/openral/tracked_objects, RELIABLE/VOLATILE/KEEP_LAST 1) and relays the object tracker's set asWorldStateStamped.tracked_objects(_fill_tracked_objects/_tracked_objects_from_idl),tracked_objects_validfalse when absent or stale. Shared withrskill_runner_node._direct_image_frame_sensors() -> set[str]— Thedirect_image_frame_sensorsparameter as a set;_on_imageskips 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 toWorldStateStampedon the fast topic (and every Nth tick the slow one);event=Trueis 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_statusuint8 → the lowercase label ("ok"/"warn"/"stale"/"error")world_state_from_idlwrites ontoopenral_core.WorldState.world_state_from_idl(msg) -> WorldState(L1201) — Symmetric inverse ofbuild_world_state_stamped_msg: reconstructs anopenral_core.WorldStatefrom aWorldStateStampedmsg. Used by the reasoner node to feed real state into itsContextRenderer;image_framesis alwaysNone(the IDL carries image topic refs, not inline pixels). Each detected object'sbbox_3dcomes from thedetected_object_bbox_valid/_bbox_min/_bbox_maxarrays (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 PydanticWorldState→WorldStateStampedIDL 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) — TheSegmentInViewserver (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_S0.3 s,_PROCESS_HZ15,_HEARTBEAT_HZ2,_ATTACHMENT_EVIDENCE_TIMEOUT_S1.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; honoursstep;ROSConfigErroron another encoding. Also the instance mask propagator's decoder. Duplicatesopenral_hal.depth_cloud.depth_grid_from_imagefor depth (Layer 2 must not import Layer 0; see 14-duplication-watch).intrinsics_from_info(msg) -> IntrinsicsPinhole(L198) — The driver's liveK.decode_instance_cells(object_ids, cell_counts, cells) -> dict | None(L127) —openral_msgs/InstanceCells' flat arrays as{object_id: frozenset[(i, j, k)]};Nonewhen the counts do not add up.contrast_query(label, contrast) -> str(L308) — TheLocateInViewquery: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:contrastedwith 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'sLocateInViewquery:contrast_querywhen thelocate_contrast_labelsnode parameter is on, elselabelalone. A LocateAnything box with no<ref>is labelled with the whole query, whichcontrastedthen 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 underlow_scorethat 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 waitedwait_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 insidewithin_xyxy(a map seed's rectangle) or all, largest first. The node sends the rest asTrackerResult.alternatives.backproject_pixel(depth_m, k, uv, *, win=2) -> tuple | None(L268) — Optical-frame point under a pixel (median valid depth in a window); theSegmentInViewprompt point.detector_scores(metadata_json) -> tuple[float, ...](L288) —LocateInView's detection scores, parallel todetector_boxes(#418: the tracker logs a low-score prompt that confirms).detector_boxes(metadata_json, k) -> tuple[...](L457) —LocateInView'sObjectsMetadataboxes rescaled to the depth raster.main() -> None(L651) — Entry point.make_object_tracker_node() -> LifecycleNode(L674) —openral_object_tracker: per-camera depth/CameraInfo/robot_masksubscriptions,/openral/world_voxels,/joint_states(manifest names,sim_joint_namealiases),/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; oneSegmentInView/LocateInViewrequest in flight, answered with the frame it was issued on. A locate service/transport failure or nonemptyLocateInView.failure_reasonbecomes aTrackerResult.failure_reasonand query refusal cause; only a completed empty result islocate_found_nothing. Publishes/openral/tracked_objectson change +_HEARTBEAT_HZ, and/openral/attachment_state(bindings + declarations with the tracker-confirmed workspace region, the place region (a declared zone; inonalso a destination track) and, intrackingonly, the grasp regionTrackerSession.grasp_region(the declaredsearch_boxwhile 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_sparams, source s, defaultsTrackerParams): eachunresolved/exhaustedQueryEscalationbecomes anObjectQueryEvidence(escalation_evidence; attempts =SegmentInView/LocateInViewrequests issued for that query) recorded as a structlogobject_tracker.query_escalation(WARN / ERROR), aworld_state.object_queryspan parented on the declaration'strace_idwith theROSObjectNotInMemoryrecorded, and aFailureTrigger(KIND_OBJECT_QUERY, WARN / FAIL, the declaration'srskill_id/trace_id) on/openral/failure/world_statefor the reasoner. Paramwrist_links(default 1; the launch passesDeployRuntime.workspace_contact_wrist_links) sizes the hand boxes as the kernel's hand links.configurefails withhal_mode != sim(both modes are sim-only), a missinggrounding_wait_s, or a gripper the binder cannot model. One service call is in flight at a time; a call the scheduler abandoned pastsegment_budget_wall_sis removed from its client (remove_pending_request,_drop_abandoned) at the next issue and at cleanup, freeing itsCameraFrameand 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) repliessuccess=Falsewhile the node is not ACTIVE./openral/attachment_stateis 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 frameTrackerSession.zone_frame_refusalrefuses 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_jointstakes that path whenTrackerSession.on_joint_statereports 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 itswhy);_feedrefuses a depth frame stamped up toTrackerSession.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_statetick: the revision versions the attachment set only (attachment_changes;Noneafter 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 everytrackingpick's grasp allowance before contact (AMR aisle, 2026-11-20).escalation_evidence(escalation, query, attempts) -> ObjectQueryEvidence(L533) — Issue #418: oneQueryEscalationwith itsStandingQueryas typed failure evidence, including its owning actioninvocation_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 bynpixels.stamp_ns(st) -> int(L158) — Abuiltin_interfaces/Timein ns.keep(d, t, v, n=30) -> bool(L76) — Keep thennewest 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 atdepth_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) andbase_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) — Mirroropenral_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 countconvex_hull_2daccepts.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_VERTICESdistinct points.base_footprint_polygon(description, *, circle_samples=12) -> list[tuple[float, float]](_footprint_geometry.py L94) — The manifest'sfootprint_polygonif declared, else a circumscribed N-gon aroundfootprint_radius.payload_scan_filter_node.py— Removes a carried payload's and the robot's own silhouette from the/scanNav2'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 andconfig/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'ssurface_distancecontainment 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 toinf(Nav2 discards those:inf_is_validdefaults toFalse) and leaves readings already outside[range_min, range_max]alone.main(args=None) -> None(payload_scan_filter_node.py L309) — ROS 2 entry point; definesPayloadScanFilterNodelazily 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_velonto/openral/candidate_actionas horizon-1BODY_TWISTchunks viaROSPublishingHAL, so the safety kernel bounds base speed. Refuses (ROSConfigError) a manifest declaringbase_joints(MobileBaseBridgeowns that/cmd_vel, ADR-0040/0099) or lackingbody_twistor eithermax_base_*speed bound; aftercmd_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 asMobileBaseBridge._on_cmd_vel.main(args=None) -> None(twist_to_action_relay_node.py L57) — ROS 2 entry point; definesTwistToActionRelayNodelazily inside.
packages/openral_nav2_bringup/launch/nav2.launch.py
generate_launch_description() -> LaunchDescription(L91) — Stand-alone bring-up of the upstream Nav2navigation_launch.pyinclude;robot_yamlrewritesrobot_radius/inflation_radius/motion_modelover the shared base params file (lidar or, forslam_backend=visual, the visual variant) and clamps its velocity limits to the manifest'smax_base_*bounds._cap_speeds(params, max_linear_m_s, max_angular_rad_s) -> None(L256) — Lowersvelocity_smoother.max_velocity/min_velocity(the(vx, vy)corner scaled onto the‖v‖disk) and MPPIvx_max/wz_maxin place to the kernelBODY_TWISTbounds; never raises a limit._dock_differential(params) -> None(L311) — For abase_kinematics: differentialbase: wraps MPPIFollowPathinRotationShimController(terminal in-place turn to the goal heading, turn rate capped bywz_max), confines MPPI'sGoalAngleCriticto the dock tolerance (fallback if the shim's turn is blocked), tightensgeneral_goal_checkertoDIFF_DOCK_*and switches to a rotation-awarePoseProgressChecker. RaisesROSConfigErrorwithout an MPPIFollowPath(bare or already shim-wrapped) and the two checkers.DIFF_DOCK_XY_TOLERANCE_M(L307) —0.03m; differential-base goal checker xy tolerance (measured on the AMR restock aisle).DIFF_DOCK_YAW_TOLERANCE_RAD(L308) —0.02rad; 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_fileunchanged when neither bound is set anddifferentialis false, else a temp copy with_cap_speedsand/or_dock_differentialapplied (JazzyRewrittenYamlcannot 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) — Defaultconfig/nav2_panda_mobile.yamlpath; used bytest/test_nav2_launch.pyfor 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 (norobot_yaml, nofootprint_polygon, no backup needed, or the params file names its owndefault_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 withForceSuccess(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. RaisesROSConfigErrorwithout 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, plusmargin_m(one costmap cell);Nonewithout 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 costmapfootprint_padding, 0.01 m, used where the params file sets none.NAV2_COSTMAP_RESOLUTION_M(nav2.launch.py L375) — Nav2's default costmapresolution, 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'smax_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 anopenral_runnerbackend (RT-DETR ONNX or an open-vocab VLM), and publishes detections as aPromptStamped.continuousmode publishes every frame;on_demandinstead serves a one-shotlocate_in_viewquery. ItsLocateInView.failure_reasondistinguishes 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 ofmain);sam3_perception_nodehosts it under the locator's deploy name. Itscontinuous_legparameter ("auto"/"on") feedsdetector_node_wiring.parse_node_names(argv) -> argparse.Namespace(sam3_perception_node.py L29) — The--detector-node/--segmenter-nodenames 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-threadMultiThreadedExecutor, 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 forLocateInView.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 todebugto 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 rclpyLoggingSeveritymember 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.Nonefor 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): adetect()exception →warning, an empty result →infoliveness heartbeat, a non-empty result →debug.camera_geometry_from_info(msg) -> tuple[str, IntrinsicsPinhole](ros_image_detector_node.py L241) — A driversensor_msgs/CameraInfo's(header.frame_id, K)viaopenral_hal.depth_cloud.intrinsics_from_camera_info;ROSConfigErrorwhen uncalibrated or frameless.stamp_camera_geometry(md, geometry) -> ObjectsMetadata(ros_image_detector_node.py L264) —mdre-validated withcamera_frame_id/camera_intrinsicsfromgeometry, or unchanged forNone(noCameraInfoyet → the lift's logged manifest fallback). The node stamps every continuous batch andlocate_in_viewreply for cameras itscamera_infosparameter 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_viewdetects on the crop ofLocateInView.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 anycontour),frame_width/frame_heightthe 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 aQwenSceneVlmbackend. The reasoning counterpart oflocate_in_view.destroy_nodecloses the VLM, ending the sidecar its configure-timewarm_upspawned.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_progressfrom a reward backend (Robometer or TOPReward). A scoring heartbeat (score_period_s, over the lastscore_window_sof footage: launchreward_monitor_score_window_s,DeployRuntime.reward_monitor_score_window_s) also drives the dashboard's progress bar and an optional Tier-CCriticScorepublish. 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-threadMultiThreadedExecutor(the image subscriptions have their own callback group, so they keep caching while aSegmentInViewcall 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 seamtest_segment_in_view_service.pyuses to stand up the node in-process. Node behaviour: Promptable-segmenter service node (kind: segmenterrSkill): 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 emptyfailure_reasonrather than raising.on_activatebuilds and warms the model and burns the handler's lazyopenral_hal.depth_cloud/openral_core.geometryimports (theopenral_halimport 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 whenpublish_debug_masksis 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; defaultmax_frame_skew_s, the HAL'svision_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), orNonewith aROSPerceptionStalereason when none is withinmax_skew_s.SegmentInViewis 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; defaultframe_wait_s.DEFAULT_REQUEST_DEADLINE_S(segmenter_node.py L173) —0.25; defaultrequest_deadline_s, the HAL'svision_attachment_deadline_s.DEFAULT_SERVE_S(segmenter_node.py L177) —0.1; the serve timeframe_wait_budget_sassumes 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 towait_son thearrivedcondition 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) — Thewait_for_framebudget the node uses:frame_wait_scapped atrequest_deadline_s(param, the HAL'svision_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_S0.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) — Thecamera_request_deadlinesparam ("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 keepsrequest_deadline_s). RaisesROSConfigErroron an unconfigured camera or a non-positive / non-finite value.sensor_spec_by_name(description, name) -> SensorSpec | None(segmenter_node.py L313) — Finds aSensorSpecby name acrosssensors+sensor_bundles.box_prompt(request) -> tuple[float, float, float, float] | None(segmenter_node.py L421) — ASegmentInViewrequest's detector box prompt (box_valid/box_xyxy, issue #418), orNone. 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; rawmono8, 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'sheader.frame_idoverspec.frame_id(which may be a body frame — OpenArmhead_zed), and the driver's liveCameraInfoK (openral_hal.depth_cloud.intrinsics_from_camera_info) over the manifest's nominal intrinsics, rescaled to the frame viascale_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, elseROSConfigError. Returns one note per fallback taken; the node logs each once at warning. RaisesROSConfigErroron an uncalibratedCameraInfoor 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) behindresolve_camera_topics; used as-is for optional per-camera side streams such assegmenter_node'scamera_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-agnosticid=topic→ ordered map every node in this package resolves its cameras with. Insertion order matters: the first key is the primary camera. RaisesROSConfigErrorwhen neitherentriesnorimage_topicnames a camera — every node'simage_topicdefault 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 onesensor_msgs/Image→ contiguous H·W·3 BGRuint8converter for every perception node (segmenter, detector, scene VLM, reward monitor, depth provider). Acceptsbgr8/8UC3,rgb8,bgra8/rgba8(alpha dropped — the ZED's default layout),mono8/8UC1(replicated); honoursstep, so pitch-padded rows are sliced off. Nocv_bridgedependency. Callers log a refusal at WARNING (throttled 5 s) naming camera and encoding.ImageConvertError(image_convert.py L27) — Raised byimage_to_bgr_byteson an unsupported encoding, astepshorter than a packed row, or a payload shorter thanheight*step.SUPPORTED_ENCODINGS: frozenset[str](image_convert.py L24) — the encodingsimage_to_bgr_bytesaccepts.depth_array_to_image_msg(depth_m, *, frame_id, stamp=None) -> Image(depth_convert.py L30) — Metric-depth message boundary (no torch). Builds a32FC1sensor_msgs/Imagein metres (NaN = no return) with tightly-packed rows.image_msg_to_depth_array(msg) -> ndarray(depth_convert.py L67) — Inverse ofdepth_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 pinholeCameraInfo(plumb_bob, zero distortion, K/P matrices). Used bydepth_provider_nodeto feed nvblox.camera_info_problem(k, info_wh, image_wh) -> str | None(metric_depth.py L42) — Why aCameraInfocannot 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) — Akind: depth_estimatorskill's raw output → metres per itsDepthEstimatorContract.output:metricpasses through (Depth Pro 2),canonical_focalismean(fx, fy) * raw / canonical_focal_pxwith the focal at the output raster (DA3METRIC),relativeraisesROSConfigError; 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 beyondmax_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 ROSCameraInfolens model:plumb_bob/rational_polynomial(cv2.initUndistortRectifyMap) orequidistantfisheye (cv2.fisheye.initUndistortRectifyMap); no distortion → no remap. Valid pixels only (alpha/balance0) and the camera's pixel aspect kept (one zoom);R(stereo) not applied, so the image stays in the camera's optical frame. RaisesValueErrorfor whatdistortion_problemrefuses.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 rectifiedH x W x Cimage (cv2.remap, bilinear); the input itself when already pinhole.distortion_problem(model, coeffs) -> str | None(lens_rectify.py L58) — Why aCameraInfolens cannot be rectified: an unsupported model, a wrong coefficient count, a non-finite value;Nonewhen 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 fromCameraInfo.p(animage_recttopic shares the raw stream'sCameraInfo; the deploy declares it withbackend_params.rectified: true).DISTORTION_COEFF_COUNTS: dict[str, int](lens_rectify.py L47) — coefficients per supported model (plumb_bob5,rational_polynomial8,equidistant4).DepthConvertError(depth_convert.py L26) — Raised on non-2D depth, a non-32FC1encoding, or a padded stride (step != width*4).main(args=None) -> None(depth_provider_node.py L54) — Monocular depth provider: forwards each RGB frame to themanifest_pathdepth_estimator rSkill's sidecar over ZMQ and republishes the depth as a32FC1image +CameraInfo(SLAM mode: the model's own K, fornvblox.launch.py).image_topic/depth_topic/camera_info_topic/manifest_pathhave no default (ADR-0108); an empty one (or an unusable skill:openral_rskill.depth_estimator.depth_skill, license gate included) fails theconfiguretransition (logged,FAILURE); a reply naming another model than the skill's is dropped. Managed lifecycle node (DepthProviderNode(LifecycleNode)):configurereads the parameters, checks the skill, opens the ZMQ socket, publishers and subscriptions; only ACTIVE forwards frames to the sidecar and publishes;deactivatestops both (the sidecar process keeps its weights: no VRAM freed);cleanup/shutdownclose the socket and destroy the topics.deploy_e2eautostarts both instances ACTIVE (_poll_autostart). Best-effort; rebuilds its socket on a timed-out reply so a slow sidecar can't wedge depth forever. Achange_statewhose transition the current state lacks (a repeateddeactivate) is answeredsuccess: falseinstead of killing the node. SLAM mode publishes arelativeskill'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_topicset;DeployRuntime.estimated_depth_camera): sends the rectifiedfxasf_pxto ametricskill and converts the output to metres through the RGBCameraInfofocal scaled to the model's raster (metres_from_output), publishes depth + that scaledCameraInfoindepth_frame_id(the launch's resolved optical frame; empty = theCameraInfo's frame) and, withpoints_topic, the back-projected cloud (clipped atmax_range_m, default 3.0); drops frames until aCameraInfoarrives.
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_topichave no default (ADR-0108); an empty one raisesROSConfigError.RobotRelativeHeightBand(depth_height_filter_node.py L35) — Frozen dataclass:min_z_m/max_z_mnavigation-height band plussource("collision_geometry"or themin_body_height_mfloor 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 tomin_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; raisesValueErroron 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, publishesnav_msgs/Odometry, and broadcasts themap → odomTF edge. The pip-wheel alternative to the composableisaac_ros_visual_slampath. The four camera-topic params have no default (ADR-0108);_setup_inputsraisesROSConfigErrornaming any required one left empty (left always, right in stereo mode).stereo_baseline_m(right_p) -> float(pycuvslam_node.py L47) — RaisesValueErrorunless the rectified rightPencodes a positive baseline.transform_to_pose(transform)(pycuvslam_node.py L134) — Ageometry_msgs/Transform→rig_from_camerapose.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 liveodom ← rigTF to yield themap → odomedge.depth_to_uint16_mm(msg, width, height, scale)(pycuvslam_node.py L160) — A32FC1metres Image → theuint16grid cuVSLAM RGBD eats (PIL float-bilinear resize onto the RGB resolution,metres × scaleclipped touint16); raisesValueErroron a non-32FC1encoding.
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 theoctomap_voxel_bridgenode that turns an OctoMap into theopenral_msgs/OccupancyVoxelsgrid 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) —OpaqueFunctionplaced before the vendor include: appliesopenral_core.ros_graph_scope.require_host_confined_real_bringuptoos.environ(issue #556), so a hand run on SUBNET/unset discovery is refused withoutOPENRAL_ALLOW_NETWORK_ROS=1+ SROS2 Enforce, and an opted-in scope is logged unlessdeploy_e2eincluded it (hal_modeset); fails closed with anImportErrornaming the missing symbol and the venv interpreter whenopenral_coreis not importable.generate_launch_description() -> LaunchDescription(L85) — Real-hardwareros2_controlbringup for the OpenArm v2: includes upstreamopenarm_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 namesopenral_hal.openarm_real._LEFT_CAN_INTERFACE/_RIGHT_CAN_INTERFACEassign to the USB CAN-FD adapter's two channels._ROBOT_CONTROLLER(L61) —"joint_trajectory_controller"; must match the controller typeOpenArmRealHALpublishesJointTrajectorymessages to, notforward_position_controller(which takesFloat64MultiArray).
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-063642left,Rizon4s-063618right); the defaultsdeploy runuses, since it forwards no launch arguments._CONTROLLERS(L40) —joint_state_broadcaster,left_arm_controller,right_arm_controller; the arm names must match the manifest'shal.parameters.defaults.groups(pinned bytests/unit/test_rizon_dual_real_hal.py).generate_launch_description() -> LaunchDescription(L61) — Refuses a networked ROS graph (require_host_confined_real_bringup), then startsrobot_state_publisheronurdf/rizon_dual.urdf.xacro(ros2_control:=true: upstreamflexiv_descriptionkinematics + one upstreamFlexivHardwareInterfaceper arm),ros2_control_nodewithconfig/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) onunitree_hg_ros2_controlwith 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_controllerloaded inactive. Argsrobot_model(g1/h2; empty = the deploying manifest's, required on a hand run),policy(empty = the manifest'ss0_policy, else_DEFAULT_POLICIES[model]; the policy file'scontrollersblock viaopenral_hal.unitree_s0_policy),network_interface(default$OPENRAL_UNITREE_NETWORK_INTERFACE/eth0),inference_controller_config_path._launch_setupfirst appliesopenral_core.ros_graph_scope.require_host_confined_real_bringuptoos.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_ratiostays 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 deferredswitch_controllersstep pins theROS_SECURITY_ENCLAVE_OVERRIDEit was included under (ADR-0130: only the HAL enclave may call/controller_manager/*)._S0_CHAIN(L132) — must equalUnitreeHgRealHAL.controller_names()(test-enforced)._DEFAULT_POLICIES(L116) — per-model hand-run policy (g1:gr00t_decoupled_wbc,h2:agile_velocity); each must equal its manifest'shal.parameters.defaults.s0_policy(test-enforced).resolve_model_and_policy(robot_model, policy, robot_yaml) -> tuple[str, str]—deploy runforwards no arguments, so an emptyrobot_model/policytakes the deploying manifest's (robot_yamllaunch configuration)hal.parameters.defaults; a contradicting explicitrobot_model:=, or no model at all on a hand run, raisesROSConfigError. (L288)_xacro_mappings(robot_model) -> list[str]— model-specific xacro args (G1with_hands:=false; H2body_urdf:=the pinnedH2.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 throughSafetyControllerTestAccess::update_holdingwith every joint commanded to the measured pose captured at the first NaN tick and the blend input at 1.0 (v5.0stale_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_configurerefuses (ERROR) amax_blend_ratio_speedoutside (0,kMaxBlendRatioSpeed], runs upstream's configure, then registers a parameter callback that refuses every runtime set ofmax_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_activateresetsblend_ratioto 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 strictswitch_controllerwhose activation fails keeps its deactivations, which would leave the hg joints unclaimed (zero torque); pinned live bytests/integration/test_unitree_real_hal_ros2_control_live.py.blend_ratiostays writable — the operator's gantry blend-in. Pinned bytest/test_guarded_safety_controller.cppagainst 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 requiredjoint_position_limits.{lower,upper}(one finitelower < upperpair perjointsentry, nullopt = allowed).GuardedSafetyControllerclamps 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.pypins the YAML values to the manifest'sposition_limits.kMaxBlendRatioSpeed = 1.0— fastest configurable blend ramp (/s);tests/unit/test_unitree_real_bringup_config.pypins 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. Whileactivating(set acrosson_activate), a non-zeroblend_ratiois 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 missingisaac_ros_deploy_ros2_controla build error instead of skipped plugins (both guarded controllers, libraryopenral_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_initdeclares both keys.on_configurerefuses (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_activatediscards messages from before the activation.updatesets 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 upstreamslam_toolbox/async_slam_toolbox_nodeas aLifecycleNode(auto-transitions only to INACTIVE; the Reasoner promotes to ACTIVE viaLifecycleTransitionTool). Composed intodeploy_e2e.launch.pywhenenable_slam:=true._SLAM_NODE_NAME(slam_toolbox.launch.py L26) — Theasync_slam_toolbox_nodenode name.prop DEFAULT_PARAMS_PATH, NODE_NAME(slam_toolbox.launch.py L93–94) — Test-hermeticity re-exports used bypackages/openral_slam_bringup/test/test_slam_toolbox_launch.pywithout 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 plainNode, not aComposableNodeContainer); the pip-wheel alternative tocuvslam.launch.py's NITROS path.prop _NODE_NAME, _PACKAGE, _EXECUTABLE(pycuvslam.launch.py L26–28) — Thepycuvslam_nodenode/package/executable names.prop DEFAULT_PARAMS_PATH, NODE_NAME, PACKAGE, EXECUTABLE(pycuvslam.launch.py L140–143) — Test-hermeticity re-exports used bytest/test_pycuvslam_launch.pywithout spawning a real ROS 2 graph or the cuVSLAM wheel.generate_launch_description() -> LaunchDescription(nvblox.launch.py L55) — Stand-alone bring-up of the upstreamnvblox::NvbloxNodecomposable node inside aComposableNodeContainer, remapping its~/static_occupancy_gridonto the backend-agnostic/mapfor 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 forNvbloxNode.prop DEFAULT_PARAMS_PATH, NODE_NAME, PACKAGE, PLUGIN(nvblox.launch.py L193–196) — Test-hermeticity re-exports used bytest/test_nvblox_launch.pywithout 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 ROSVisualSlamNode(cuVSLAM) composable node inside aComposableNodeContainerfor 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 forVisualSlamNode.prop DEFAULT_PARAMS_PATH, NODE_NAME, PACKAGE, PLUGIN(cuvslam.launch.py L145–148) — Test-hermeticity re-exports used bytest/test_cuvslam_launch.pywithout 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_estopand republishes onto/openral/estopplus aFailureTriggeron/openral/failure/safety. No in-repo node currently publishes/openral/human_estop— the dashboard stop button publishes/openral/estopdirectly.on_configure(state) -> TransitionCallbackReturn(L46) — Opens the estop publisher, theFailureTriggerpublisher, and the/openral/human_estopsubscription.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 toon_cleanup).main(args=None) -> int(L126) — Entry point forros2 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 withinSTOP_EXPLAIN_WINDOW_Swith an e-stop reset or aparam_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 aFailureTriggeroffailure_kindcan cause aSafetyStatuslatch withdrop_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'sestop/prompt/skill_executeasoverrideinterventions, ADR-0129) and lifecycle transitions intoopenral_core.ComplianceRecords, written to the on-robotComplianceLogand emitted over OTLP. Publishes only a stop (/openral/estop+ a safetyFailureTrigger) when a record cannot be written, or on deactivate understop_when_inactive. Parametersrun_mode,stop_when_inactive.on_configure(state) -> TransitionCallbackReturn(L200) — Opens the log (FAILUREwhen it cannot), the failure-bus / safety-status / operator-action subscriptions, the stop publishers and the disk timer.on_activate(state) -> TransitionCallbackReturn(L256) — Starts recording: aSessionRecordstart plus aSoftwareInventoryRecord.on_deactivate(state) -> TransitionCallbackReturn(L267) — Closes the session; withstop_when_inactivealso 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 toon_cleanup.close_session() -> None(L299) — Idempotent: records a stop or reset still waiting for its cause, then the session end.maincalls it on SIGINT, where rclpy skips the shutdown transition.main(args=None) -> int(L558) — Entry point forros2 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_configurecalls, keeping their QoS identical by construction.install_parameter_guard(node, locked) -> None(_param_guard.py L23) — Registers anon_set_parameterscallback refusing every change to an existing parameter whilelocked()is true; a batch of only undeclared names (a declaration) passes. Both nodes latch their lock at the start ofon_configureand inon_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 ofopenral_observability.refuse_unavailable_transitionsfor the E-stop sources: an id-onlychange_statenaming a transition the current state lacks is logged and answeredsuccess: false(state unchanged) instead of rclpy raisingRCLErrorout of the executor and taking the brake source off the graph. Installed in__init__byDeadmanWatchdogNode,HardwareEstopNodeandopenral_human_estop'sHumanEstopForwarderNode(whichexec_depends on this package for it).class DeadmanWatchdogNode(LifecycleNode)(deadman_watchdog_node.py L128) — Fires/openral/estopplus a timeoutFailureTriggerwhen/openral/safe_actiondies, in its own process so a kernel crash still brakes.arm_status_topicgates the deadline to an active goal; the post-estop latch releases only on a genuineSafetyStatustransition 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 latchedSafetyStatustopic, and the HZ-0096-1 liveness window (3 s) past which aSafetyStatussample 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_actionsubscription, the estop/failure publishers (QoS from_qos.estop_qos/_qos.failure_qos), and (ifarm_status_topicis 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 toon_cleanup).main(args=None) -> int(deadman_watchdog_node.py L550) — Entry point forros2 run openral_safety_watchdog deadman_watchdog_node.class HardwareEstopNode(LifecycleNode)(hardware_estop_node.py L51) — Polls a hardware E-stop source and publishes/openral/estopplus aFailureTriggeron the rising edge. With no device declared,on_configurerefuses 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; returnsFAILURE(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_pollis 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 toon_cleanup).main(args=None) -> int(hardware_estop_node.py L277) — Entry point forros2 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) — TheExecuteRskillaction server: a lifecycle node dispatching to the resolved rSkill atrate_hz(param0= the manifest'saction_spec.control_freq_hz, else 30 Hz — issue #303), aborting any blocking wait the instant/openral/estopor a latched/openral/safety_statusreports unsafe. Every terminal outcome stamps both a prosefailure_reasonand a typedfailure_kind.on_configuredraws a random nonzero 64-bit_runner_session_id(logged asrskill_runner session id 0x…) thatROSPublishingHALstamps on everyActionChunk; 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 ownplace_declaration/grasp_declaration, else the scene'splace_declaration_json/grasp_declaration_jsonparam (for the grasp one, else withgrasp_approach_enableda goal-scope declaration:target_id="approach", every hand's links viaopenral_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 withplace_approach_enableda 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; underobject_tracking: tracking/ondeploy_e2ealways sets it and the tracker measures the region,TrackerSession.place_region; the goal-scope declaration names the prompt'splace_zones_jsonzone (or a station candidate set) undertracking, and underononly 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) withrskill_id/trace_id/stamp_nsoverwritten and anyregionstripped, and retracted on every exit incl. E-stop (_arm_*_declaration/_retract_*_declaration). Object tracking (issue #418): paramsobject_tracking("off", the deploy'sDeployRuntime.object_tracking) andobject_queries_json(a JSON list ofObjectQuery, fromopenral deploy sim); not"off",_with_queriesattaches the TARGET/CONTEXT queries as the armed grasp declaration'starget_queries(each hinted withopenral_core.hand_jointof itscontact_links) and the DESTINATION one as the place declaration'sdestination_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 logsrskill_runner.<grasp|place>_queries_unarmedand arms nothing (a place declaration would let the sim attest a place witness). The grasp declaration is encoded withquery_factory=openral_msgs/ObjectQuery(_tracking_queriesvalidates 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_wantedisFalse, 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: avla, oractuators_requirednaming 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 notarget_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 withROSReasonerInvalidPlan(FAILURE_PLANNING_ERROR: the reasoner re-sends withgrasp_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 itsTIMEOUT_MARGIN_Sis republished under the same key just before the run withtimeout_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): paramsgrounding_wait_s(tracking on with 0 refuseson_configure) andgrounding_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_groundingpolls the graph clock until every TARGET query on the armed grasp declaration is grounded (ungrounded_target_queries), loggingrskill_runner.grounding_ready, else after the waitrskill_runner.grounding_incomplete(proceeds, no exemption for them) or, undergrounding_required, aborts the goal before the skill loads withROSPerceptionStale(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-rolloutsafety_estop:result, a cancel through_end_cancelled; #421 review). With tracking on it also subscribes to/openral/failure/world_state: anexhaustedObjectQueryEvidencekeyed 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 withFAILURE_OBJECT_NOT_FOUNDandROSObjectNotInMemory: …, recorded on the goal'srskill.executespan (only this cause gets that kind;_failure_kind_for_exceptionstill mapsROSObjectNotInMemorytoFAILURE_PERCEPTION_STALE). The goal-end publishes (theEpisodeEND marker, the declaration retractions) go through_publish_unless_shut_down: once SIGINT has shut the rclpy context down a publish that raisesInvalidHandle/RCLErroris skipped with onerskill_runner.publish_skipped_context_shutdowninfo line (no traceback out of the action server, no…_retractedline 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 orplace_declaration_json) that does not validate aborts the goal with aROSConfigErrorreason 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 sendshold_actionof 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, itssearch_boxwhen the reasoner seeded one) completed from the scene'sgrasp_declaration_json—search_box/workspace_box/contact_linksfill 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 (TARGETtarget_queries) lends its boxes only to a goal naming that label (boxes=other_objectotherwise); the goal'starget_idis 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 atGraspDeclaration.MAX_TIMEOUT_S(120 s; past it the runner ends the goal before the declaration lapses). A merged non-sim:scenesearch_boxalso seeds the TARGET queries with no seed. Returns the per-field source the runner logs asrskill_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'sactuators_required:Truewhen any actuator is not a base mode (arm / gripper / hand / Cartesian, e.g. pi0.5, MoveIt),Falsewhen every actuator isbody_twist/foot_placement(Nav2, a VLN policy),Nonewhen it actuates nothing (perception left as it is). The runner (station_perception_nodesparam, set bydeploy_e2eonly 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 withROSPerceptionStalenaming the node. Each service round trip is bounded bystation_perception_timeout_sin 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 asopenral_core.place_zone_for_promptreads 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 andbase_frameis known (no robot description →[]). One zone → itszone:<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 ofquerieswith fewer thanmin_instancesCONFIRMED / OCCLUDED / BOUND tracks of their label and role keyedkey(the declaration's"<target_id>@<stamp_ns>") intracked(aTrackedObjectSet, orNone) — 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 lastwindow_sof(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 atbase_settle_timeout_s).home_held_joints(joints, home) -> frozenset[str](rskill_runner_node.py L5855) — The joints a move home never commands, outside theopenral_homeplanning group: every joint the pose does not name (the base among them) androle: gripperjoints. 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 inskipmeasures inside itsposition_limits, within_STOW_HOLD_TOLERANCEof a limit counting as inside (a joint resting on its hard stop reads a hair past it);arms_at_homeand 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 itsposition_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 underuse_sim_time(sim seconds, like Nav2's and MoveIt's own timeouts; re-read per goal) and ontime.monotonic()otherwise;_deadline_lapsedlogs the miss, adds thedeadline_missedspan event withmiss.kind, and stashes theBudgetMissso the aborted goal'sfailure_reasonreadsdeadline_exceeded: …orclock_stalled: …(bothFAILURE_DEADLINE_MISSED)._grasp_declaration_lapsing(chunks)ends the goal the same way when its grasp declaration is about to expire (declaration_expiry_miss;TimeoutEvidence.operationrskill.execute:grasp_declaration:deadline_exceeded; a wrappedROSActionRskill'sstop_checkchecks it too), and_report_missis the logging/evidence step both share. ROS paramsexecution_wall_cap_factor(20) andgraph_clock_stall_s(10 s) are the wall-clock backstops, shared with every wrapped skill on the node and validated aton_configure(non-positive / non-finite fails the transition); a NaN goaldeadline_sis rejected asFAILURE_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 aSafetyStatusdrop of its tick:ROSPerceptionStaleforDROP_{VOXEL,ATTACHED,STATE}_UNAVAILABLE(a stale or missing kernel input),ROSRuntimeErrorotherwise. Recorded with the drop by_on_safety_status;_safety_drop_reason(since) -> tuple[str, type[Exception]] | Nonehands both toROSPublishingHAL._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 newestevidence_json;_execute_cbstamps every failed result'sevidence_json: the goal's ownTimeoutEvidence(deadline) /ObjectQueryEvidence(object not found) for its own kind, else the kernel's report received during the goal —PerceptionStaleEvidenceforFAILURE_PERCEPTION_STALE, any other kernel report forFAILURE_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 ownsuccess_conditionwins; else the one thesuccess_conditions_jsonparameter (the deploy scene's{prompt: SuccessCondition}) declares for the goal's prompt (success_condition_for_prompt; a prompt none of them names is loggedrskill_runner.success_condition_unmatched); one that does not validate refuses the goal (ROSConfigError)._on_tracked_objectsfeeds every set the tracker publishes to the goal'sopenral_core.success.SuccessJudge; each tick, while the world-state snapshot holds a live tracked set, a settled condition withend_on_successends the goal as a success and its verdict is latched for the Result (without it the verdict only labels the Result). Every result leaving therskill.executespan is stamped (_task_outcome_stamped) withtask_outcome+task_outcome_jsonand the span withrskill.task_outcome/.source/.reason: the latched verdict, else the condition's verdict at goal end (unknownwhen the tracked set is gone or the judge cannot run;ROSSafetyViolationis re-raised); a goal the skill (ROSRskillGoalSatisfied) or a completion check (/openral/rskill/complete) ended issucceededbyskill/checkerunless a condition saysfailed; elseunknown(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/StringJSON{prompt, grade, score, require_released}, RELIABLE / TRANSIENT_LOCAL / depth 1, from the HAL node). Under_goal_lockit 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_goaldrops 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'send_on_successdoes not;_stamp_task_outcomereports the grade (scene_grade_outcome) ahead of any latched verdict.goal_scene_grade(grade, prompt) -> dict[str, Any] | None(rskill_runner_node.py L6128) —gradewhen it is the scene's grade ofprompt, elseNone.scene_grade_ends_goal(grade, tracked) -> bool(rskill_runner_node.py L6142) — True for the success grade of a rubric withrequire_released; without it (a held object in the target grades placed) only oncetrackedholds noBOUNDtrack; 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) — TheTaskOutcome(source="scene") a scene grade gives a goal: the rubric's success grade (score 1.0, whatever its name) succeeds, any other fails;Nonewithout a grade._failure_kind_for_exception(exc) -> int(module-level) — Maps the OpenRAL exception hierarchy onto theExecuteRskill.Result.FAILURE_*uint8 constants, most-specific-first. AROSSafetyViolationother thanROSEStopRequestedhas 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 typedfailure_reasonand the matchingfailure_kindfor a raw non-ROSErrorescape, so the string and the uint8 can never disagree._label_runtime_failure(exc) -> stris 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 manifeststarting_pose(widened byexpand_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 Hubsnapshots/<commit>/rskill.yamlthe weight download is pinned to).class TwoPhaseSkillResolver(Protocol)(rskill_runner_node.py L5255) —@runtime_checkableresolve(*, rskill_id, revision) -> ResolvedRskill+build(resolved, *, prompt, prompt_metadata_json, goal_params_json, description) -> rSkillBase.RskillRunnerNodegates 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 opaqueSkillResolver, 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 gatedresolved.
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 productionTwoPhaseSkillResolver.resolvelooks 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 torSkill.fetch_manifest(withhub_fallback).buildbinds exactly the gated manifest: policies via_build_runtime_skill_from_manifest(a Hub policy afterrSkill.install_snapshot, pinned to the gated commit);ros_action/ros_serviceviaROSActionRskillonros_node, in-tree only, shut down if configure/activate fails. Calling the instance runsresolve+check_manifest_gates(adescriptionis required;scene_gripper_conventionis forwarded) +build.ManifestSkillResolver.resolve(*, rskill_id, revision) -> ResolvedRskill(rskill_runner_node.py L5338) —ROSConfigErrorfor an invalid in-tree manifest, an unknown id withouthub_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-runsrSkill.check_dispatchabledefensively.
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 + noanyon an actuating skill),rSkill._check_license, thenrSkill.check_compatibility(embodiment, capability flags, runtime/dtype vs compute, sensors, gripper encoding with the scene override) — the umbrellaopenral sim runandopenral detectuse.descriptionis 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 bindsrSkill.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-rSkillBasereturn now raises a typedROSConfigErrorinstead of a bare AttributeError with an emptyfailure_reason). Preload: parameterspreload_rskill_id/preload_rskill_revision/preload_promptmakeon_activatestart a daemon worker (_preload_resident_skill) that runs_acquire_skillunder_execute_serialso the skill is GPU-resident before any goal exists (a deactivate/activate cycle mid-load keeps the one worker:on_activatenever starts a second while the first is alive, so_preload_in_flightstays set until the load finishes);_goal_cbREJECTS goals while_preload_in_flightis set (acceptance is what arms the deadman's first-chunk window), and REJECTS every goal while the e-stop latch is held, loggingrskill_runner.goal_rejected: e-stop latchedat WARNING with the recovery (openral estop reset) since a ROS 2 rejection carries no reason, and_acquire_skillkeeps the weights resident per (id, revision): a skill exposingset_goal_prompt(prompt)(the VLA shim from_make_policy_adapter_skill, which applies_effective_goal_prompt'sdefault_promptfallback 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, sopreload_promptis 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 logsrskill_runner.resident_key_mismatch, since it costs the full cold load inside the watchdog window. AROSSafetyViolationraised while preloading is logged asrskill_runner.preload_safety_violationand handed to_rethrow_on_executor(exc), a one-shot timer that re-raises it on the executor thread so it escapesspin()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 noros_node, so only policies build; an unknown id raisesROSConfigErrornaming the known ids.resolve_control_rate_hz(param_hz, description) -> float | None(rskill_runner_node.py L5541) — The tick rate:rate_hz > 0wins, else the manifest'saction_spec.control_freq_hz, elseNone;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 usesafety.starting_pose_max_joint_speed_m_s/starting_pose_tolerance_m, every other joint the_rad_s/_radfields; each speed is capped at the joint'svelocity_limit. Declared per robot, never derived (issue #303). A positive param overrides the rad values only, never a prismatic joint.ROSConfigErrornaming the missing field. Wrapped byRskillRunnerNode._starting_pose_bounds(*, arrival=True): thestarting_pose_toleranceparam 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 scalarresolve_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 manifeststarting_poseas one target per robot joint: a robot-width pose passes through; a pose as wide asslot_state_joint_namessets those joints by name and keeps every other joint (base, lift) atmeasured.ROSConfigErrorfor any other width or ameasuredof the wrong width. Used by_apply_starting_poseand_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_POSITIONnaming every joint butheld_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-orderstarting_posetarget before the ramp: wrong width, a non-finite value, or a named joint outside itsposition_limits(ROSConfigError).held_joints(not named by a slot-subset pose, held at their measured value byexpand_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 jointstarting_pose_reachedrejects (a non-finite residual is a miss); residuals rounded to 4 decimals unless that would print a miss as within tolerance._wait_for_starting_posepollsWorldStateAggregator.fresh_joint_state(no per-poll snapshot span) and raises the misses as aROSRuntimeError, withControllerEvidence(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, isROSPerceptionStale.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-stepJOINT_POSITIONcommand holding every arm joint at itsmeasuredposition and everyrole: gripperjoint, thegripperanddex_hand_jointsfields at their last command; unnamed rows takemanifest_nameswhen that long.Nonefor 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:0when 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 onfallback;_check_skill_control_raterecordscontrol.rate_hz/control.rate_sourceon therskill.executespan.check_skill_control_rate(trained_hz, tick_hz, *, skill_id, robot) -> None(rskill_runner_node.py L5983) —ROSConfigErrorwhen the skill'saction_contract.control_freq_hzis 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, declared0.0= unset) and raisesROSConfigErrornaming it when it is not positive;deploy_e2e.launch.pysets it from the manifest'ssafety.joint_state_staleness_limit_sin real mode (_runner_joint_state_staleness_s(description, hal_mode, *, republished); when the runner reads the HAL's rate-limited~/joint_statesrepublish 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()/ shimon_warmup(rskill_runner_node.py) — Warm-up through the real tick path: the policy shim'son_warmuprunsadapter.stepon_warmup_observation()— zeros shaped like the cell's RGB intrinsics for every required camera slot,state_contract.dimzeros (falling back to the robot description's joint count; with neither it raises a typedROSConfigError, which the non-fatal wrapper logs asrskill_runner.warmup_failedand activate proceeds cold), the goal prompt — thenadapter.reset(), instead of a barewarm_up_lerobot_policyforward. 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 andSafetyPassthroughNodepublish on, and the HZ-0096-1 liveness window (3 s) past which a staleSafetyStatusis reported as an abort reason rather than downgraded to clear.main(args=None) -> int(rskill_runner_node.py L7099) — Entry point forros2 run openral_rskill_ros rskill_runner_node; bootstraps a standalone node with a freshRobotDescriptionandWorldStateAggregator. Production launches usecompose_so100_runtimeinstead, to share the aggregator with the colocatedworld_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 oneWorldStateAggregatorshared by a colocated world-state node andRskillRunnerNode, always attaching aSlamMapBridgeso any/mappublisher populates the dashboard. Cameras get their own freshness window, independent of joint/EE staleness.deploy_sensors(aDeployScene.sensorsblock) is merged into the manifest's sensors viamerge_deploy_sensorsbefore the aggregator and runner are built, so a scene's workcell cameras (and anyvla_feature_keythey 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 itscontext(ZED head) view replaced by lerobot's masked blank.sensor_overlays(the host'sRobotUnitoverlays, resolved byruntime_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,ExternalShutdownExceptionand aRuntimeError(coversRCLError/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; aRuntimeErrorwith the context still up propagates.runtime_nodeand the world-state events thread spin through it (the runtime exited 1 on that race). The executor twin ofopenral_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 externalrclpy.shutdown()) is a clean exit, never a failure. A callback that raises endsspinon the daemon thread; the exception is logged asworld_state.executor_diedand handed toon_failure(theruntime_nodescript 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.EventsExecutorin a daemon thread and returns a stop callable (shutdown+ join), orNoneon an rclpy without it (pre-Jazzy 7.1) so the caller adds the node to its own executor. Why: the PythonMultiThreadedExecutorrebuilds 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 keepsexecute_rskillaccept/cancel/result live while a goal blocks a worker.compose_so100_runtime(*, skill_resolver=None) -> ComposedRuntime(compose.py L411) — SO-100 convenience wrapper overcompose_runtime.ComposedRuntime(compose.py L41) — Dataclass returned bycompose_runtime:description,aggregator,world_state_node,skill_runner_node,slam_bridge,world_cloud_bridge,dataset_recorder_bridgefields.SensorLeg(sensor_leg.py L199) — Real-mode camera leg foropenral deploy run, the real-hardware counterpart of the sim HAL'sSimSensorBridge. 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'sbackend_paramscarry no fps. Matches theWorldStateAggregatorstaleness-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 ceilingtopic_frame_sizefalls 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 onopenral_core.camera_topic(name)(+CAMERA_INFOwith intrinsics; thetopic_prefixargument andDEFAULT_TOPIC_PREFIXwere removed by ADR-0108) —gstreamerbackends via an in-pipeline ROS tee, others via a polling publisher. On both paths a spec withintrinsicsalso publishesCameraInfostamped withspec.frame_id(the tee gets them viaSensorReaderConfig.publish_frame_id/publish_camera_info). A sharedaggregatoralso gets a pump writing frames directly intoWorldStateAggregator; the fallback publisher'smax_sizecomes from_topic_max_size(capture size for cameras inuncapped_sensorsor withtopic_native: true, elsetopic_max_size)._AggregatorPump(sensor_leg.py L123) — Daemon-thread pump pollingread_latestat 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: adepthsensor →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 specrate_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 inuncapped— 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 itsCameraInfounscaled) regardless oftopic_frame_size, for a bus reader that needs exact pixels (Foxglove,openral record, calibration). Resolution only — the 3 Hz rate cap still applies unlesstopic_rate_hzlifts it; a native 960x600 publish is ~55 ms of GIL per frame per camera, so it is per camera and opt-in. Only a booleantruecounts (YAML 1.1 also reads unquotedyes/onas one); any other value keeps the ceiling and logssensor_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 inuncappedor atopic_native: truebinding, else the launch-wideceilingfromtopic_frame_size. Whatopen_deploy_sensor_readershandsSensorRosPublisher.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 withtopic_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-stateautosettings.
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 mostrate_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— Importstorch+lerobot.policies.factoryearly so the shared bulk of any VLA adapter's import cost is paid before any camera-reader thread exists. Must run ahead ofopen_deploy_sensor_readers, since atransformersimport 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 theobject_trackinglaunch arg (offcomposes 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) andgrounding_wait_sare required,tracking/onrefused offhal_mode:=sim(the removedshadow/bindrefused as unknown),onrefused without anexemption_provider(ADR-0121 step 3: its tracked-object rules are the provider's, andonstands 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 startsopenral_object_tracker(autostarted lifecycle node), adds the tracked cameras to the self-filter'srobot_mask_camerasand to the segmenter'scameras/camera_infos, passesobject_trackingto the skill runner and the reasoner, appendsvision_attachment_publish_attachment_state:=falseto the HAL params after the params file whenever tracking is on, and hands onetracked_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: intracking/onthe jaw-open release params (an exemption-provider rule since ADR-0121 step 3: reach only the provider ascontact_exemptions.*) from the manifest: every calibrated gripper joint, its open sign (away fromclosed_position, an end ofposition_limits),tracked_release_gap= the largeststall_gap / 2(the tracker monitor's gap) and the sharedopenral_world_state.object_tracker.session.RELEASE_DWELL_S(0.3 s, also the tracker'srelease_dwell_s);{}inoff._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 ascontact_exemptions.*), true iffobject_tracking == "on"(a source selector: the tracked objects replace the producer region as the grasp exemption's source; never a disable).ROSConfigErrorforonwithoutgrasp_allowance_enabled(the kernel would refuse configure);onis 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 ascontact_exemptions.*), true iffobject_tracking == "on", workspace contact is on andrequested(DeployRuntime.workspace_explained_cells). With a provider the launch then passes the kernelstatic_points_file=_static_points_file(..., kernel_cells=True)when the scene declares static geometry._locate_contrast_labels(locator_specs) -> bool(L2341) — The object tracker'slocate_contrast_labels: on only when its locator (the first, itslocate_service) iszeroshot_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_enabledon theoctomap_voxel_bridgeandrobot_self_filternodes: identity clear, released-box window, carry sweep / vacated box, payload point drop). True fortrackingandon(the clears follow a unique tracker binding);offleaves 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 callsclear_bbox),{"payload_sweep_clear_service": "/openral_octomap_server/clear_bbox"}whenDeployRuntime.payload_sweep_clear_enabledis on in sim;ROSConfigErroron any otherhal_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. Onhal_mode:=realit also starts the robot's vendorros2_controlbringup itself. Always passes the kernelgrasp_allowance_enabled(launch arg, defaultfalse, fromDeployRuntime.grasp_allowance_enabled) andgrasp_contact_links= the manifest'srole: gripperchild_links (omitted when empty);grasp_allowance_enabled:=trueon a robot with no gripper joint raisesROSConfigError, and so does it on any non-sim launch unlessenable_vision_attachment:=trueand the HAL'shal_params_file(read back by_hal_file_params) setsvision_attachment_enabledandvision_attachment_grasp_target_enabledtrue (no region producer on real otherwise). Withworkspace_contact_enabled:=true(issue #349; plusworkspace_contact_max_speed_mps:=andworkspace_contact_max_lead_m:=) it passes the kernel_workspace_contact_kernel_params(...):workspace_contact_links=RobotDescription.hand_links(wrist_links=)(launch argworkspace_contact_wrist_links, default1, fromDeployRuntime.workspace_contact_wrist_links),workspace_contact_jaw_joints= therole: gripperjoint names,workspace_contact_brake_enabled: true, the speed and lead bounds, andworkspace_contact_control_period_s= 1 /action_spec.control_freq_hz; refused (ROSConfigError) on a non-simhal_mode, withoutgrasp_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 passesworkspace_contact_enabled: false. Withtracked_grasp_exemption_enabled(object_tracking: on, so with a provider) it also passestracked_grasp_extra_contact_links=RobotDescription.fixed_jaw_links()(omitted when empty). It also passesgrasp_region_max_age_sandplace_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 getsattach_link_tf_framesfrom thevision_attachment_tf_frameslaunch arg (comma-joinedlink=frame, forwarded byresolve_launch_invocationwith 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 getsgrasp_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 getsvision_attachment_grid_max_age_s= the kernel'sworld_voxel_deadline_sandvision_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--halvalue still wins; whatever the source, avision_attachment_grid_max_age_sabove the kernel'sworld_voxel_deadline_sor avision_attachment_release_clear_mbelowworld_voxel_margin_m+ resolution fails the launch withROSConfigError(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 anisaacsimdeploy 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 theexemption_providerlaunch 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 undercontact_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 totools/kernel_replay_diff.py's kernel B). Without a provider_hand_rules_to_providerdrops_PROVIDER_ONLY_RULESand_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'sstatic_points_file; the launch refusesstatic_geometry_filewithenable_octomapoff (declared walls never dropped silently). (#349) Withkernel_cells(issue #418 K7) it writes one centre per cell the bridge marks from those points (the base frame'sresolution_mlattice, where a fixed-base grid lies) toopenral_static_cells_*.txt, for the safety kernel'sstatic_points_file(the exemption provider's static cells), passed only with a provider and whenever one of its rules reads it: K7'sworkspace_explained_cells_enabledor the OT-10payload_own_cells_enabled/pinch_payload_own_cells_enabled(a declared static cell is never the payload; Spark R374 ran K7 off withstatic_cells=0).generate_launch_description() -> LaunchDescription(L6741) — Robot-agnostic deploy-sim launch graph entry point; wrapscompose_runtime_graphin anOpaqueFunction._foxglove_asset_env(robot_description_xml) -> dict[str, str](L2788) —foxglove_bridge'sadditional_env: prependsopenral_hal.ros_package_overlay.public_package_overlaytoAMENT_PREFIX_PATHso a viewer'sfetchAssetresolvespackage://meshes of a fetched public package (OpenArm'sopenarm_description);{}when none is needed or the overlay cannot be built (printed, never raised)._ancestor_package_file(m, urdf_dir) -> str(L2845) — A URDFpackage://<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'spackage://example-robot-data/...), so_robot_mesh_packageserves it; else unchanged._portable_robot_description(urdf_xml) -> str(L2917) — The manifest URDF asrobot_state_publisherpublishes it:rd:<module>:<relpath>mesh refs expanded to absolute paths (openral_core.assets.expand_rd_mesh_refs), which_robot_mesh_packagethen handsfoxglove_bridgeaspackage://URIs (itsASSET_URI_ALLOWLISTrefusesfile://, so the viewer drew bare links) (ur5e, ur10e, rizon4, h1, droid_franka_robotiq); only clones already in therobot_descriptionscache 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 afterhal_moderesolves: under anyhal_modeother than"sim"(fail closed) appliesopenral_core.ros_graph_scope.require_host_confined_ros_scopeto the launch's ownos.environ, so a hand-runros2 launch ... hal_mode:=realon SUBNET/unset discovery (including the SUBNETsetup.bashexports — the launch cannot re-scope its own started environment, so it refuses wheredeploy rundefaultsLOCALHOST) orROS_STATIC_PEERSraisesROSConfigErrorwithoutOPENRAL_ALLOW_NETWORK_ROS=1, and with it unless the graph runs under SROS2 Enforce (ADR-0130; when both hold it logs the structlog warningdeploy_e2e.real_robot_graph_networked— the one emitter per deploy, #558). Pinned behaviourally bytest_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; returnsenclave -> additional_env({}per process with security off). UnderROS_SECURITY_ENABLE=true, in everyhal_mode, it appliesrequire_secure_ros_graph, refuses unless this process runs inLAUNCH_ENCLAVE, creates the launch's own ROS node, then resetsROS_SECURITY_ENCLAVE_OVERRIDEto/for the children.compose_runtime_graphgives the kernelKERNEL_ENCLAVE, the HALHAL_ENCLAVEand the dashboardOPERATOR_ENCLAVE, and wraps the real bringup and the scene drivers in a scopedGroupActionthat setsHAL_ENCLAVE._build_real_bringup_include(real_bringup) -> object | None(L3019) —IncludeLaunchDescriptionof the manifest'shal.real_bringup("<pkg>:<file>.launch.py") onhal_mode:=real;Nonewhen the manifest declares none; raisesRuntimeErrorwhen the declared package or file is not installed. There is no package-name convention fallback._VENV_SITE(L45) — Optional workspace-editable-install site-dir fromOPENRAL_VENV_SITE, registered viasite.addsitedir(plainPYTHONPATHis not enough:.pthfiles are only processed by thesitemodule 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'sopenralbinary when it exists, else the bare"openral"on PATH._stereo_camera_topics(names_csv) -> tuple[str, str, str, str] | None—"<left>,<right>"→ the fourcamera_topic(...)stereo topics;Nonewhen 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, fromsensors(the deploy'spublishing_sensors, so on a real deploy only bound cameras count). Selection order, first match in manifest order at each step: (1) anrgbsensor whoseshares_mount_withnames amodality: depthsensor (the depth camera's colour stream; a lidar on the same mount never qualifies), e.g. the OpenAMRobot 2.0's and OpenArm'stoponhead_zed; (2) anrgbsensor whoseframe_idends in_optical_frame; (3) the firstrgbsensor; (4)"". The object detector'slocate_in_viewcamera and the reasoner's completion camera both follow it; pinned per robot bytests/unit/test_primary_rgb_camera.py._runner_starting_pose_tolerance(robot, hal_mode, scene_backend) -> float— The runner'sstarting_pose_tolerance:_ISAAC_STARTING_POSE_TOLERANCE_RAD[robot](0.08 rad foropenamrobot_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'ssafety.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]) onsam3_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'sscore_threshold). Merged, noopenral_ros_image_detectornode is launched or made a (VRAM) lifecycle peer: locator 0 runscontinuous_leg=onwithquery= the continuous manifest's labels (orobject_detector_query), and the locator'sdetector_querytopic retargets that leg too. Hosted, locator 0 andopenral_segmenterrun in onesam3_perception_node.pyprocess (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— TheCameraInfocarrying 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 underenable_nav2._optical_mounts(sensors, hal_mode) -> dict[str, str](L1460) — Issue #627:{mount frame: optical child}for every RGB camera whoseopenral_core.depth_extrinsic.image_frame_idis the REP-103 optical child of its mount frame (its own body-convention mount, or the sensor itshares_mount_with), a loop overopenral_core.depth_extrinsic.optical_mount(the ruleimage_frame_iditself 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, itssensor_bundles' and the scene's (the samedeploy_sensorslist its mount TFs and DA3 resolver use) and publishes each with_optical_tf_node, so a real camera with no driverCameraInfo(MakerModstop) is placed. The DA3 leg skips its own optical publisher when this already names itscloud_frame._optical_tf_node(parent, optical) -> Node(L1551) — Staticparent -> opticalTF withopenral_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_MODELon_ESTIMATED_DEPTH_PORT5772, beside mono SLAM's 5771) +depth_provider_nodein metric mode on that camera's canonical image / depth / points topics, its focal and lens fromrgb_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'sbackend_params.rectified) reads an already-rectified stream throughCameraInfo.p. Stamps everything incloud_frame(depth_frame_id) and publishesoptical_parent -> cloud_frame(REP-103) on /tf_static for a body-convention mount. The provider is aLifecycleNodenamed_ESTIMATED_DEPTH_PROVIDER(openral_estimated_depth_provider), autostarted ACTIVE (_poll_autostart) and always one of the reasoner'slifecycle_peer_node_ids(never avram_lifecycle_peersentry: the model lives in the sidecar); while it is inactive octomap gets no cloud and the kernel's world-voxel deadline stops motion. Withenable_octomapand no cloud and noestimated_depth_camera,compose_runtime_graphpicks the camera itself (openral_core.depth_extrinsic.auto_estimated_depth_camera) for a directros2 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, raisingROSConfigErrorwhen it is empty (a real deploy with nothing pinned, or no depth sensor) so a directros2 launchnever spawns octomap_server against silence. The object-lift fallback (object_depth_points_topic) takesdeploy_cloud_topicunchecked (""disables it)._rig_from_launch_args(raw) -> DeployRuntime(L598) — The per-rigDeployRuntimevaluesopenral deployforwards 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 throughDeployRuntime, which refuses an octree age above the deadline (hazard log Entry 033).compose_runtime_graphfeedsvoxel_freshness_sto the kernel'sworld_voxel_deadline_msand the octomap bridge'smax_octree_age_s, andworld_voxel_data_age_budget_sto the kernel'sworld_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'srgb), 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'sCameraInfotopic,_live_camera_info_topicof its publishing spec (on real the driver's own, never the manifest-rebuilt/openral/cameras/<cam>/camera_info), elsecamera_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'scameras/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'slocate_in_view(camera=<depth camera>)finds a frame._collision_base_dofs(description, collision_params=None) -> list[int](L659) — Dof indices of the manifest's planarbase_joints(empty on a fixed arm): the kernel'scollision_base_dofsand the self-filter's, so both hold them at zero and pose the model inbase_frame. Computed once incompose_runtime_graphfrom the final collision model; givencollision_params,ROSConfigErrorunless the root ->base_framechain 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) — Therobot_self_filternode's parameters: everycollision_*key the kernel receives (so both pose the same model),collision_joint_namesfrom the manifest with each joint'ssim_joint_nameascollision_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'sDeployRuntime.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_hzwhen the manifest declares a rate,robot_mask_hand_links(hand_links()), and, for each ofrobot_mask_cameras(launch argrobot_mask_cameras, comma-separated, default empty = off; issue #418), the robot mask's depth / depth camera_info /ROBOT_MASKtopics viacamera_topic. For an Isaac sim robot-visible camera path,runtime_period_from_halinitializes the period as unavailable and enables a HALSetParametersAtomicallyhandoff 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 Isaaccurrent_time), not nominal configuredget_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'scloud_inis then remapped to the filtered topic.base_frameis 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. WidowXwx250s/base_link, which no TF tree publishes); on a mobile manipulator (base_dofs, the caller's_collision_base_dofs) it also sendscollision_base_dofs(held at zero, as the kernel);robot_mask_hand_linksonly when the robot has hands._hal_file_params(path, node_name) -> dict[str, object](L1692) — Theros__parametersthe HAL'shal_params_filegives 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 getsattached_collision_enabled:hal_mode == "sim"(the sim attachment manager) or the vision attachment leg is on (enable_vision_attachment:=true, fromDeployRuntime.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_fastregardless of the flag. The leg on a robot with no collision geometry raisesROSConfigError. With the leg on, the launch also composes theopenral_segmenterlifecycle 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'sattached_collision_deadline_ms: 5000 ms on sim, 1000 ms on real._cpuset_prefix(env) -> str(L246) — Ataskset -claunch prefix fromOPENRAL_PERCEPTION_CPUSET(octomap_server + the voxel bridge) orOPENRAL_RUNTIME_CPUSET(the runtime node), or""; unset = nothing pinned. Affinity needs no privilege where raising priority does (ulimit -e0 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 raisingROSEStopRequestedinstead 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 (ROSPerceptionStalefor a stale kernel input); an unexplained timeout raisesROSRuntimeError. Stampsrunner_session_id(the runner's random per-session uint64; 0 = session-less) on everyActionChunk, 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 chunkflatarray._CONTROL_MODE_TO_UINT8: dict[ControlMode, int](L114) — Stable mapping fromopenral_core.ControlModeto the uint8 slot inActionChunk.control_mode.ROSPublishingHAL.connect() -> None(L232) — Opens the publisher oncandidate_action+ subscriber onjoint_states.ROSPublishingHAL.disconnect() -> None(L285) — Closes the publisher + subscription. Idempotent.ROSPublishingHAL.read_state() -> JointState(L302) — Returns the latest cachedJointStatefrom/joint_states; raisesROSRuntimeErrorif called beforeconnect()or before any message has arrived.ROSPublishingHAL.send_action(action) -> None(L318) — Publishes anActionChunkon/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 raisingROSEStopRequestedso the safety supervisor boundary can record and brake; the owning lifecycle node also publishes on/openral/estopas 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) — Defaultnav_msgs/OccupancyGridtopic slam_toolbox publishes on.encode_occupancy_grid_png(*, width: int, height: int, data: list[int]) -> str(L70) — Pure function rendering anOccupancyGrid.dataarray as a base64 PNG (unknown→mid-grey, free→white, occupied→black, in-between linear ramp; flipped so map-north points up). RaisesValueErroriflen(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 (zignored); delegates yaw toopenral_core.geometry.quat_xyzw_to_yaw. Used bySlamMapBridgeto project themap→base_framelookup 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 aslam.occupancy_gridspan 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 thefootprint_radius_mcircle.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; thenav_msgs/OccupancyGridprobability 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_filteredis 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: thebucket2_markersconverter's outputs (/openral/world_voxels_cloud,/openral/viz/attachments,/openral/viz/static_geometry,/openral/viz/collisions, the thinned clouds/openral/viz/cameras/<name>/pointsand/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_statusis excluded pending safety-WG sign-off.BUCKET1_TOPIC_WHITELIST: list[str](topics.py L131) — Thefoxglove_bridgetopic_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'sasset_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%2ecannot pass). Applied by both launch files.READ_ONLY_CAPABILITIES: list[str](topics.py L168) —["connectionGraph", "assets"]; omitsclientPublish/services/parametersso 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 theimage_transport/compressedsibling.ROBOT_DESCRIPTION_TOPIC: str(layout.py L89) —"/robot_description"; thestd_msgs/Stringtopic the layout's URDF layer reads (manifest URDF underdeploy sim, vendor URDF underdeploy run).urdf_layer(topic=ROBOT_DESCRIPTION_TOPIC) -> dict[str, dict[str, Any]](layout.py L92) — 3D-panellayersentry (layerId: "foxglove.Urdf",sourceType: "topic") that draws the robot. Needed because the 3D panel auto-loads a URDF only from the/robot_descriptionparameter, which the read-only bridge withholds; atopicsentry 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 emptycameras: the generic viz.openral.com layout, ADR-0129) and tabbed panels for nav, joints, policy/world state, and diagnostics. Every referenced topic is onBUCKET1_TOPIC_WHITELIST, and no generated layout contains a write-capable panel. Both URDF-drawing 3D panels setscene.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.layoutentry point:--cameras,--compressed,--follow-frame,-o/--output,--write-default(overwrite the shippedconfig/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-regionMarkerArrayis 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 bypad_m; the viewer's static-voxel filter.static_boxes(path) -> list[tuple[NDArray, NDArray]](bucket2_markers.py L251) — The declared box fixtures of aStaticGeometryYAML 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 atnow_s, the last having gone atlast_s(None= never); at mostmax_hza second,max_hz <= 0lets every cloud through. The converter'sviz_cloud_max_hzparameter (defaultVIZ_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 mostmax_pointsevenly spaced points with a finite x, every field byte for byte, skipping row padding; the converter'scamera_cloud_topics→ viewer clouds.COLLISION_MARKERS_TOPIC: str(bucket2_markers.py L276) —"/openral/viz/collisions"; where each kernel stop is drawn (latchedMarkerArray).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 cellindex, the cell a kernel stop names asvoxel_<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 geometryMarkerArrayis published (latched, once).SEARCH_BOX_RGBA: tuple[float, float, float, float](bucket2_markers.py L375) — Faint white; the grasp declaration'ssearch_box.WORKSPACE_RGBA: tuple[float, float, float, float](bucket2_markers.py L377) — Amber; the map-confirmed manipulation workspace (workspace_region, #349). A declared-onlyworkspace_boxis drawn inINACTIVE_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) — AStaticGeometryYAML (DeployRuntime.static_geometry_file) →DELETEALL+ oneCUBEper box at its pose and oneTRIANGLE_LISTper mesh.npz, all inframe(the manifestbase_framethe file is declared in). RaisesROSConfigErroron 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'sattach_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 raisesValueError.EVIDENCE_RGBA: dict[str, tuple[float, float, float, float]](bucket2_markers.py L363) — Payload marker colour perevidence_kind:grasp_target_regionorange,vision_segmentationcyan,gripper_closureyellow.OTHER_EVIDENCE_RGBA: tuple[float, float, float, float](bucket2_markers.py L369) — Magenta payload colour for every evidence kind not inEVIDENCE_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 (boxCUBE,SPHERE, capsuleCYLINDER+ end caps) atpose_in_link ∘ pose_in_objecton 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·releasedfor a frozen release record); the grasp / place declaration regions (only when declaration andregionare valid) as a translucent box +LINE_LISTwireframe + target label, active vs retracted coloured; a box primitive's measured inner box (first threetight_dop_lo/tight_dop_hiaxes, nsattached_measured); the grasp declaration'ssearch_boxand manipulation workspace (workspace_regionamber once confirmed, elseworkspace_boxgrey). RaisesValueErroron a bad primitive,ROSConfigErroron a degenerate quaternion.class Bucket2MarkersNode(bucket2_markers.py L672) —rclpy.node.Nodesubscribing/openral/world_voxelsand/openral/attachment_state(TRANSIENT_LOCAL); re-publishes/openral/world_voxels_cloud(PointCloud2) and/openral/viz/attachments(MarkerArray, TRANSIENT_LOCAL) via the pure functions. Parameterattach_link_tf_frames(string list,deploy_e2epasses the octomap bridge's);static_geometry_file+base_framepublishstatic_geometry_markersonce on/openral/viz/static_geometry(TRANSIENT_LOCAL;deploy_e2epasses 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/safetyand 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 aslib/openral_foxglove_bringup/bucket2_markers);rclpy.init→ spin → shutdown.generate_launch_description() -> LaunchDescription(bucket2.launch.py L27) — Bucket-2 converter node launch; declaresuse_sim_timeand spawns thebucket2_markersnode.generate_launch_description() -> LaunchDescription(foxglove.launch.py L42) — Read-onlyfoxglove_bridgebring-up for the Bucket-1 topics;topic_whitelistis 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 aCriticWatchdogGroupand aFailureBusPublisher, subscribesCriticScore, and routes each sample; on a stall publishes oneKIND_CRITIC/SEVERITY_FAILFailureTriggerper stall. Acritic_idending 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 theFailureBusPublisherbefore base teardown.main(args=None) -> None(L132) — Console entry point (installed aslib/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; paramssuccess_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 viabuild_tool_use_client_from_env, onedescribe_imageontiled_jpegof the cameras' latest frames; launchcompletion_check_judge,DeployRuntime.completion_check_judge),flip_180(False; the launch mirrorsOPENRAL_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 aslib/openral_reasoner_ros/completion_check_node.py); spins on a two-threadMultiThreadedExecutor.
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 anOperatorActionto a reset. explains(drop_reason: int, failure_kind: int) -> bool(L99) — Whether aFailureTriggerkind can be the cause of a latch with thisSafetyStatusdrop reason (external e-stop ← human/timeout; fail-closed input drops ← perception; otherwise kinds must match).class ComplianceRecorderNode(LifecycleNode)(L158) — Paramsrun_mode("sim"/"hardware", for theSessionRecord) andstop_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; withstop_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;maincalls it on SIGINT, where rclpy skips the shutdown transition.main(args: list[str] | None = None) -> int(L558) — Entry point forros2 run openral_compliance recorder_node.py; configures observability, spins, and closes the session on exit.