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

Add vr controller #22

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

LouisFoucard
Copy link

@LouisFoucard LouisFoucard commented May 2, 2024

Adds a VR controller.
Works with any OpenVR compatible controller, tested with Valve Index knuckles. Quite low latency, I estimate it at under <50ms. This is possible in particular thanks to OpenVR's future position estimation, which here is set to 50ms. The 6d pose of the controller is obtained through OpenVR API, and the roll angle is used to control the wrist angle. The 3 joint angles of the base, shoulder and elbow are calculated through inverse kinematics. The main trigger of the Index controller is mapped to the gripper opening.

Pretty flexible, and cheaper than building the leader arm if you already own such controller.
Right now I set it up as separate scripts, but we could make the main script take in a flag for leader arm or vr control.
Really awesome project btw :)

vr_controller.mov

@MichaelRazum
Copy link

The video looks great. Would be interesting to know, which controller this is! Would try to test it as well 👍

@LouisFoucard
Copy link
Author

It's the valve index controller https://a.co/d/48Ga91D + valve lighthouse stations https://a.co/d/d3rA14l

@LouisFoucard
Copy link
Author

But should work with any OpenVR compatible controller

@MichaelrMentele
Copy link

This is really cool. I was just thinking about this! Excited to check it out once I can actually scan my servos :P

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.

3 participants