Skip to content

Expose LED to OpenNI driver #528

Open

Description

@eruffaldi

For some application we need to expose the LED to OpenNI. We'll use some available get/set property to exposing it, plus something for activating the motor driver since starting the Kinect

Activity

  1. eruffaldi commented on Oct 18, 2017

    @eruffaldi
    Author

    Usage e.g. in OpenNI2 SimpleRead

    float d;
    int sd = sizeof(d);
    rc = device.getProperty ( ONI_DEVICE_PROPERTY_PLAYBACK_SPEED, &d,&sd);
    printf("PLAYBACK SPEED reported %d\n",rc);
    if(rc == 0)
    {
    d = 1;
    sd = 4; // blinking red
    device.setProperty(ONI_DEVICE_PROPERTY_PLAYBACK_SPEED,&d,sd);
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions