@Namespace(value="libfreenect2") @Properties(inherit=freenect2.class) public class Freenect2Device extends Pointer
/** Device control.
| Modifier and Type | Class and Description |
|---|---|
static class |
Freenect2Device.ColorCameraParams
Color camera calibration parameters.
|
static class |
Freenect2Device.Config
Configuration of depth processing.
|
static class |
Freenect2Device.IrCameraParams
IR camera intrinsic calibration parameters.
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Modifier and Type | Field and Description |
|---|---|
static int |
ProductId |
static int |
ProductIdPreview |
static int |
VendorId |
| Constructor and Description |
|---|
Freenect2Device(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
_close()
Shut down the device.
|
Freenect2Device.ColorCameraParams |
getColorCameraParams()
Get current color parameters.
|
BytePointer |
getFirmwareVersion() |
Freenect2Device.IrCameraParams |
getIrCameraParams()
Get current depth parameters.
|
BytePointer |
getSerialNumber() |
static int |
ProductId() |
static int |
ProductIdPreview() |
void |
setColorCameraParams(Freenect2Device.ColorCameraParams params)
Replace factory preset color camera parameters.
|
void |
setColorFrameListener(FrameListener rgb_frame_listener)
Provide your listener to receive color frames.
|
void |
setConfiguration(Freenect2Device.Config config)
Configure depth processing.
|
void |
setIrAndDepthFrameListener(FrameListener ir_frame_listener)
Provide your listener to receive IR and depth frames.
|
void |
setIrCameraParams(Freenect2Device.IrCameraParams params)
Replace factory preset depth camera parameters.
|
boolean |
start()
Start data processing with both RGB and depth streams.
|
boolean |
startStreams(boolean rgb,
boolean depth)
Start data processing with or without some streams.
|
boolean |
stop()
Stop data processing.
|
static int |
VendorId() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic static final int VendorId
public static final int ProductId
public static final int ProductIdPreview
public Freenect2Device(Pointer p)
Pointer(Pointer).@MemberGetter @Cast(value="const unsigned int") public static int VendorId()
@MemberGetter @Cast(value="const unsigned int") public static int ProductId()
@MemberGetter @Cast(value="const unsigned int") public static int ProductIdPreview()
@StdString public BytePointer getSerialNumber()
@StdString public BytePointer getFirmwareVersion()
@ByVal public Freenect2Device.ColorCameraParams getColorCameraParams()
@ByVal public Freenect2Device.IrCameraParams getIrCameraParams()
public void setColorCameraParams(@Const @ByRef Freenect2Device.ColorCameraParams params)
public void setIrCameraParams(@Const @ByRef Freenect2Device.IrCameraParams params)
public void setConfiguration(@Const @ByRef Freenect2Device.Config config)
public void setColorFrameListener(FrameListener rgb_frame_listener)
public void setIrAndDepthFrameListener(FrameListener ir_frame_listener)
@Cast(value="bool") public boolean start()
@Cast(value="bool") public boolean startStreams(@Cast(value="bool") boolean rgb, @Cast(value="bool") boolean depth)
rgb - Whether to enable RGB stream.depth - Whether to enable depth stream.@Cast(value="bool") public boolean stop()
Copyright © 2023. All rights reserved.