Merge pull request #60 from jensenb/patchedIndigo
Update KDL SegmentMap interface to optionally use shared pointers
This commit is contained in:
commit
7ed4ca8cd7
|
@ -46,13 +46,13 @@ using namespace urdf;
|
|||
|
||||
void printLink(const SegmentMap::const_iterator& link, const std::string& prefix)
|
||||
{
|
||||
cout << prefix << "- Segment " << link->second.segment.getName() << " has " << link->second.children.size() << " children" << endl;
|
||||
for (unsigned int i=0; i<link->second.children.size(); i++)
|
||||
printLink(link->second.children[i], prefix + " ");
|
||||
cout << prefix << "- Segment " << GetTreeElementSegment(link->second).getName() << " has "
|
||||
<< GetTreeElementChildren(link->second).size() << " children" << endl;
|
||||
for (unsigned int i=0; i < GetTreeElementChildren(link->second).size(); i++)
|
||||
printLink(GetTreeElementChildren(link->second)[i], prefix + " ");
|
||||
}
|
||||
|
||||
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (argc < 2){
|
||||
|
|
Loading…
Reference in New Issue