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

MotorEconders-consistency - retrieve the coupling matrix at runtime #60

Merged
merged 12 commits into from
Feb 21, 2022

Conversation

davidetome
Copy link
Contributor

This PR fixes the problem on the MotorEconders-consistency tests, due to the fact that the coupling matrix was retrieved from its own .ini files instead of the ones used by the robot.

Using the IRemoteVariable interface we access the kinematic_mj variable that stores the matrices for each group of joints (loaded from the XML files).
After re-formatting into a single matrix, the results of the test are now consistent.

Tested on the Left Leg

Old way (using matrices in separate .ini files)

Used Matrix

terminal-old

Plots

plot-old

New way (using matrices retrieved at runtime)

Used Matrix

terminal-new

Plots

plot-new

The other parts have been tested in terms of a retrieved matrix using the DEBUG mode on an ETH robot (run w/o the robot)

cc @pattacini @Uboldi80 @gsisinna

Copy link
Member

@pattacini pattacini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments @davidetome.
If we no longer use the ini files, I'd rather remove them from the repo and then clean up the cmake machinery.

src/motorEncoders-consistency/motorEncodersConsistency.cpp Outdated Show resolved Hide resolved
suites/encoders-icub.xml Outdated Show resolved Hide resolved
@davidetome davidetome changed the base branch from master to devel February 18, 2022 17:05
Copy link
Member

@pattacini pattacini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As agreed offline, @davidetome will get shot of the couple matrix param from within the ini file.

@davidetome
Copy link
Contributor Author

Some comments @davidetome. If we no longer use the ini files, I'd rather remove them from the remo and then clean up the cmake machinery.

as sad T2T w/ @pattacini ,unfortunately, there are still some params used in the .ini files; we should think to remove them in the future 👍🏻

cc @traversaro

@davidetome
Copy link
Contributor Author

@pattacini matrices removed from .ini files, tested 👍🏻

cc @traversaro

Copy link
Member

@pattacini pattacini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

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.

2 participants