Merge pull request #2133 from bulletphysics/erwincoumans-patch-5

Update UrdfParser.cpp
This commit is contained in:
erwincoumans 2019-02-28 22:49:20 -08:00 committed by GitHub
commit ba6c1d68bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)