Skip to content

Fix texture lookup for meshes on recent MuJoCo. - #38

Merged
kevinzakka merged 1 commit into
mainfrom
fix-texture-id
Oct 31, 2026
Merged

kevinzakka merged 1 commit into
mainfrom
fix-texture-id

Conversation

@kevinzakka

Copy link
Copy Markdown
Contributor

On MuJoCo 3.16+, get_geom_texture_id returned -1 for every textured mesh because geom_type not in (mjtGeom.mjGEOM_MESH, mjtGeom.mjGEOM_SDF) compares a pybind11 enum against a numpy scalar, which is always False. This casts to int like the other checks, adds a regression test, and bumps the locked MuJoCo from 3.8 to 3.17 so CI runs a version that shows the bug.

@kevinzakka
kevinzakka merged commit 83913a9 into main Oct 31, 2026
6 checks passed
@kevinzakka
kevinzakka deleted the fix-texture-id branch October 31, 2026 23:43
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.

1 participant