Skip to content

Commit

Permalink
Fixed - Out of bounds for single depth anchored if depth becomes nega…
Browse files Browse the repository at this point in the history
…tive
  • Loading branch information
goldbattle committed Apr 27, 2020
1 parent 10b33a8 commit 9e3faeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ov_core/src/types/Landmark.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ namespace ov_type {
set_value(_value+dx);
// Ensure we are not near zero in the z-direction
if (LandmarkRepresentation::is_relative_representation(_feat_representation) && _value(_value.rows()-1) < 1e-8) {
printf(YELLOW "WARNING DEPTH %.8f BECAME CLOSE TO ZERO IN UPDATE!!!\n" RESET, _value(2));
_value(2) = 1e-8;
printf(YELLOW "WARNING DEPTH %.8f BECAME CLOSE TO ZERO IN UPDATE!!!\n" RESET, _value(_value.rows()-1));
//_value(2) = 1e-8;
}
}

Expand Down

0 comments on commit 9e3faeb

Please sign in to comment.