update file voxel_layer

This commit is contained in:
2025-11-15 17:36:52 +07:00
parent bd98bf4e08
commit 49a72383c8
23 changed files with 977 additions and 253 deletions

View File

@@ -19,7 +19,6 @@ namespace costmap_2d
void ObstacleLayer::onInitialize()
{
rolling_window_ = layered_costmap_->isRolling();
ObstacleLayer::matchSize();
current_ = true;
@@ -103,7 +102,7 @@ bool ObstacleLayer::getParams()
printf(
"Created an observation buffer for topic %s, global frame: %s, "
"expected update rate: %.2f, observation persistence: %.2f",
"expected update rate: %.2f, observation persistence: %.2f\n",
topic.c_str(), global_frame_.c_str(), expected_update_rate, observation_keep_time);
}
@@ -517,7 +516,7 @@ void ObstacleLayer::reset()
}
// Export factory function
static PluginCostmapLayerPtr create_obstacle_plugin() {
static PluginLayerPtr create_obstacle_plugin() {
return std::make_shared<ObstacleLayer>();
}