proximity_mixin
¶
ProximityMixin
¶
Bases: MojoBaseModel, ABC
vertex_max_norm
¶
Calculates the tightest sphere that encompasses all vertices, centered at the mesh's bounding box center.
Returns:
| Type | Description |
|---|---|
tuple[float, Vec3]
|
tuple[float, Vec3]: Tight radius and the local centroid offset. |
Source code in src/mujoco_mojo/utils/proximity_mixin.py
trimesh
abstractmethod
¶
bake_proximity
¶
Python
bake_proximity(
mj_model: MjModel, proximity_type: ProximityType
) -> None
Builds the BVH tree from the comiled MuJoCo mesh data.
Source code in src/mujoco_mojo/utils/proximity_mixin.py
clear_unpickleable
¶
Clear the collision managers and other unpicklable objects.
This should be called before serializing/pickling the self for multiprocessing.
Source code in src/mujoco_mojo/utils/proximity_mixin.py
| Python | |
|---|---|