Skip to content
This repository has been archived by the owner on Aug 3, 2020. It is now read-only.

Update KDL SegmentMap interface to optionally use shared pointers #60

Merged
merged 1 commit into from
Jul 21, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions kdl_parser/src/check_kdl_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down