Replies: 3 comments
-
cc @quagla |
Beta Was this translation helpful? Give feedback.
0 replies
-
Would you like to send a PR adding that function? Then we can probably use it in the Python API directly, instead of FindAllImpl. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently,
MjSpec
python api supports handy properties, eggeoms, bodies
, produced fromFindAllImpl()
in pybind11 specs.cc. In C api, in case of such a need for a recursive property set tocontype, conaffinity
of all geoms of a body OR eggravcomp
of all bodies under a mjSpec,mjs_findAll()
would be convenient to be used for looping over child specs.An implementation example for parent type as either of
mjSpec, mjsBody
can be, as largely based onFindAllImpl()
Example usecases:
Beta Was this translation helpful? Give feedback.
All reactions