Closed Jgorin closed 1 year ago
Hi @Jgorin thanks for using Brax! For the first bug, thanks for the fix! Indeed we should add the case where a fused body doesn't use pos/rot but fromto. We'll push your fix shortly. The second bug is in the geom pair logic, which we'll also push a fix for
I'm trying to load a mujoco model with a single body and a capsule geometry with a fromto specified but I'm running into an error:
Here is the model I'm trying to load:
I think the error is coming from
_fuse_bodies
inbrax/io/mjcf.py
. It looks like the function doesn't cover the case where a fused body contains geometry that specifies a fromto.I'm not sure what the best way to cover this use case is, but here's what I changed to at least get it to parse the xml:
But after I changed this I started getting errors when trying to set the state of the system (this is using a model that does contain joints to set the state of).
The way I'm calling pipeline_init is as follows: