[plugins][controlboard] Fix wrong feedback measurements for coupled joints #492
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Within this PR, several fixes for control modes in presence of coupled joints:
m_motVelocities
alongsidem_velocities
:m_velocities
contains the feedback in the coupled-joints space, whilem_motVelocities
have to be used instead to close the loop as it contains the measurements in the implemented-joint spacem_motVelocities
instead ofm_velocities
to close the loopm_motPositions
instead ofm_positions
to close the loopNote: 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