fix core dumped err when loadplugin

This commit is contained in:
2025-12-01 17:34:23 +07:00
parent 2439f2a71d
commit 11ff1baa79
34 changed files with 1177 additions and 760 deletions

View File

@@ -430,10 +430,10 @@ namespace costmap_2d
}
// Export factory function
static PluginLayerPtr create_directional_plugin() {
static std::shared_ptr<Layer> create_directional_plugin() {
return std::make_shared<DirectionalLayer>();
}
// Alias cho Boost.DLL (nếu muốn dùng boost::dll::import_alias)
BOOST_DLL_ALIAS(create_directional_plugin, create_plugin)
BOOST_DLL_ALIAS(create_directional_plugin, create_directional_layer)
}