diff options
author | erwincoumans <erwin.coumans@gmail.com> | 2019-02-28 17:29:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-28 17:29:12 -0800 |
commit | 2ae6404d1e049a8e1ea30214b3f38401c3697a31 (patch) | |
tree | 81ee888283e5d14b4dbf275deaf1698bf2b2cf68 | |
parent | 208b38c51f987ccc424971642b199e7c0db75a33 (diff) | |
download | bullet3-erwincoumans-patch-5.tar.gz |
Update UrdfParser.cpperwincoumans-patch-5
update warning to be more verbose
-rw-r--r-- | examples/Importers/ImportURDFDemo/UrdfParser.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
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) |