Update UrdfParser.cpp
update warning to be more verbose
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user