diff --git a/examples/Importers/ImportURDFDemo/UrdfParser.cpp b/examples/Importers/ImportURDFDemo/UrdfParser.cpp index bc9936f14..d6facb8f2 100644 --- a/examples/Importers/ImportURDFDemo/UrdfParser.cpp +++ b/examples/Importers/ImportURDFDemo/UrdfParser.cpp @@ -1589,7 +1589,15 @@ bool UrdfParser::initTreeAndRoot(UrdfModel& model, ErrorLogger* logger) if (model.m_rootLinks.size() > 1) { - logger->reportWarning("URDF file with multiple root links found"); + std::string multipleRootMessage = + "URDF file with multiple root links found:"; + + for (int i = 0; i < model.m_rootLinks.size(); i++) + { + multipleRootMessage += " "; + multipleRootMessage += model.m_rootLinks[i]->m_name.c_str(); + } + logger->reportWarning(multipleRootMessage.c_str()); } if (model.m_rootLinks.size() == 0)