Perception

We ground references to objects (“the red chair”, “la plante”) in what the robot sees and then compute where the object is in the map. Architecture maps each stage to our code.

Pipeline

  1. Proposals. An open-vocabulary model proposes regions for the object names that the language model extracted from the instruction.

  2. Mask quality. Segmentation masks with |M| / |hull(M)| < mask_quality_threshold are discarded.

  3. Degradation weight. Each region gets a weight Θ = exp(−β‖Ω‖), where Ω measures darkness, blur and truncation at the image border.

  4. Verification (optional). A dual encoder (CLIP, SigLIP 2) scores each masked crop against the query and the vocabulary. Low-confidence regions can be rejected with an energy threshold.

  5. Target selection. Regions are ranked by detector score × Θ × verifier probability × label similarity, and the highest score is selected.

  6. Depth. Depth is the median of the valid values near the mask centroid, taken from the depth camera or, without one, a monocular metric depth model.

  7. 3-D position. The pixel is back-projected with the camera intrinsics, then transformed with the camera extrinsics into the base frame and with the robot pose into the map frame.

  8. Scene memory. A Kalman filter per object fuses repeated observations, so the robot can answer retrospective queries e.g., “where was the cup?” after the cup has left the view.

If the object is not in view, the robot turns in place in steps (search.step_deg) and looks again. Failing that, it uses the scene memory and returns how old that observation is.

Detectors

perception.detector

Model (default checkpoint)

Output

Notes

sam3

SAM 3 (facebook/sam3)

masks + boxes

default; text-prompted concept segmentation; gated on Hugging Face

grounding_dino

Grounding DINO (IDEA-Research/grounding-dino-base)

boxes

strong open-vocabulary detector

owlv2

OWLv2 (google/owlv2-base-patch16-ensemble)

boxes

lighter; good recall

yolo_world

YOLO-World (yolov8x-worldv2.pt)

boxes

real time; pip install "reli-robot[yolo]"

sim

ground truth from robot.sim.objects

positions

simulator, no camera

Any compatible checkpoint can be set with perception.model.

Verifier

The verifier classifies each masked region with a dual encoder.

perception:
  verifier:
    model: google/siglip2-base-patch16-224   # or openai/clip-vit-base-patch32
    temperature: null        # null = the model's learned logit scale
    energy_threshold: null   # calibrate per model before enabling

Cameras and depth

camera.source

Images

Depth

robot

ROS topics via rosbridge

aligned depth topic (16UC1 mm or 32FC1 m)

realsense

Intel RealSense over USB

aligned hardware depth

webcam

OpenCV webcam

monocular model (perception.depth.monocular_model)

none

—

—

Intrinsics come from camera_info or RealSense, from camera.intrinsics, or as a last resort from camera.hfov_deg. The extrinsics (camera.extrinsics) are the camera body pose in the robot base frame. Measure them on the robot: every object position depends on them.

Tuning

Symptom

Try

Objects missed

lower score_threshold; a more specific noun phrase; grounding_dino

Wrong object chosen

enable the verifier; add distractors to vocabulary

Positions off by a constant

check camera.extrinsics (especially pitch)

Positions noisy

use a depth camera; increase tracking.noise_per_m2 for smoother tracks

Robot stops too close or far

perception.approach_distance_m