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 HumanStateProvider on Windows #259

Closed
lrapetti opened this issue Jul 26, 2021 · 10 comments
Closed

Fix HumanStateProvider on Windows #259

lrapetti opened this issue Jul 26, 2021 · 10 comments
Assignees

Comments

@lrapetti
Copy link
Member

We have tried to run the HumanStateProvider and the visualizer on a Windows machine, and we have noticed a strange behaviour.

Results are shown in the following video where we run the HSP+visualization on the same dataset and same configuration (Human.xml):

video6051136142948960770.mp4

There are two main problems:

  • (A) IK output seems to be wrong
  • (B) When we stop the data, we expect the IK output to be fixed, instead it keeps changing.

Some possibl source of problem could be:

  • Visualizer (it seems not since it wouldn't explain problem (B)). But we can easily double-check by running HSP on Windows and visualizer on another machine
  • Some non initialized matrices. In this case running in debug the problem shouldn't happen
  • IK parameters tuning
@lrapetti lrapetti added this to the AnDy - Iteration 67 milestone Jul 26, 2021
@lrapetti lrapetti self-assigned this Jul 26, 2021
@S-Dafarra
Copy link
Contributor

  • Visualizer (it seems not since it wouldn't explain problem (B)). But we can easily double-check by running HSP on Windows and visualizer on another machine

The reverse (Visualizer on Windows and HSP on another machine) could be interesting too.

@traversaro
Copy link
Member

Is this using vcpkg or conda dependencies? How is the locale set in the different machines?

@lrapetti
Copy link
Member Author

Is this using vcpkg or conda dependencies? How is the locale set in the different machines?

On top, I am on MacOS, dependencies installed via homebrew and human-state-provider installed via robotology-superbuild. Same behaviour is experienced on other machines on Ubuntu (apt+superbuild).

On the Windows machine (visualization on the bottom), dependencies are installed via vcpkg and human-state-provider via robotology-superbuild. (please @kouroshD correct me if I am wrong)

@traversaro
Copy link
Member

traversaro commented Jul 27, 2021

Same behaviour is experienced on other machines on Ubuntu (apt+superbuild).

The same behaviour described in this issue?

@lrapetti
Copy link
Member Author

Same behaviour is experienced on other machines on Ubuntu (apt+superbuild).

The same behaviour described in this issue?

No, on Ubuntu we have the same behaviour that we experience on MacOS.
The problem appears to be only on Windows.

@traversaro
Copy link
Member

If the functionality is part of a released version of human-dynamics-estimation, a quick check you can do without recompiling the world is to just install human-dynamics-estimation via conda binaries on Windows:

mamba create -n hde-env
mamba activate hde-env
mamba install -c conda-forge -c robotology human-dynamics-estimation
# Make sure that all environment variables are properly set
mamba deactivate hde-env
mamba activate hde-env

If you are already in machine where the robotology-superbuild with vcpkg is installed, make sure that you clean the enviornment from any globally set env variables, using the appropriate powershell scripts.

@kouroshD
Copy link
Contributor

How is the locale set in the different machines?

@traversaro what do you mean by locale here? Is it related to https://docs.microsoft.com/en-us/windows/win32/intl/locales-and-languages ?

@traversaro
Copy link
Member

How is the locale set in the different machines?

@traversaro what do you mean by locale here? Is it related to https://docs.microsoft.com/en-us/windows/win32/intl/locales-and-languages ?

Yes, kind of. I asked that as there are a lot of bugs related to the use of functions that convert string to floating point numbers (and back and forth). See robotology/idyntree#288 . See https://serverfault.com/questions/173630/how-to-get-system-locale-in-windows-7-cmd for how to get it.

@lrapetti
Copy link
Member Author

  • But we can easily double-check by running HSP on Windows and visualizer on another machine

We did this test and visualization still seems to be wrong, so we can exclude it is a problem of the visualizer.
We also noticed that the human-state-provider on Windows, from time to time was starting printing the warning for velocity out of the limit, with huge powers.

@lrapetti
Copy link
Member Author

This problem has not been reported for a while, and I know that the HumanStateProvider was running on windows on @LorenzoFiori and @AntonellaTatarelli laptop.

I will close this issue, we will re-open it in case we experience the same problem again.

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

5 participants