also print tree status when only one link in tree

This commit is contained in:
wim 2010-06-22 17:27:04 +00:00
parent 2602c7fc70
commit 95eba4fbf4
1 changed files with 1 additions and 2 deletions

View File

@ -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