Device control.
More...
#include <libfreenect2/libfreenect2.hpp>
virtual std::string getSerialNumber |
( |
| ) |
|
|
pure virtual |
virtual std::string getFirmwareVersion |
( |
| ) |
|
|
pure virtual |
Get current color parameters.
Kinect v2 includes factory preset values for these parameters. They are used in Registration.
Get current depth parameters.
Kinect v2 includes factory preset values for these parameters. They are used in depth image decoding, and Registration.
Replace factory preset color camera parameters.
We do not have a clear understanding of the meaning of the parameters right now. You probably want to leave it as it is.
Replace factory preset depth camera parameters.
This decides accuracy in depth images. You are recommended to provide calibrated values.
virtual void setConfiguration |
( |
const Config & |
config | ) |
|
|
pure virtual |
Configure depth processing.
virtual void setColorFrameListener |
( |
FrameListener * |
rgb_frame_listener | ) |
|
|
pure virtual |
Provide your listener to receive color frames.
virtual void setIrAndDepthFrameListener |
( |
FrameListener * |
ir_frame_listener | ) |
|
|
pure virtual |
Provide your listener to receive IR and depth frames.
Start data processing with both RGB and depth streams.
All above configuration must only be called before start() or after stop().
FrameListener will receive frames when the device is running.
- Returns
- true if ok, false if error.
virtual bool startStreams |
( |
bool |
rgb, |
|
|
bool |
depth |
|
) |
| |
|
pure virtual |
Start data processing with or without some streams.
FrameListener will receive enabled frames when the device is running.
- Parameters
-
rgb | Whether to enable RGB stream. |
depth | Whether to enable depth stream. |
- Returns
- true if ok, false if error.
Stop data processing.
- Returns
- true if ok, false if error.
Shut down the device.
- Returns
- true if ok, false if error.
const unsigned int VendorId = 0x045E |
|
static |
const unsigned int ProductId = 0x02D8 |
|
static |
const unsigned int ProductIdPreview = 0x02C4 |
|
static |