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

Segmentation fault with ForceEstimationMomentumBased #2

Open
MarcoMagriDev opened this issue Jan 15, 2024 · 0 comments
Open

Segmentation fault with ForceEstimationMomentumBased #2

MarcoMagriDev opened this issue Jan 15, 2024 · 0 comments

Comments

@MarcoMagriDev
Copy link

Hi,

After switching from ForceEstimation to ForceEstimationMomentumBased in one of my plugins xbot2-core crashes on start reporting segmentation fault.

After a bit of debugging the issue seems to be related with the call of getResiduals at https://github.com/ADVRHumanoids/estimation_utils/blob/master/src/payload/ForceEstimation.cpp#L241.
By simply adding res = _y; just before the above mentioned line the error disappear. This for sure is not the most elegant solution to the encountered problem but it works.

Have you ever had a similar problem with this class? Have you in mind a more elegant solution to solve the issue?

Thanks,
Marco

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

No branches or pull requests

1 participant