Why do we have to interpolate in coreslam.c?
thanhhien1166 opened this issue · 0 comments
thanhhien1166 commented
/* 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?