Skip to content

Bump to MuJoCo 3.4.0#49

Merged
kanarus merged 2 commits intorust-control:mainfrom
yinhang-oai:feat/mujoco340
Jan 31, 2026
Merged

Bump to MuJoCo 3.4.0#49
kanarus merged 2 commits intorust-control:mainfrom
yinhang-oai:feat/mujoco340

Conversation

@yinhang-oai
Copy link
Contributor

Summary of Changes

  • Bumped MuJoCo dependency to 3.4.0
  • Regenerated Rust bindings from updated C headers
  • Updated wrappers to reflect API, type, and layout changes introduced in 3.4.0

Version & Documentation

  • Crate version bumped: 0.2.0 → 0.3.0
  • README updated to reference MuJoCo 3.4.0

Vendored Headers

  • Vendored MuJoCo C headers updated to 3.4.0

    • Includes core headers such as mujoco.h, mjmodel.h, mjdata.h, mjvisualize.h, and related files

Rust Bindings

  • Rust bindings regenerated using the 3.4.0 headers
  • bindgen output updated accordingly

Wrapper & API Updates

Spec Deletion API

  • Deletion API updated to use mjs_delete(spec, element)
  • mjs_detachBody and mjs_detachDefault now delegate to mjs_delete
  • mjs_delete wrapper now requires &mut mjSpec

Sparse Data Layout Changes

  • Sparse structures moved from mjData to mjModel
  • Removed sparse slices from mjData
  • Added sparse accessors on mjModel
  • Added mjData helper methods that delegate to mjModel

Type & Size Updates

  • Updated size-related types to match 3.4.0 (mjtSize)
  • Updated fields include narena, nbuffer, and maxuse_*
  • Newly exposed size field: noct

Options Changes

  • Removed apirate
  • Added sleep_tolerance

Signature Alignment

  • Ray casting wrappers updated to match the new 3.4.0 array-pointer signatures

References

@yinhang-oai yinhang-oai requested a review from kanarus as a code owner January 30, 2026 23:09
Copy link
Member

@kanarus kanarus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh nice! Thank!

@kanarus kanarus merged commit 8977bb1 into rust-control:main Jan 31, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants