Skip to content

iKinChain object and iCub synchronisation #581

Answered by pattacini
marco-monforte asked this question in Q&A
Discussion options

You must be logged in to vote

Did't go through all your code, but at first glance I would try out the following change to line 127:

-Vector full_chain = q0_torso;
+Vector full_chain = q0_torso;
+std::swap(full_chain[0], full_chain[2]);

Include #include <algorithm> to have std::swap available.

Essentially, the motor device streams out the torso joints in an order that does not correspond to the kinematic chain of iCub 2.x, which in turn does expect the pitch-roll-yaw sequence.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@pattacini
Comment options

@marco-monforte
Comment options

@pattacini
Comment options

Answer selected by marco-monforte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants