From 3df18f5ff7b50922b6806dbadbab6ea6331aa0a8 Mon Sep 17 00:00:00 2001 From: Brian Jensen Date: Tue, 19 Nov 2013 15:06:42 +0100 Subject: [PATCH] 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. --- kdl_parser/src/check_kdl_parser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kdl_parser/src/check_kdl_parser.cpp b/kdl_parser/src/check_kdl_parser.cpp index 4d33480..1dd0a6d 100644 --- a/kdl_parser/src/check_kdl_parser.cpp +++ b/kdl_parser/src/check_kdl_parser.cpp @@ -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; isecond.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){