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

Commit

Permalink
stop using initXml internally
Browse files Browse the repository at this point in the history
  • Loading branch information
rotu committed May 18, 2020
1 parent bc1572e commit 36444ce
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions kdl_parser/src/kdl_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,9 @@ bool treeFromString(const std::string & xml, KDL::Tree & tree)

bool treeFromXml(TiXmlDocument * xml_doc, KDL::Tree & tree)
{
urdf::Model robot_model;
if (!robot_model.initXml(xml_doc)) {
fprintf(stderr, "Could not generate robot model\n");
return false;
}
return treeFromUrdfModel(robot_model, tree);
std::stringstream ss;
ss << *xml_doc;
return treeFromString(ss.str(), tree);
}


Expand Down

0 comments on commit 36444ce

Please sign in to comment.