-
Notifications
You must be signed in to change notification settings - Fork 7
Getting started
This tutorial builds upon the pyomyo Getting started tutorial, I recommend following it to play the Chrome Dino Game with the Myo first.
- Clone this repo and run
pip install -r requirements.txt
- Clone pyomyo locally, and use
pip uninstall pyomyo
thenpip install .
to install the developer version of pyomyo. - Install OpenGloves on Steam. OpenGloves overrides SteamVR inputs, so remember to disable it when you want to use your normal controllers.
- Opt into the Open Gloves Beta (Steam, Library, Open Gloves Properties, Enable beta)
- Open OpenGloves and change the Communication Method to NamedPipe, make sure to enable OpenGloves for the hand you want to control with the Myo. (If using the left, you may have to change the pipe in code from right to left.)
- Start SteamVR and a game with finger tracking support such as Half Life Alyx. Make sure Myo Connect is not open and your dongle is plugged in.
- Put your Myo on and let it warm up.
- Confirm OpenGloves is getting the data using
python opengloves_tester.py
which allows you control SteamVR hands using a GUI. - To try proportional grasp control run:
python predictor_grasp.py
which closes your hand depending on values from the Myo. - To try a finger classifier run:
python predictor_basic.py
.
Feel free to ask for further help in the Discord here.
For more info see the OpenGloves wiki.
The OpenGloves UI helps you manage your setup, you may wish to make a copy of the config.
The config file is dependent on where you have installed OpenGloves, for example:
D:\Games\SteamLibrary\steamapps\common\OpenGlove\resources\settings
To develop with OpenGlove, you may want to build it locally which may give you multiple copies of OpenGloves installed.
SteamVR will prefer the locally installed version.
In the openvr.paths file (C:\Users\<user>\AppData\Local\openvr\openvrpaths.vrpath
, see opengloves/building.md) index in the driver array matters, so it'll prefer smaller indexes if you have two of the same driver name.
Always check the SteamVR developer console. It will launch in a web browser and log any errors that OpenGloves throws.