Add tolerance to upper > lower bound check on first iteration of EPA.
PiperOrigin-RevId: 933615381 Change-Id: I175d3b97fa65f71a8f1cc34da5f6b9a23ab856d2
This commit is contained in:
committed by
Copybara-Service
parent
f6fb4af091
commit
386b45fb75
@@ -1394,7 +1394,7 @@ static Face* epa(mjCCDStatus* status, Polytope* pt, mjCCDObj* obj1, mjCCDObj* ob
|
||||
}
|
||||
if (upper - lower < tolerance) {
|
||||
// terminate without contact when upper < lower on first iteration
|
||||
if (k == 0 && upper < lower) {
|
||||
if (k == 0 && upper < lower - 1e-10) {
|
||||
face = NULL;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user