Options
All
  • Public
  • Public/Protected
  • All
Menu

Provides context to communicate with Vision Node.

Usage

import { SkeletonController } from './brooxVisionNode.js';

SkeletonController

Parses MQTT events sent by Vision Node and keeps track of the skeletons.

// example
const skeletonController = new SkeletonController(width, height, () => {...);
const skeletons = blobsController.getSkeletons();

GestureHandler

Parses MQTT events sent by Vision Node and allows to handle the different gestures.

// example
const gestureHandler = new GestureHandler(500, 2);
gestureHandler.onPresence(() => console.log('Presence'));

KeyValue

Allows apps to persist json values associated to a project and a key.

// example
const user = {
firstName: 'John',
lastName: 'Doe'
};
const keyValue = new KeyValue();
keyValue.set('testApp', 'profile', user);
const profile = keyValue.get('testApp', 'profile');

MqttClient

MQTT client.

// example
const client = new MqttClient('localhost', 1884);
client.onMessage((message) => console.log(message));

Index

References

Re-exports KeyValue

Generated using TypeDoc