Skip to content

Redesign sensors and observation delays #1361

Open

Description

@kevinzakka

MuJoCo sensors can now keep a history buffer, which gives us sub-step accurate observation delays almost for free. Today observation delay is a torch buffer quantized to policy steps. Joint position, joint velocity and projected gravity don't come from sensors at all, so they can't use it.

The idea is that sensors always report the true value, since rewards and terminations shouldn't see latency. Observation terms read the past value with a delay in seconds, per env. For robot state, joint encoders and the IMU become builtin sensors on the entity, which is also closer to what the real robot measures.

ObservationTermCfg.delay replaces the six delay_* fields, and lag jitter goes away. Cameras and custom terms fall back to a simple per-step ring buffer. Raycast and camera sensors also get an update_period to skip work between updates, and it's worth checking whether raycast can move onto MuJoCo's camera rangefinders.

Needs batched history reads and history init on reset in mujoco_warp. Related: #1228, #1230, #1025.

Activity

  1. added
    enhancement
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions