git clone https://github.com/papr/pupil-picoflexx.git picoflexx
- Download the PMD Royale SDK
- Unzip the coorect zip file for your operating system, e.g.
- Copy the contents from the
Pythonsub folder into
To verify that everything works as expected, run the example files:
cd ~/pupil_capture_settings/plugins/picoflexx python3 sample_camera_info.py
When starting Capture from bundle, you should see the following lines in your log file:
world - [INFO] plugin: Added: <class 'picoflexx.Picoflexx_Manager'> world - [INFO] plugin: Added: <class 'picoflexx.Picoflexx_Source'>
If the requirements where not installed correctly, you should see the following line:
world - [WARNING] plugin: Failed to load 'picoflexx'. Reason: '<reason>'
Compile roypycy extension
Note for Windows users: VS2017 or the VS2017 Build Tools will be required to compile the extension.
- Copy (or symlink) the Royale SDK
includefolder here, e.g.
ln -s /path/to/libroyale-18.104.22.168-LINUX-x86-64Bit/include .
python setup.py build_ext
If the extension was not compiled/setup correctly, you should see the following line:
world - [WARNING] picoflexx.backend: Pico Flexx backend requirements (roypycy) not installed properly
If you're getting
ImportError: cannot import name 'roypycy' even though the library was compiled, a common cause is the python version used to compile the extension differs from that used by Pupil Capture (Python 3.6).
- Connect your Pico Flexx to the computer
- Start Capture
- Select the
UVC Managermenu on the right
Pico Flexxfrom the selector
Activate Pico Flexx
You should see a color map of the camera's depth output.
- Run the backend usage steps above
- Enable the
Example Picoflexx Pluginin the
example.plugin.py file on how to access the depth data from the backend.