Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error while using kdl parser

Hi, I am trying to use kdl_parser to parse my model in a tree. I have followed this tutorial and this is how my code looks like

 KDL::Tree my_tree;
 kdl_parser::treeFromFile("pr2.urdf", my_tree) ;

My urdf file is in src folder same as launch file. When i run y code I get following error

[ERROR] [1478057330.280260467]: Error document empty.
[ERROR] [1478057330.280322948]: Could not generate robot model

if i remove above chunk of code error disappears. I am not sure whats wrong here. would be thankful for help