simondlevy / BreezySLAM

Simple, efficient, open-source package for Simultaneous Localization and Mapping
GNU Lesser General Public License v3.0
758 stars 251 forks source link

Why do we have to interpolate in coreslam.c? #46

Open thanhhien1166 opened 4 years ago

thanhhien1166 commented 4 years ago

/ Interpolate / for (k=0; ksize; ++k) { lidar_distances_mm[k] = (int)interpolate(interp->angles, interp->distances, scan_size, (float)k); } I think these lines (lines 119-122) will return the origin but sorted values in lidar_distances_mm. So why we need to interpolate while we already have it?