mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-16 06:30:05 +00:00
Merge pull request #2133 from bulletphysics/erwincoumans-patch-5
Update UrdfParser.cpp
This commit is contained in:
commit
ba6c1d68bf
@ -1589,7 +1589,15 @@ bool UrdfParser::initTreeAndRoot(UrdfModel& model, ErrorLogger* logger)
|
|||||||
|
|
||||||
if (model.m_rootLinks.size() > 1)
|
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)
|
if (model.m_rootLinks.size() == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user