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:
@@ -84,7 +84,7 @@ void DirectionalLayer::onInitialize()
|
||||
{
|
||||
throw std::runtime_error("DirectionalLayer " + name_ + ": cannot open the default file " + filename);
|
||||
}
|
||||
if (!std::isfinite(max_deviation_deg) || max_deviation_deg <= 0.0 || max_deviation_deg >= 180.0)
|
||||
if (!std::isfinite(max_deviation_deg) || max_deviation_deg < 0.0 || max_deviation_deg >= 180.0)
|
||||
throw std::runtime_error("DirectionalLayer " + name_ + ": max_deviation_deg must be finite and in (0, 180)");
|
||||
if (max_deviation_deg < 22.5)
|
||||
robot::log_warning("DirectionalLayer %s: max_deviation_deg < 22.5 may leave SBPL without a path", name_.c_str());
|
||||
@@ -121,6 +121,7 @@ void DirectionalLayer::publishLocked(DirectionFieldState state, std::shared_ptr<
|
||||
if (debug_state_)
|
||||
robot::log_info("[debug] DirectionalLayer %s: %s generation=%llu", name_.c_str(), stateName(state),
|
||||
static_cast<unsigned long long>(snapshot_.generation));
|
||||
layered_costmap_->notifyDirectionFieldChanged();
|
||||
}
|
||||
|
||||
DirectionFieldSnapshot DirectionalLayer::directionSnapshot() const
|
||||
|
||||
Reference in New Issue
Block a user