Differentiable wrapper around the standard 2-D distance-to-obstacle costmap.
Provides bilinear interpolation in (x, y) for Ceres AutoDiff, with a resolution-aware conservative correction:
- the interpolated distance is reduced by cellSize/2 to account for the fact that the true obstacle boundary can be up to half a cell away from the stored cell-center distance;
- if any of the four contributing cells is a collision cell (value <= 0), the result is capped at -cellSize/2 so the optimizer never sees a falsely positive clearance.
Definition at line 47 of file Costmap2DWrapper.h.