/tinyrigel

Tiny library for accessing images from Ultraleap's SIR 170

Primary LanguageRustThe UnlicenseUnlicense

tinyrigel

It's a tiny Rust library for retrieving Rigel images on Windows, Linux, and macOS. (And maybe iOS? And heck, how bad could Android be?)

Right now, the goal is just to get Rigel images. Maybe one day it'll make sense to apply a calibration to the image too, or maybe not!

It should also be relatively trivial to support an LMC as well as just the Rigel, since it's just an interleaved-frame interpretation of the same 8-bit grayscale pixel format.

  • Might also be interesting to make it easy to query and switch over more than one connected Leap device, but one thing at a time.

To test:

# --nocapture is used to allow tests to print to stdout, to e.g. list devices.
cargo test -- --nocapture

Per-Platform Notes

Windows backend

macOS (and iOS?) backend

Linux backend

More details to follow. Some scattered notes for now:

Licensing

The goal is to release this project into the public domain via Unlicense, however, it's unclear how feasible that is given licenses in the project's dependencies. To be reviewed:

  • windows-rs license: ???
  • objc license: MIT (is this effectively infectious?)
  • v4l2 license: ???