From 4e13137b0564b1d8061b12803131d362c45be958 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Thu, 22 Sep 2022 18:42:04 +0200 Subject: [PATCH] Migrate boost::std_shared_ptr -> std::std_shared_ptr --- urdf/src/sensor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/urdf/src/sensor.cpp b/urdf/src/sensor.cpp index 0118814..ca6101b 100644 --- a/urdf/src/sensor.cpp +++ b/urdf/src/sensor.cpp @@ -37,7 +37,6 @@ #include "urdf/sensor.h" #include -#include #include #include @@ -110,7 +109,7 @@ ManagedSensorParserMap getSensorParsers(const std::vector &allowed) urdf::SensorParserSharedPtr parser; try { - parser = parserMap.loader->createInstance(classes[i]); + parser = parserMap.loader->createUniqueInstance(classes[i]); } catch(const pluginlib::PluginlibException& ex) { ROS_ERROR_STREAM("Failed to create sensor parser: " << classes[i] << "\n" << ex.what()); }