[Refactor] Migrate grid_map_core → nanoGrid - #16
Merged
Conversation
Replace vendored grid_map_core with nanoGrid as external FetchContent dependency. This establishes nanoGrid as the shared vocabulary type for GridMap, enabling FastDEM, FastTrav, and FastPlan to be independent peers. BREAKING CHANGE: namespace grid_map:: → nanogrid:: Build: - FetchContent(nanoGrid) replaces add_subdirectory(lib/grid_map_core) - cmake_minimum_required bumped to 3.14 API: - ElevationMap inherits nanogrid::GridMap (was grid_map::GridMap) - MapIndexer removed — replaced by nanoGrid cells()/neighbors() - CellMap alias moved from nanoGrid to fastdem namespace - grid_index_hash.hpp deleted (nanoGrid provides IndexHash) Iteration pattern migration (6 production files): - feature_extraction: cells() + region(radius) + neighbors() - uncertainty_fusion: cells() + neighbors() + n.dist_sq - inpainting: cells() + region(Size) + neighbors() - spatial_smoothing: cells() + region(Size) + neighbors() - pcd_convert: cells() + logical coord position - impl_visualization: cells() + stride filter Deleted: - lib/grid_map_core/ (vendored, ~10k lines) - benchmark_postprocess_iteration.cpp (comparison target removed) 23/23 tests pass.
FetchContent requires git to clone nanoGrid.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
grid_map_corewith nanoGrid via FetchContentMapIndexerwith nanoGridcells()/region()/neighbors()APIChanges
Build:
FetchContent(nanoGrid)replacesadd_subdirectory(lib/grid_map_core)cmake_minimum_requiredbumped to 3.14Core:
grid_map::→nanogrid::ElevationMapinheritsnanogrid::GridMapMapIndexerremoved — usemap.cells()+map.neighbors(cell, region)insteadCellMap<T>moved tofastdemnamespacegrid_index_hash.hppdeleted (nanoGrid providesIndexHash)Iteration migration (6 files):
feature_extraction.cppcells()+region(radius)+neighbors()uncertainty_fusion.cppcells()+neighbors()+n.dist_sqinpainting.cppcells()+region(Size)+neighbors()spatial_smoothing.hppcells()+region(Size)+neighbors()pcd_convert.cppcells()+ logical coord positionimpl_visualization.hppcells()+ stride filterDeleted:
lib/grid_map_core/(~10k lines)benchmark_postprocess_iteration.cpp(comparison target removed)Test plan