Skip to content

Commit 03cb592

Browse files
jizhang-cmualexlin2
authored andcommitted
update
1 parent abd2cbb commit 03cb592

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/base_autonomy/terrain_analysis/src/terrainAnalysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,9 @@ int main(int argc, char **argv) {
539539

540540
float dis4 = sqrt(pointX4 * pointX4 + pointY4 * pointY4);
541541
float angle4 = atan2(pointZ4, dis4) * 180.0 / PI;
542-
if (angle4 > minDyObsVFOV && angle4 < maxDyObsVFOV || fabs(pointZ4) < absDyObsRelZThre) {
542+
if ((angle4 > minDyObsVFOV && angle4 < maxDyObsVFOV) || fabs(pointZ4) < absDyObsRelZThre) {
543543
planarVoxelDyObs[planarVoxelWidth * indX + indY]++;
544-
} else {
544+
} else if (angle4 <= minDyObsVFOV) {
545545
planarVoxelOutOfFov[planarVoxelWidth * indX + indY]++;
546546
}
547547
}

0 commit comments

Comments
 (0)