Conversation
This was
linked to
issues
Jan 12, 2026
4df2e40 to
88ff7db
Compare
Contributor
|
Is there a plan to support this in MJX? |
Collaborator
|
Hi @hartikainen , AFAIK there aren't immediate plans to support this in MJX. I believe you'd have to hook into |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Heterogeneous Mesh Batching
Enables per-world mesh geometries.
This PR adds support for heterogeneous mesh batching - the ability to simulate different mesh tessellations, sizes, and topologies across parallel worlds. Previously, all worlds shared identical mesh geometry. Now each world can have its own unique mesh configuration while maintaining efficient batched execution.
nmesh, nbody, ngeom, and nv are required to be the same for all worlds
Key capabilities:
mesh_batchUtility FunctionA utility function
mesh_batchis added to construct batched mesh arrays from a collection ofmjModelinstances. Importantly, dependent fields are also updated.Takes a
Modeland a sequence of MuJoCoMjModels (one per world) and creates batched arrays for all mesh-dependent fields:mesh_vertadr,mesh_vertnum,mesh_faceadr,mesh_vert,mesh_face,mesh_graph,mesh_quat,mesh_polynum,mesh_polyadr,mesh_polynormal, ...geom_size,geom_aabb,geom_rboundbody_mass,body_subtreemass,body_inertia,body_invweight0,body_ipos,body_iquatdof_invweight0Example Usage