inertia properties are optional
This commit is contained in:
parent
b361fb786f
commit
6ddcc06fcb
|
@ -48,9 +48,7 @@ void printTree(boost::shared_ptr<const Link> link,int level = 0)
|
||||||
if (*child)
|
if (*child)
|
||||||
{
|
{
|
||||||
for(int j=0;j<level;j++) std::cout << " "; //indent
|
for(int j=0;j<level;j++) std::cout << " "; //indent
|
||||||
std::cout << "child(" << count++ << "): " << (*child)->name
|
std::cout << "child(" << count++ << "): " << (*child)->name << std::endl;
|
||||||
<< " with mass: " << (*child)->inertial->mass
|
|
||||||
<< std::endl;
|
|
||||||
// first grandchild
|
// first grandchild
|
||||||
printTree(*child,level);
|
printTree(*child,level);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue