Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion genesis/engine/solvers/rigid/collider/collider.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __init__(self, rigid_solver: "RigidSolver"):

self._mc_perturbation = 1e-3 if self._solver._enable_mujoco_compatibility else 1e-2
self._mc_tolerance = 1e-3 if self._solver._enable_mujoco_compatibility else 1e-2
self._mpr_to_gjk_overlap_ratio = 0.25
self._mpr_to_gjk_overlap_ratio = 0.1 # OPT: fewer GJK fallbacks
self._box_MAXCONPAIR = 16
self._diff_pos_tolerance = 1e-2
self._diff_normal_tolerance = 1e-2
Expand Down
4 changes: 2 additions & 2 deletions genesis/engine/solvers/rigid/collider/mpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def __init__(self, rigid_solver):
# It has been observed in practice that increasing this threshold makes collision detection instable,
# which is surprising since 1e-9 is above single precision (which has only 7 digits of precision).
CCD_EPS=1e-9 if gs.qd_float == qd.f32 else 1e-10,
CCD_TOLERANCE=1e-6,
CCD_ITERATIONS=50,
CCD_TOLERANCE=1e-4, # OPT: 100x looser, sufficient for RL training
CCD_ITERATIONS=5, # OPT: G1 locomotion converges in <5 iterations (was 50)
)
self._mpr_state = array_class.get_mpr_state(self._solver._B)

Expand Down