You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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