Repository navigation
Replies: 3 comments
|
Would you like to send a PR adding that function? Then we can probably use it in the Python API directly, instead of FindAllImpl. |
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,
MjSpecpython 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, conaffinityof all geoms of a body OR eggravcompof 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, mjsBodycan be, as largely based onFindAllImpl()Example usecases:
All reactions