-
Notifications
You must be signed in to change notification settings - Fork 67
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 bug in init() of SimpleLeggedOdometry #698
Conversation
cc @traversaro |
Can you base the PR on the |
Done.
Yes, this has been verified. Should I add some details regarding this? |
Yes, if you have few lines about this it would be great! |
It would be also great if you could be a bit more verbose in the changelog. " Fix bug in init() of SimpleLeggedOdometry" is not really informative for the user. A similar phrase "Fix bug in init() of SimpleLeggedOdometry that used an incorrect initial world frame location if used with an additional frame of a link" is more informative without a lot of additional effort. |
that used an incorrect initial world frame location if used with an additional frame of a link
Updated the PR description. Feel free to edit or remove details, if you think they are not relevant.
Updated to your suggestion. Thank you for the suggestion! |
THis PR fixes the following,
link_H_frame
is computed by passing the link index instead of the frame index.idyntree/src/estimation/src/SimpleLeggedOdometry.cpp
Line 71 in ba43b00
This was fixed to use the frame index.
Experiment description for the Identification of the bug
A legged odometry experiment was done in Gazebo simulation using the
iCubGazeboV2_5
URDF model and the results were compared with ground truth measurements coming from Gazebo.The following steps were followed to set up and run SimpleLeggedOdometry,
l_sole
was used as an initial reference frame with the following transformation with worldl_sole
resulted in,while the expected was
With some investigation, it was identified that during initialization the
w_H_refframe
was wrongly calculated only up to the link associated with therefframe
and not upto therefframe
itself.Results
Before the fix suggested in this PR,
l_sole position z(m)
After the fix suggested in this PR,
l_sole position z(m)
It can be observed that the initial offset in the estimate has vanished.
Note the drift in the estimate is not relevant to the issue in hand. So it can be ignored for the scope of this PR.