using urdf::ModelInterface in kdl_parser
This commit is contained in:
parent
1f5fa7d48d
commit
f3fb0f2b56
|
@ -39,8 +39,8 @@
|
|||
|
||||
#include <kdl/tree.hpp>
|
||||
#include <string>
|
||||
#include <urdf/model.h>
|
||||
|
||||
#include <urdf_model/model.h>
|
||||
#include <tinyxml.h>
|
||||
|
||||
namespace kdl_parser{
|
||||
|
||||
|
@ -77,7 +77,7 @@ bool treeFromXml(TiXmlDocument *xml_doc, KDL::Tree& tree);
|
|||
* \param tree The resulting KDL Tree
|
||||
* returns true on success, false on failure
|
||||
*/
|
||||
bool treeFromUrdfModel(const urdf::Model& robot_model, KDL::Tree& tree);
|
||||
bool treeFromUrdfModel(const urdf::ModelInterface& robot_model, KDL::Tree& tree);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -34,9 +34,10 @@
|
|||
|
||||
/* Author: Wim Meeussen */
|
||||
|
||||
#include "kdl_parser/kdl_parser.hpp"
|
||||
#include <kdl/chainfksolverpos_recursive.hpp>
|
||||
#include <kdl/frames_io.hpp>
|
||||
#include "kdl_parser/kdl_parser.hpp"
|
||||
#include <urdf/model.h>
|
||||
#include <iostream>
|
||||
|
||||
using namespace KDL;
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
/* Author: Wim Meeussen */
|
||||
|
||||
#include "kdl_parser/kdl_parser.hpp"
|
||||
#include <urdf/model.h>
|
||||
#include <kdl/frames_io.hpp>
|
||||
#include <ros/console.h>
|
||||
|
||||
|
@ -164,7 +165,7 @@ bool treeFromXml(TiXmlDocument *xml_doc, Tree& tree)
|
|||
}
|
||||
|
||||
|
||||
bool treeFromUrdfModel(const urdf::Model& robot_model, Tree& tree)
|
||||
bool treeFromUrdfModel(const urdf::ModelInterface& robot_model, Tree& tree)
|
||||
{
|
||||
tree = Tree(robot_model.getRoot()->name);
|
||||
|
||||
|
|
Loading…
Reference in New Issue