mdrwiega / depth_nav_tools

A set of tools for mobile robot navigation with the depth sensor
http://wiki.ros.org/depth_nav_tools
Other
56 stars 40 forks source link

Distance to ground is unsigned int, causing wrong distances to be stored #22

Closed nakai-omer closed 1 year ago

nakai-omer commented 1 year ago

Hi,

Distances to ground are stored as uints:

 std::vector<unsigned> dist_to_ground_;

This causes the distances to always be rounded down, and thus provide wrong results. If for example, the distance is 0.9 meters, the stored value will be 0, causing false positives.