feat(costmap_2d): background reference graph, shared keys under root:

- ReferenceGraph / ReferenceGraphWorker: Voronoi ridges and one-way lanes are
  computed on a low-priority thread when the map changes (reference_graph_*
  keys, off with rolling_window), with unit tests.
- Shared costmap keys can live in a root: map or flat at the top of the YAML;
  costmap_common_root_test covers both layouts.
- Static and directional layers report map changes to the layered costmap.
This commit is contained in:
2026-11-10 16:37:55 +07:00
parent f5d190a3d0
commit 5034029c6e
25 changed files with 3445 additions and 21 deletions

View File

@@ -177,6 +177,7 @@ void StaticLayer::matchSize()
Costmap2D* master = layered_costmap_->getCostmap();
resizeMap(master->getSizeInCellsX(), master->getSizeInCellsY(), master->getResolution(),
master->getOriginX(), master->getOriginY());
layered_costmap_->notifyStaticMapChanged(getType());
}
}
@@ -305,6 +306,7 @@ void StaticLayer::incomingMap(const robot_nav_msgs::OccupancyGrid& new_map)
height_ = size_y_;
map_received_ = true;
has_updated_data_ = true;
layered_costmap_->notifyStaticMapChanged(getType());
}
else
{
@@ -373,6 +375,7 @@ void StaticLayer::incomingUpdate(const robot_map_msgs::OccupancyGridUpdate& upda
height_ = update.height;
}
has_updated_data_ = true;
layered_costmap_->notifyStaticMapChanged(getType());
}
}