fix core dumped err when loadplugin
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user