@Namespace(value="rs")
public static class RealSense.device
extends org.bytedeco.javacpp.Pointer
| Constructor and Description |
|---|
device(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disable_motion_tracking()
disable events polling
|
void |
disable_stream(int stream)
disable a specific stream
|
void |
enable_motion_tracking(RealSense.MotionFunction motion_handler)
sets the callback for motion module event.
|
void |
enable_motion_tracking(RealSense.MotionFunction motion_handler,
RealSense.TimestampFunction timestamp_handler)
sets the callback for motion module event.
|
void |
enable_stream(int stream,
int preset)
enable a specific stream and request properties using a preset
|
void |
enable_stream(int stream,
int width,
int height,
int format,
int framerate) |
void |
enable_stream(int stream,
int width,
int height,
int format,
int framerate,
int output_buffer_type)
enable a specific stream and request specific properties
|
float |
get_depth_scale()
retrieve mapping between the units of the depth image and meters
|
RealSense.extrinsics |
get_extrinsics(int from_stream,
int to_stream)
retrieve extrinsic transformation between the viewpoints of two different streams
|
org.bytedeco.javacpp.BytePointer |
get_firmware_version()
retrieve the version of the firmware currently installed on the device
|
org.bytedeco.javacpp.Pointer |
get_frame_data(int stream)
retrieve the contents of the latest frame on a stream
|
long |
get_frame_number(int stream)
retrieve the frame number
|
double |
get_frame_timestamp(int stream)
retrieve the time at which the latest frame on a stream was captured
|
org.bytedeco.javacpp.BytePointer |
get_info(int info)
retrieve camera specific information like the versions of the various componnents
|
RealSense.extrinsics |
get_motion_extrinsics_from(int from_stream)
retrieve extrinsic transformation between the viewpoints of specific stream and the motion module
|
RealSense.motion_intrinsics |
get_motion_intrinsics()
retrieve intrinsic camera parameters for the motion module
|
org.bytedeco.javacpp.BytePointer |
get_name()
retrieve a human readable device model string
|
org.bytedeco.javacpp.BytePointer |
get_option_description(int option)
retrieve the device specific option description
|
void |
get_option_range(int option,
double[] min,
double[] max,
double[] step) |
void |
get_option_range(int option,
double[] min,
double[] max,
double[] step,
double[] def) |
void |
get_option_range(int option,
DoubleBuffer min,
DoubleBuffer max,
DoubleBuffer step) |
void |
get_option_range(int option,
DoubleBuffer min,
DoubleBuffer max,
DoubleBuffer step,
DoubleBuffer def) |
void |
get_option_range(int option,
org.bytedeco.javacpp.DoublePointer min,
org.bytedeco.javacpp.DoublePointer max,
org.bytedeco.javacpp.DoublePointer step)
retrieve the available range of values of a supported option
|
void |
get_option_range(int option,
org.bytedeco.javacpp.DoublePointer min,
org.bytedeco.javacpp.DoublePointer max,
org.bytedeco.javacpp.DoublePointer step,
org.bytedeco.javacpp.DoublePointer def)
retrieve the available range of values of a supported option
|
double |
get_option(int option)
retrieve the current value of a single option
|
void |
get_options(int[] options,
long count,
double[] values) |
void |
get_options(IntBuffer options,
long count,
DoubleBuffer values) |
void |
get_options(org.bytedeco.javacpp.IntPointer options,
long count,
org.bytedeco.javacpp.DoublePointer values)
efficiently retrieve the value of an arbitrary number of options, using minimal hardware IO
|
org.bytedeco.javacpp.BytePointer |
get_serial()
retrieve the unique serial number of the device
|
int |
get_stream_format(int stream)
retrieve the pixel format for a specific stream
|
int |
get_stream_framerate(int stream)
retrieve the framerate for a specific stream
|
int |
get_stream_height(int stream)
retrieve the height in pixels of a specific stream, equivalent to the height field from the stream's intrinsic
|
RealSense.intrinsics |
get_stream_intrinsics(int stream)
retrieve intrinsic camera parameters for a specific stream
|
int |
get_stream_mode_count(int stream)
determine the number of streaming modes available for a given stream
|
void |
get_stream_mode(int stream,
int index,
int[] width,
int[] height,
int[] format,
int[] framerate) |
void |
get_stream_mode(int stream,
int index,
IntBuffer width,
IntBuffer height,
IntBuffer format,
IntBuffer framerate) |
void |
get_stream_mode(int stream,
int index,
org.bytedeco.javacpp.IntPointer width,
org.bytedeco.javacpp.IntPointer height,
org.bytedeco.javacpp.IntPointer format,
org.bytedeco.javacpp.IntPointer framerate)
determine the properties of a specific streaming mode
|
int |
get_stream_width(int stream)
retrieve the width in pixels of a specific stream, equivalent to the width field from the stream's intrinsic
|
org.bytedeco.javacpp.BytePointer |
get_usb_port_id()
retrieve the USB port number of the device
|
int |
is_motion_tracking_active()
check if data acquisition is active
|
boolean |
is_stream_enabled(int stream)
determine if a specific stream is enabled
|
boolean |
is_streaming()
determine if the device is currently streaming
|
boolean |
poll_for_frames()
check if new frames are available, without blocking
|
void |
send_blob_to_device(int type,
org.bytedeco.javacpp.Pointer data,
int size)
send device specific data to the device
|
void |
set_frame_callback(int stream,
RealSense.FrameFunction frame_handler)
sets the callback for frame arrival event.
|
void |
set_option(int option,
double value)
set the current value of a single option
|
void |
set_options(int[] options,
long count,
double[] values) |
void |
set_options(IntBuffer options,
long count,
DoubleBuffer values) |
void |
set_options(org.bytedeco.javacpp.IntPointer options,
long count,
org.bytedeco.javacpp.DoublePointer values)
efficiently set the value of an arbitrary number of options, using minimal hardware IO
|
void |
start() |
void |
start(byte source)
begin streaming on all enabled streams for this device
|
void |
stop() |
void |
stop(byte source)
end streaming on all streams for this device
|
boolean |
supports_option(int option)
determine if the device allows a specific option to be queried and set
|
boolean |
supports(int capability)
determine device capabilities
|
void |
wait_for_frames()
block until new frames are available
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic device(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).@Cast(value="const char*") public org.bytedeco.javacpp.BytePointer get_name()
@Cast(value="const char*") public org.bytedeco.javacpp.BytePointer get_serial()
@Cast(value="const char*") public org.bytedeco.javacpp.BytePointer get_usb_port_id()
@Cast(value="const char*") public org.bytedeco.javacpp.BytePointer get_firmware_version()
@Cast(value="const char*")
public org.bytedeco.javacpp.BytePointer get_info(@Cast(value="rs::camera_info")
int info)
@ByVal public RealSense.extrinsics get_extrinsics(@Cast(value="rs::stream") int from_stream, @Cast(value="rs::stream") int to_stream)
[in] - from_stream stream whose coordinate space we will transform from[in] - to_stream stream whose coordinate space we will transform to@ByVal public RealSense.extrinsics get_motion_extrinsics_from(@Cast(value="rs::stream") int from_stream)
[in] - from_stream stream whose coordinate space we will transform frompublic float get_depth_scale()
@Cast(value="bool")
public boolean supports_option(@Cast(value="rs::option")
int option)
[in] - option the option to check for supportpublic int get_stream_mode_count(@Cast(value="rs::stream")
int stream)
[in] - stream the stream whose modes will be enumeratedpublic void get_stream_mode(@Cast(value="rs::stream")
int stream,
int index,
@ByRef
org.bytedeco.javacpp.IntPointer width,
@ByRef
org.bytedeco.javacpp.IntPointer height,
@Cast(value="rs::format*") @ByRef
org.bytedeco.javacpp.IntPointer format,
@ByRef
org.bytedeco.javacpp.IntPointer framerate)
[in] - stream the stream whose mode will be queried[in] - index the zero based index of the streaming mode[out] - width the width of a frame image in pixels[out] - height the height of a frame image in pixels[out] - format the pixel format of a frame image[out] - framerate the number of frames which will be streamed per secondpublic void get_stream_mode(@Cast(value="rs::stream")
int stream,
int index,
@ByRef
IntBuffer width,
@ByRef
IntBuffer height,
@Cast(value="rs::format*") @ByRef
IntBuffer format,
@ByRef
IntBuffer framerate)
public void get_stream_mode(@Cast(value="rs::stream")
int stream,
int index,
@ByRef
int[] width,
@ByRef
int[] height,
@Cast(value="rs::format*") @ByRef
int[] format,
@ByRef
int[] framerate)
public void enable_stream(@Cast(value="rs::stream")
int stream,
int width,
int height,
@Cast(value="rs::format")
int format,
int framerate,
@Cast(value="rs::output_buffer_format")
int output_buffer_type)
[in] - stream the stream to enable[in] - width the desired width of a frame image in pixels, or 0 if any width is acceptable[in] - height the desired height of a frame image in pixels, or 0 if any height is acceptable[in] - format the pixel format of a frame image, or ANY if any format is acceptable[in] - framerate the number of frames which will be streamed per second, or 0 if any framerate is acceptable[in] - output_buffer_type output buffer format (continous in memory / native with pitch)public void enable_stream(@Cast(value="rs::stream")
int stream,
int width,
int height,
@Cast(value="rs::format")
int format,
int framerate)
public void enable_stream(@Cast(value="rs::stream")
int stream,
@Cast(value="rs::preset")
int preset)
[in] - stream the stream to enable[in] - preset the preset to use to enable the streampublic void disable_stream(@Cast(value="rs::stream")
int stream)
[in] - stream the stream to disable@Cast(value="bool")
public boolean is_stream_enabled(@Cast(value="rs::stream")
int stream)
[in] - stream the stream to checkpublic int get_stream_width(@Cast(value="rs::stream")
int stream)
[in] - stream the stream whose width to retrievepublic int get_stream_height(@Cast(value="rs::stream")
int stream)
[in] - stream the stream whose height to retrieve@Cast(value="rs::format")
public int get_stream_format(@Cast(value="rs::stream")
int stream)
[in] - stream the stream whose format to retrievepublic int get_stream_framerate(@Cast(value="rs::stream")
int stream)
[in] - stream the stream whose framerate to retrieve@ByVal public RealSense.intrinsics get_stream_intrinsics(@Cast(value="rs::stream") int stream)
[in] - stream the stream whose parameters to retrieve@ByVal public RealSense.motion_intrinsics get_motion_intrinsics()
public void set_frame_callback(@Cast(value="rs::stream")
int stream,
@ByVal
RealSense.FrameFunction frame_handler)
[in] - stream the stream[in] - on_frame frame callback to be invoke on every new framepublic void enable_motion_tracking(@ByVal
RealSense.MotionFunction motion_handler,
@ByVal
RealSense.TimestampFunction timestamp_handler)
[in] - stream the stream[in] - motion_handler frame callback to be invoke on every new motion event[in] - timestamp_handler frame callback to be invoke on every new timestamp event (can be left-out)public void enable_motion_tracking(@ByVal
RealSense.MotionFunction motion_handler)
[in] - stream the stream[in] - motion_handler frame callback to be invoke on every new motion eventpublic void disable_motion_tracking()
public int is_motion_tracking_active()
public void start(@Cast(value="rs::source")
byte source)
public void start()
public void stop(@Cast(value="rs::source")
byte source)
public void stop()
@Cast(value="bool") public boolean is_streaming()
public void get_option_range(@Cast(value="rs::option")
int option,
@ByRef
org.bytedeco.javacpp.DoublePointer min,
@ByRef
org.bytedeco.javacpp.DoublePointer max,
@ByRef
org.bytedeco.javacpp.DoublePointer step)
[in] - option the option whose range should be queried[out] - min the minimum value which will be accepted for this option[out] - max the maximum value which will be accepted for this option[out] - step the granularity of options which accept discrete values, or zero if the option accepts continuous valuespublic void get_option_range(@Cast(value="rs::option")
int option,
@ByRef
DoubleBuffer min,
@ByRef
DoubleBuffer max,
@ByRef
DoubleBuffer step)
public void get_option_range(@Cast(value="rs::option")
int option,
@ByRef
double[] min,
@ByRef
double[] max,
@ByRef
double[] step)
public void get_option_range(@Cast(value="rs::option")
int option,
@ByRef
org.bytedeco.javacpp.DoublePointer min,
@ByRef
org.bytedeco.javacpp.DoublePointer max,
@ByRef
org.bytedeco.javacpp.DoublePointer step,
@ByRef
org.bytedeco.javacpp.DoublePointer def)
[in] - option the option whose range should be queried[out] - min the minimum value which will be accepted for this option[out] - max the maximum value which will be accepted for this option[out] - step the granularity of options which accept discrete values, or zero if the option accepts continuous values[out] - def the default value of the optionpublic void get_option_range(@Cast(value="rs::option")
int option,
@ByRef
DoubleBuffer min,
@ByRef
DoubleBuffer max,
@ByRef
DoubleBuffer step,
@ByRef
DoubleBuffer def)
public void get_option_range(@Cast(value="rs::option")
int option,
@ByRef
double[] min,
@ByRef
double[] max,
@ByRef
double[] step,
@ByRef
double[] def)
public void get_options(@Cast(value="const rs::option*")
org.bytedeco.javacpp.IntPointer options,
@Cast(value="size_t")
long count,
org.bytedeco.javacpp.DoublePointer values)
[in] - options the array of options which should be queried[in] - count the length of the options and values arrays[out] - values the array which will receive the values of the queried optionspublic void get_options(@Cast(value="const rs::option*")
IntBuffer options,
@Cast(value="size_t")
long count,
DoubleBuffer values)
public void get_options(@Cast(value="const rs::option*")
int[] options,
@Cast(value="size_t")
long count,
double[] values)
public void set_options(@Cast(value="const rs::option*")
org.bytedeco.javacpp.IntPointer options,
@Cast(value="size_t")
long count,
@Const
org.bytedeco.javacpp.DoublePointer values)
[in] - options the array of options which should be set[in] - count the length of the options and values arrays[in] - values the array of values to which the options should be setpublic void set_options(@Cast(value="const rs::option*")
IntBuffer options,
@Cast(value="size_t")
long count,
@Const
DoubleBuffer values)
public void set_options(@Cast(value="const rs::option*")
int[] options,
@Cast(value="size_t")
long count,
@Const
double[] values)
public double get_option(@Cast(value="rs::option")
int option)
[in] - option the option whose value should be retrieved@Cast(value="const char*")
public org.bytedeco.javacpp.BytePointer get_option_description(@Cast(value="rs::option")
int option)
[in] - option the option whose description should be retrievedpublic void set_option(@Cast(value="rs::option")
int option,
double value)
[in] - option the option whose value should be set[in] - value the value of the optionpublic void wait_for_frames()
@Cast(value="bool") public boolean poll_for_frames()
@Cast(value="bool")
public boolean supports(@Cast(value="rs::capabilities")
int capability)
[in] - capability the capability to check for supportpublic double get_frame_timestamp(@Cast(value="rs::stream")
int stream)
[in] - stream the stream whose latest frame we are interested in@Cast(value="unsigned long long")
public long get_frame_number(@Cast(value="rs::stream")
int stream)
[in] - stream the stream whose latest frame we are interested in@Const
public org.bytedeco.javacpp.Pointer get_frame_data(@Cast(value="rs::stream")
int stream)
[in] - stream the stream whose latest frame we are interested inpublic void send_blob_to_device(@Cast(value="rs::blob_type")
int type,
org.bytedeco.javacpp.Pointer data,
int size)
[in] - type describes the content of the memory buffer, how it will be interpreted by the device[in] - data raw data buffer to be sent to the device[in] - size size in bytes of the bufferCopyright © 2018. All rights reserved.