inertia properties are optional

This commit is contained in:
meeussen 2009-10-02 20:05:35 +00:00
parent b361fb786f
commit 6ddcc06fcb
1 changed files with 1 additions and 3 deletions

View File

@ -48,9 +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
<< " with mass: " << (*child)->inertial->mass
<< std::endl;
std::cout << "child(" << count++ << "): " << (*child)->name << std::endl;
// first grandchild
printTree(*child,level);
}