Reduce effect of infinite planes on center and extent statistics
PiperOrigin-RevId: 923868757 Change-Id: I3630d29f05a19e0767549284abbe8a8d9386894b
This commit is contained in:
committed by
Copybara-Service
parent
d7e872b6f9
commit
3a6e0ee9b3
@@ -1080,7 +1080,7 @@ static void setStat(mjModel* m, mjData* d) {
|
|||||||
|
|
||||||
// infinite in both directions
|
// infinite in both directions
|
||||||
else {
|
else {
|
||||||
rbound = 1;
|
rbound = 0.01;
|
||||||
}
|
}
|
||||||
} else if (m->geom_type[i] == mjGEOM_HFIELD) {
|
} else if (m->geom_type[i] == mjGEOM_HFIELD) {
|
||||||
int j = m->geom_dataid[i];
|
int j = m->geom_dataid[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user