Skip to content

Jit-compatible MJX model randomization #2406

Closed Answered by jonasweihing
jonasweihing asked this question in Asking for Help
Discussion options

You must be logged in to vote

I finally implemented a randomization function, similar to how it is done in mujoco playground, which uses the parallelization of envs with mjx/brax to randomize the model.

This solution has some limitations. The fields bvh_aabb, geom_aabb and geom_rbound_hfield are not batchable, but change on recompile when I change the size of the object. However, bvh_aabb is restricted to mujoco and therefore not used in MJX and geom_rbound_hfield is only accessed if a mjGEOM_HFIELD geometry is used, which I do not intend to do. Therefore, I am fine with them not being batchable. For geom_aabb I'm not sure because I couldn't find any usage within MJX, but I guess I am fine with it as well.

Here's a s…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jonasweihing
Comment options

@Balint-H
Comment options

Balint-H Feb 7, 2025
Collaborator

Comment options

You must be logged in to vote
0 replies
Answer selected by jonasweihing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants