Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Define KDL tree from URDF file outside ROS

I have a URDF file of my robot, I am trying to define KDL tree inside C++ something like following:

KDL::Tree my_tree;
if (!kdl_parser::treeFromFile("robot.urdf", my_tree)){
    std::cout << "Failed to construct kdl tree"<< std::endl;
    return false;

The above code works with ROS. However, in another project, which is not a ROS project, I need to construct this KDL tree. This computer doesn't have ROS and sadly the OS is Windows.

How to install kdl_parser without using ROS.

_PS: I do not want to install ROS on Windows for this task._