KinectDevice Class

Extends Object3D
Module: Devices

Kinect device object.

This object is used to connect nunuStudio to a Microsoft Kinect V1, it only works in Microsoft Windows.

The operation of the kinect object depends on a server program used to connect to kinect that sends the data to nunuStudio via WebSocket.

The server software is available inside the tools folder in the nunuStudio repository.

Constructor

KinectDevice

()

Methods

isConnected

() Boolean

Check if there is kinect connected.

Returns:

Boolean:

True if there is a kinect connected

setCameraMode

(
  • mode
)

Set kinect camera mode.

Parameters:

  • mode Boolean

    Camera mode

toJSON

()

Create JSON for object.

update

()

Update kinect device state.

Properties

camera

Blob

Image data sent by the kinnect camera.

connected

Boolean

Connected flag.

data

Object

Skeleton data sent by the kinnect.

dataTimeout

Number

Time until data is considered too obsolete to be usable.

debugModel

Boolean

Debug model flag.

Default: true

socket

Object

Websocket object used to connect to the data server.

Default: 127.0.0.1:8181

Attributes

COLOR

Number

Kinect camera color mode.

DATA_TIMEOUT

Number

Kinect default data timeout in seconds.

DEPTH

Number

Kinect camera depth mode.

JOINTS_NAME

Array

Kinect skeleton joint names in pairs.