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(server_openvr): Calculate velocities for skeleton-based controllers #2416

Merged
merged 4 commits into from
Sep 20, 2024

Conversation

shinyquagsire23
Copy link
Contributor

Calculates the hand skeleton velocity based on the controller's last sent m_pose; Adds an additional targetTimestampNs argument to the controller's onPoseUpdate, as well as an additional stored timestamp m_poseTargetTimestampNs for that pose to allow calculating the velocity of the controller. This calculation is only performed if controllerMotion is missing but the skeleton is present.

Fixes the waving exercise in Aperture Hand Lab, and probably throwing and other interactions in other titles.

alvr/server_openvr/cpp/alvr_server/Controller.cpp Outdated Show resolved Hide resolved
alvr/server_openvr/cpp/alvr_server/Controller.cpp Outdated Show resolved Hide resolved
Copy link
Member

@zmerp zmerp left a comment

Choose a reason for hiding this comment

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

Forgot about this

alvr/server_openvr/cpp/alvr_server/Controller.h Outdated Show resolved Hide resolved
@zmerp
Copy link
Member

zmerp commented Sep 20, 2024

All clear, thanks

@zmerp zmerp merged commit 1cbb133 into alvr-org:master Sep 20, 2024
8 checks passed
zmerp pushed a commit that referenced this pull request Sep 20, 2024
…rs (#2416)

* Calculate velocities for skeleton-based controllers

* format

* no chrono, no verbs

* hopefully last nits
@zmerp zmerp mentioned this pull request Sep 20, 2024
zmerp pushed a commit that referenced this pull request Sep 21, 2024
…rs (#2416)

* Calculate velocities for skeleton-based controllers

* format

* no chrono, no verbs

* hopefully last nits
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