robotology / assistive-rehab

Assistive and Rehabilitative Robotics
https://robotology.github.io/assistive-rehab/doc/mkdocs/site
BSD 3-Clause "New" or "Revised" License
20 stars 11 forks source link

Adjust skeleton poses due to filtered depth #234

Closed pattacini closed 5 years ago

pattacini commented 5 years ago

Once we have the skeletons retrieved from the filtered depth, we need to compensate for the incorrect depth by applying a kind of unwarping in order to adjust the skeleton pose.

pattacini commented 5 years ago

It came out that with the following parameters, the filtered depth gives us skeletons with the correct metrics:

[depth]
enable                      true
kernel-size                 10
iterations                  5
min-distance                0.5
max-distance                10.0
Skeletons with unfiltered depth:
no-filtering
Skeletons with filtered depth:
filtering

Thus, @vvasco could you please try out the options above within TUG experiments and report here any findings?

vvasco commented 5 years ago

With the following parameters:

[depth]
enable                      true
kernel-size                 4
iterations                  3
min-distance                0.5
max-distance                10.0

I obtained the following result:

ezgif com-optimize

The ankles look reasonably close to the lines when I stand on them. I checked the metric I use for line crossing and it works out with these parameters.

pattacini commented 5 years ago

Awesome! Let's go this way then ✨ Could you please put those parameters in master for the TUG?

vvasco commented 5 years ago

Sure!

pattacini commented 5 years ago

Soon afterward, please close this issue with a pointer to the commit hash.

vvasco commented 5 years ago

Done here c86e3b69e054939a6fa9b00498ded711acf04952