read() updated every physics frame.
Signature
Usage
Return Value
Sensor Types
Common MuJoCo sensor types and their dimensions:Notes
- The
read()array is updated every frame viauseAfterPhysicsStep - If the sensor doesn’t exist,
read()returns an emptyFloat64Array - For enumerating all sensors, use
api.getSensors() - The
nameparameter acceptsstringby default, or a generated union type if you usemujocoReact()