Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regression after #662 #666

Merged
merged 1 commit into from
Sep 18, 2023
Merged

Conversation

xEnVrE
Copy link
Contributor

@xEnVrE xEnVrE commented Sep 18, 2023

Unfortunately, it seems that #662 introduced a regression in that some small but important math parts were removed.

Specifically, as the coupling laws provide results in terms of absolute angles w.r.t the palm while Gazebo operates in terms of relative angles, the following were part of the coupling handler before #662:

return evaluateCoupledJoint(q1, mParamsThumb) - q1;

return evaluateCoupledJointJacobian(q1, mParamsThumb) - 1;

The -q1 and -1, respectively, are essential to make everything work right.

This PR is restoring them in the right place after the modifications introduced by #662.

cc @Nicogene @traversaro

…oupledJointJacobian} to take into account that coupling formulae provides absolute angles w.r.t. the palm
@traversaro traversaro merged commit 483afa4 into robotology:devel Sep 18, 2023
@xEnVrE xEnVrE deleted the fix/coupling_handler branch September 18, 2023 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants