Closed pattacini closed 8 years ago
@barbalberto fixed this via 2d5ecd0
The error was that inverse kinematic was computed (and therefore command sent to the robot) even if setPositions was called with number of joints 0. Commit fixed this behaviour also for positionMove and relativeMove.
Hi @barbalberto
I and @randaz81 spotted today a very strange interaction among motor interfaces for multi-joints control.
The following code used by the reaching controller
sends references to the following devices:
torso_tripod
torso
(just theyaw
)[left|right]_arm
(only the first 5 joints)[left|right]_wrist_tripod
In this configuration all the joints but those of the
wrist_tripod
reach their set-points. Instead, the latter joints remain stuck to supposedly hard-coded values.By contrast, if we rely on the modified snippet below, where basically we replace the multi-joints control with subsequent single-joint calls, everything works as expected: