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()); }