Open ReykCS opened 1 year ago
This seems to be tested in cpp. https://github.com/orocos/orocos_kinematics_dynamics/blob/41ca68680ac28170381e59fba42e7381db48d89f/orocos_kdl/tests/solvertest.cpp#L1216-L1224 Which would indicate the bug is in PyKDL.
@ReykCS could you maybe translate your code to cpp and test it. When that does work we have located the bug. Otherwise the issue is more complex.
P.S. what version of (Py)KDL are you using and how did you install it?
@ReykCS ping ;)
I am trying to calculate the necessary gravity compensation for a KDL chain in Python. However, everything i tried results in a zero vector and I don't know what i missed.
The code I was testing with is the following:
The first part where the chain is build comes from this medium post. The second part where the necessary torques should be calculated is from here
I already tried to modulate the chain, change the gravity vector for testing multiple directions and changing the joint angles. Nothing worked, the resulting grav matrix keeps being filled with zeros.
I expect to somehow get a vector that describes the necessary torques for all joints to compensate the exact force described in grav vector. However, i still don't get how I can include the weights of the joint and segments, maybe this is the key for solving this problem.