Skip to content

find_geom for Model Editing Python API to update size dynamically #2295

Discussion options

You must be logged in to vote

And of course if you know the name there is always mjs_findElement: mjs_findElement(spec, mujoco.mjtObj.mjOBJ_GEOM, 'my_geom')

I think you can also use a string here like mjs_findElement(spec, 'geom', 'my_geom'), but I'm not sure if we implemented that 🙂

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@curtiscjohnson
Comment options

Comment options

You must be logged in to vote
3 replies
@curtiscjohnson
Comment options

@yuvaltassa
Comment options

@curtiscjohnson
Comment options

Answer selected by curtiscjohnson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants