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

[plugins][controlboard] Fix wrong feedback measurements for coupled joints #492

Merged
merged 4 commits into from
May 26, 2020

Conversation

xEnVrE
Copy link
Contributor

@xEnVrE xEnVrE commented May 23, 2020

Within this PR, several fixes for control modes in presence of coupled joints:

  • add a variable m_motVelocities alongside m_velocities: m_velocities contains the feedback in the coupled-joints space, while m_motVelocities have to be used instead to close the loop as it contains the measurements in the implemented-joint space
  • use m_motVelocities instead of m_velocities to close the loop
  • use m_motPositions instead of m_positions to close the loop

Note: for position and mixed control modes, a variable m_motPositions was already present but, in some places, m_positions was still used to close the loop.

Fixes #491

…m_velocities

m_velocities contains the feedback in the coupled-joints space, while m_motVelocities have to be used instead to close the loop as it contains the measurements in the implemented-joint space
…o close the loop in VOCAB_CM_POSITION(VOCAB_IM_COMPLIANT), VOCAB_CM_VELOCITY(VOCAB_IM_{STIFF, COMPLIANT}) and VOCAB_CM_MIXED(VOCAB_IM_COMPLIANT) modes
…close the loop in VOCAB_CM_POSITION(VOCAB_IM_COMPLIANT) and VOCAB_CM_MIXED(VOCAB_IM_{STIFF, COMPLIANT})

m_positions contains the feedback in the coupled-joints space, while m_motPositions has to be used instead to close the loop as it contains the measurements in the implemented-joint space
@CLAassistant
Copy link

CLAassistant commented May 23, 2020

CLA assistant check
All committers have signed the CLA.

CHANGELOG.md Outdated Show resolved Hide resolved
@traversaro
Copy link
Member

Thanks @xEnVrE, this seems great to me!
I would wait for some days to see if @randaz81 or @kouroshD has any comment on this, if they do not have any objection I think we can merge.

@xEnVrE xEnVrE force-pushed the fix/wrong_feedback_coupled_joints branch from 3e8b171 to c6da62c Compare May 24, 2020 10:57
@traversaro
Copy link
Member

Thanks @xEnVrE .

@traversaro traversaro merged commit 81f7dc1 into robotology:devel May 26, 2020
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.

None yet

3 participants