This repo contains mainly js project files, scripts and resources for LeapMotion and Sphero interaction.
- have nodejs already installed
- have npm ready and updated with
npm install -g npm
- install
npm install -g cylon
globally if not installed - install directly in project workspace
npm install cylon cylon-gpio cylon-i2c cylon-leapmotion
- run test_robot with
node test_robot.js
- have python 3.7 or later installed
- have pip installed and updated
py -m pip install --upgrade pip
- install globally or locally sphero and bleak packages with
pip install spherov2 Bleak
- run test_sphero.py
just a default helloworld.js
with cylon
js integration with leap motion tracking log in real time
js code that detects, obtains and returns user's hand position
expected output x,y,z coordinates
py integration of sphero with SpheroEduApi
expected output the sphero mini toy should turn on different led colors and weirdly move a bit.
For some reason, leap.js
is only working with the tracking software version of Orion V4.1.
The current plan is to implement the leapmotion input and sphero as output.
Leap python sdk is completely deprecated so js is our best shot.
Sphero has its own api to develop, despite this we need external development tools such as cylon or py pkgs.
After several attemps we still cannot install nor use cylon-sphero
package.
The last idea was to try using bb8 sphero instead of the mini one, with cylon.
changing node js version to the one 'compatible' with sphero does not work
still need to check if the leap2.js script works with the last version of ultraleap "Gemini"