-
Notifications
You must be signed in to change notification settings - Fork 28
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
[HumanLogger] Logger silently failing to save file when attach device not found #342
Comments
The behaviour is similar to what observed in #338, I think the human-dynamics-estimation/devices/HumanLogger/HumanLogger.cpp Lines 355 to 367 in 11ad67f
|
Indeed the issue is due to #342 (comment). The problem resides in how With that said, I can think of the following 2 solutions:
|
A 3rd solution:
|
Can't we have a variable btw I don't know if there exist something already implemented, that we are not aware of, in the |
I am not sure about your problem, maybe its better to clarify f2f. In any case, please be aware that there exists two different interfaces, |
@RiccardoGrieco I think the problem is that |
Hi @randaz81, after discussing with @RiccardoGrieco the issue in general is probably due to the fact that we are using both the interfaces human-dynamics-estimation/devices/HumanLogger/HumanLogger.h Lines 26 to 27 in 58ad913
What was suggested by @RiccardoGrieco in #342 (comment) might probably be the solution. |
Anyhow, the solution of just removing |
This is being implemented by @RiccardoGrieco in https://github.com/robotology/human-dynamics-estimation/tree/remove-human_logger-single_wrapper, and I am currently testing it. Seems to work fine, I am just investigating a termination segfault |
I have tested the code in https://github.com/robotology/human-dynamics-estimation/tree/remove-human_logger-single_wrapper with all the cases combining The segmentation fault was no longer happening after I clean my local modification, but we should keep an eye open if we observe it again. @RiccardoGrieco feel free to open the PR with the fix |
PR #344 opened |
PR merged, @RiccardoGrieco @traversaro do you think we should do a release with this bugfix? |
If you find it useful, ok for me! |
I have drafted the new release (#345), meanwhile we can close this issue, thanks all! |
When a quantity is set to be saved, but the corresponding interface is not attached, the device runs but the data are not saved.
e.g. enabling
logHumanDynamics
but not attaching a IHumanDyanamics interfaceThe text was updated successfully, but these errors were encountered: