google-deepmind / mujoco

Multi-Joint dynamics with Contact. A general purpose physics simulator.
https://mujoco.org
Apache License 2.0
8.26k stars 827 forks source link

Increase maximum sizes for keyframe array attributes #2166

Closed hartikainen closed 1 month ago

hartikainen commented 1 month ago

The feature, motivation and pitch

Currently, there's a hard-coded limit of 1000 elements in each keyframe attribute. Given that MuJoCo is easily able to simulate models with model.nq > 1000 (for example 100_humanoids.xml has model.nq == 2800), it would be convenient that the keyframes also supported larger values for qpos etc.

Alternatives

Make the model smaller, change the hard-coded values and compile MuJoCo from scratch, or set simulation states programmatically instead of through xml.

Additional context

No response