Closed adhitir-magna closed 3 years ago
The treeFromParam
method returns a tuple, so you need:
import PyKDL as kdl
import kdl_parser_py.urdf as kdl_parser
base_link = 'base_link'
ee_link = 'tool0'
ok, tree = kdl_parser.treeFromParam('/robot_description')
chain = tree.getChain("base_link", "tool0")
In the future, please ask questions like this on https://answers.ros.org, which is our centralized place for questions and answers. Closing this issue.
Getting this attribute error.
Environment: Ubuntu 18.04 with ROS Melodic Robot: UR10e
Script: