We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abd2cbb commit 03cb592Copy full SHA for 03cb592
1 file changed
src/base_autonomy/terrain_analysis/src/terrainAnalysis.cpp
@@ -539,9 +539,9 @@ int main(int argc, char **argv) {
539
540
float dis4 = sqrt(pointX4 * pointX4 + pointY4 * pointY4);
541
float angle4 = atan2(pointZ4, dis4) * 180.0 / PI;
542
- if (angle4 > minDyObsVFOV && angle4 < maxDyObsVFOV || fabs(pointZ4) < absDyObsRelZThre) {
+ if ((angle4 > minDyObsVFOV && angle4 < maxDyObsVFOV) || fabs(pointZ4) < absDyObsRelZThre) {
543
planarVoxelDyObs[planarVoxelWidth * indX + indY]++;
544
- } else {
+ } else if (angle4 <= minDyObsVFOV) {
545
planarVoxelOutOfFov[planarVoxelWidth * indX + indY]++;
546
}
547
0 commit comments