also print tree status when only one link in tree
This commit is contained in:
parent
2602c7fc70
commit
95eba4fbf4
|
@ -90,8 +90,7 @@ int main(int argc, char** argv)
|
|||
boost::shared_ptr<const Link> root_link=robot.getRoot();
|
||||
if (!root_link) return -1;
|
||||
|
||||
if (!root_link->child_links.empty())
|
||||
std::cout << "root Link: " << root_link->name << " has " << root_link->child_links.size() << " child(ren)" << std::endl;
|
||||
std::cout << "root Link: " << root_link->name << " has " << root_link->child_links.size() << " child(ren)" << std::endl;
|
||||
|
||||
|
||||
// print entire tree
|
||||
|
|
Loading…
Reference in New Issue