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:
parent
00ea5e9d11
commit
3df18f5ff7
|
@ -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