Closed kinalmehta closed 1 month ago
I tried adding the following code in collision_sdf.py
@collider(ncon=1)
def sphere_ellipsoid(s: GeomInfo, e: GeomInfo) -> Collision:
""""Calculates contact between a sphere and an ellipsoid."""
x0 = 0.5 * (s.pos + e.pos)
return _optim(_sphere, _ellipsoid, s, e, x0)
Not sure if this works, I saw that there is an implementation of _sphere
and _ellipsoid
and wanted some feedback on this.
Thanks Kinal
@kinalmehta let us know if the recent push fixes the issue, thanks for reporting this!
Thanks for the quick fix.
Intro
Hi!
I am trying to use MuJoCo-MJX with CMUHumanoid from dm-control. However I'm getting the following error.
However in the documentation it is mentioned that
ELLIPSOID and CYLINDER are implemented but only collide with other primitives, note that BOX is implemented as a mesh.
I assume sphere is a primitive, so this error is unexpected.My setup
Mujoco versions
Python and OS version
Minimal model for reproduction
minimal XML link: https://github.com/google-deepmind/dm_control/blob/main/dm_control/suite/humanoid_CMU.xml
Code required for reproduction
Confirmations