mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 08:47:45 +08:00
Fixed RegistrationVis feature matching behavior when NaN 3D keypoints are found
This commit is contained in:
@@ -935,7 +935,7 @@ inline std::vector<float> uHamming(unsigned int L)
|
||||
template <typename T>
|
||||
bool uIsInBounds(const T& value, const T& low, const T& high)
|
||||
{
|
||||
return !(value < low) && !(value >= high);
|
||||
return uIsFinite(value) && !(value < low) && !(value >= high);
|
||||
}
|
||||
|
||||
#endif // UMATH_H
|
||||
|
||||
Reference in New Issue
Block a user