grid_map icon indicating copy to clipboard operation
grid_map copied to clipboard

image pointer never deleted in SDF

Open BeatScherrer opened this issue 7 years ago • 2 comments

The image pointer created at https://github.com/ANYbotics/grid_map/blob/master/grid_map_sdf/src/SignedDistanceField.cpp#L84 is never deleted.

PS: Thanks for your effort put in this great library

BeatScherrer avatar Apr 11 '19 13:04 BeatScherrer

Further I'm not quite sure why the SDF encorporates a vector of matrices, the dt transforms binary images to distance fields. I can't see the purpose of this additional dimensionality since the dt is only performed in 2D and the amount of layers added is proportional to the max index difference in the input matrix.

Unfortunately there is no documentation for this module.

BeatScherrer avatar Apr 11 '19 14:04 BeatScherrer

Hi @BeatScherrer, did run into a segmentation fault?

Can you propose a pull request that fixes the issue?

maximilianwulf avatar Apr 17 '19 10:04 maximilianwulf