update output of urdf check
This commit is contained in:
parent
aa709de95e
commit
72ac4b3d8a
|
@ -48,7 +48,7 @@ void printTree(boost::shared_ptr<const Link> link,int level = 0)
|
|||
if (*child)
|
||||
{
|
||||
for(int j=0;j<level;j++) std::cout << " "; //indent
|
||||
std::cout << "child(" << count++ << "): " << (*child)->name << std::endl;
|
||||
std::cout << "child(" << (count++)+1 << "): " << (*child)->name << std::endl;
|
||||
// first grandchild
|
||||
printTree(*child,level);
|
||||
}
|
||||
|
@ -90,7 +90,6 @@ int main(int argc, char** argv)
|
|||
boost::shared_ptr<const Link> root_link=robot.getRoot();
|
||||
if (!root_link) return -1;
|
||||
|
||||
std::cout << "root Link: " << root_link->name << std::endl;
|
||||
if (!root_link->child_links.empty())
|
||||
std::cout << "root Link: " << root_link->name << " has " << root_link->child_links.size() << " children" << std::endl;
|
||||
|
||||
|
|
Loading…
Reference in New Issue