Update KDL SegmentMap interface to optionally use shared pointers

The KDL Tree API optionally uses shared pointers on platforms where
the STL containers don't support incomplete types.
This commit is contained in:
Brian Jensen 2013-11-19 15:06:42 +01:00
parent 00ea5e9d11
commit 3df18f5ff7
1 changed files with 4 additions and 4 deletions

View File

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