open-audiovisual
Search GitHub

sensor

Ultraleap Leap Motion Controller 2

Ultraleap Leap Motion Controller 2 is a sensor over USB. What OAV knows about it, each fact with the page it was read from, how to set it up, what goes wrong, and the code that reaches it.

Also called: Leap Motion Controller 2 · Leap Motion · Leap Motion Controller · LMC2 · Leap · hand tracking · 手部追蹤

  • hand-written record
  • not checked on a unit yet
Kind
sensor
Manufacturer
Ultraleap
Connections
USB
Licence
MIT
Verified
not checked on a unit yet

Facts

What Ultraleap Leap Motion Controller 2 is

Each value is read from the page in its row. What could not be read is under “To be confirmed”, not guessed.

FactValueSource
Field of view160° × 160°Ultraleap: products (Leap Motion Controller 2)
Tracking depth10 cm (4") to 110 cm (43")Ultraleap: products (Leap Motion Controller 2)
USBUSB 3.0 via a USB type C connectorUltraleap: products (Leap Motion Controller 2)
SystemsWindows, macOS, Android XR2Ultraleap: products (Leap Motion Controller 2)

Connect

How it plugs in and what it speaks

Connections

USB

Protocols

not in the record

Setup

Set it up

  1. Install Ultraleap Hand Tracking (Gemini 5.x) and plug the sensor in; "/Applications/Ultraleap Hand Tracking.app/Contents/bin/leapctl" devices should list it with Tracking: true. open-audiovisual: packages/leap README (setup on macOS, the bridge)
  2. Install the Xcode command line tools (clang): the bridge compiles its small C reader on first start. open-audiovisual: packages/leap README (setup on macOS, the bridge)
  3. Run the bridge, node packages/leap/bridge/leap-bridge.mjs, and check http://127.0.0.1:6437/health; install.sh keeps it running at login. open-audiovisual: packages/leap README (setup on macOS, the bridge)

Known problems

Use it

Ultraleap Leap Motion Controller 2 in your code

Paste it into a <script type="module"> on any page: it loads the packages from this site. It asks for nothing until you press the button it adds.

javascript
import { device } from 'https://openaudiovisual.com/packages/devices/index.js';
import { Signals } from 'https://openaudiovisual.com/packages/core/index.js';
import { LeapInput } from 'https://openaudiovisual.com/packages/leap/index.js';

const leap = await device('ultraleap-leap-motion-controller-2');   // Ultraleap Leap Motion Controller 2
console.log(leap.record.use.map((u) => u.package).join(' '));
// → @openav/leap
const signals = new Signals();
const button = document.body.appendChild(Object.assign(document.createElement('button'), { textContent: "Connect the Leap bridge" }));
button.onclick = () => new LeapInput({ signals }).connect();   // the bridge on this computer: see Setup

What reaches it

Files

Take it with you

The record (JSON, open-audiovisual/device@1): the facts with their sources, the setup steps, the problems and the code that reaches it. Other tools can read it with the JSON Schema.

Status

How sure this page is

Not checked on a unit yet: every value is as its source says. Only a person with the unit can change that.

To be confirmed

Sources

GitHub

Wrong data?

Every value on this page comes from one file in the repository. Open an issue that says which value and where you read the right one, or change the file in a pull request.

Next step

Where it goes next

The handbook chapter on the collection, and the package that drives Ultraleap Leap Motion Controller 2.