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

@@ -47,7 +47,7 @@ void InflationLayer::onInitialize()
getParams();
}
matchSize();
InflationLayer::matchSize();
}
bool InflationLayer::getParams()
@@ -350,12 +350,19 @@ void InflationLayer::setInflationParameters(double inflation_radius, double cost
}
}
void InflationLayer::handleImpl(const void* data,
const std::type_info& info,
const std::string& source)
{
printf("This function is not available!\n");
}
// Export factory function
static PluginLayerPtr create_inflation_plugin() {
return std::make_shared<InflationLayer>();
}
// Alias cho Boost.DLL (nếu muốn dùng boost::dll::import_alias)
BOOST_DLL_ALIAS(create_inflation_plugin, create_plugin_layer)
BOOST_DLL_ALIAS(create_inflation_plugin, create_plugin)
} // namespace costmap_2d