orocos / orocos_kinematics_dynamics

Orocos Kinematics and Dynamics C++ library
680 stars 407 forks source link

object has no attribute 'ChainJntToJacDotSolver' when I use Python #332

Closed Lejou closed 3 years ago

Lejou commented 3 years ago

ROS: Melodic IDE: Python

image

When I use PyKDL in Python, the strange error has appeared. Most classes, like ChainJntToJacSolver,ChainDynParam,ChainFkSolverPos_recursive, can be used correctly with atuo-complete in python. But when I want to use class of "ChainJntToJacDotSolver", it is said that:

Traceback (most recent call last): File "./dynamic_test.py", line 61, in jacDot_kdl = kdl.ChainJntToJacDotSolver(chain) AttributeError: 'module' object has no attribute 'ChainJntToJacDotSolver'

And I cannot use auto-complete to find this class when I use PyKDL.

Anyone knows the reason? Does this class not exist in PyKDL lib?

MatthijsBurgh commented 3 years ago

This one is not included in the 1.4 release. Similar to #327. So you will need to build from source if you want to use that solver in python.

Lejou commented 3 years ago

Appreciate!!