# Revision history [back]

### 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