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

Fix HumanLogger not working when logging just one quantity #338

Merged
merged 3 commits into from
Feb 16, 2023

Conversation

RiccardoGrieco
Copy link
Contributor

The periodic thread (e.g. the run() function) in human logger is started inside the attachAll method.

Turns out that, since the device implements both IWrapper and IMultipleWrapper, the first one is preferred when the list of devices to attach contains only one of them (see here).

In such case, only the attach() method belonging to IWrapper is called.
In our case, this happens when using the logging of only one between the kinematics and dynamics data.

This PR is to solve this issue.

@RiccardoGrieco RiccardoGrieco self-assigned this Feb 15, 2023
@RiccardoGrieco
Copy link
Contributor Author

cc @claudia-lat

Copy link
Member

@lrapetti lrapetti left a comment

Choose a reason for hiding this comment

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

Thanks @RiccardoGrieco, for me we can proceed merging.

@RiccardoGrieco
Copy link
Contributor Author

Thanks @lrapetti, merging.

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