henriksod/Fabrik2DArduino

solve fonction always return false

joeitu opened this issue · 3 comments

Hello,
I tried to call the solve fonction with reachable value. The joint update as expected but the fonction return 0.

int lengths[] = {77, 145, 70};
[...]
Fabrik2D fabrik2D(4, lengths); // This arm has 4 joints; one in the origin, the elbow, the wrist and the end effector.
[...]
bool solvable = fabrik2D.solve(150,150, 0, lengths);

Hi, try changing the tool angle to -45 * DEG_TO_RAD.

With the given tool angle at 0 radians, the solution may not exist for that position. Does it return true if you remove the tool angle argument?

Stale issue message

Closing the issue due to no activity, please try with the latest version and reopen if needed.