@Namespace(value="rs") @Properties(inherit=RealSense.class) public class device extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
device(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
disable_motion_tracking()
\brief Disables events polling
|
void |
disable_stream(int stream)
\brief Disables specific stream
|
void |
enable_motion_tracking(RealSense.MotionFunction motion_handler)
\brief Sets the callback for motion module event.
|
void |
enable_motion_tracking(RealSense.MotionFunction motion_handler,
RealSense.TimestampFunction timestamp_handler)
\brief Sets callback for motion module event.
|
void |
enable_stream(int stream,
int preset)
\brief Enables specific stream and requests properties using 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)
\brief Enables specific stream and requests specific properties
|
float |
get_depth_scale()
\brief Retrieves mapping between units of depth image and meters
|
extrinsics |
get_extrinsics(int from_stream,
int to_stream)
\brief Retrieves extrinsic transformation between viewpoints of two different streams
|
BytePointer |
get_firmware_version()
\brief Retrieves version of firmware currently installed on device
|
Pointer |
get_frame_data(int stream)
\brief Retrieves contents of latest frame on a stream
|
long |
get_frame_number(int stream)
\brief Retrieves frame number
|
double |
get_frame_timestamp(int stream)
\brief Retrieves time at which the latest frame on a stream was captured
|
BytePointer |
get_info(int info)
\brief Retrieves camera-specific information such as versions of various components
|
extrinsics |
get_motion_extrinsics_from(int from_stream)
\brief Retrieves extrinsic transformation between viewpoints of specific stream and motion module
|
motion_intrinsics |
get_motion_intrinsics()
\brief Retrieves intrinsic camera parameters for motion module
|
BytePointer |
get_name()
\brief Retrieves human-readable device model string
|
BytePointer |
get_option_description(int option)
\brief Retrieves 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,
DoublePointer min,
DoublePointer max,
DoublePointer step)
\brief Retrieves available range of values of supported option
|
void |
get_option_range(int option,
DoublePointer min,
DoublePointer max,
DoublePointer step,
DoublePointer def)
\brief Retrieves available range of values of supported option
|
double |
get_option(int option)
\brief Retrieves current value of single option
|
void |
get_options(int[] options,
long count,
double[] values) |
void |
get_options(IntBuffer options,
long count,
DoubleBuffer values) |
void |
get_options(IntPointer options,
long count,
DoublePointer values)
\brief Efficiently retrieves value of arbitrary number of options, using minimal hardware IO
|
BytePointer |
get_serial()
\brief Retrieves unique serial number of device
|
int |
get_stream_format(int stream)
\brief Retrieves pixel format for specific stream
|
int |
get_stream_framerate(int stream)
\brief Retrieves frame rate for specific stream
|
int |
get_stream_height(int stream)
\brief Retrieves height, in pixels, of a specific stream, equivalent to the height field from the stream's intrinsic
|
intrinsics |
get_stream_intrinsics(int stream)
\brief Retrieves intrinsic camera parameters for specific stream
|
int |
get_stream_mode_count(int stream)
\brief Determines number of streaming modes available for 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,
IntPointer width,
IntPointer height,
IntPointer format,
IntPointer framerate)
\brief Determines properties of specific streaming mode
|
int |
get_stream_width(int stream)
\brief Retrieves width, in pixels, of a specific stream, equivalent to the width field from the stream's intrinsic
|
BytePointer |
get_usb_port_id()
\brief Retrieves USB port number of device
|
int |
is_motion_tracking_active()
\brief Checks if data acquisition is active
|
boolean |
is_stream_enabled(int stream)
\brief Determines if specific stream is enabled
|
boolean |
is_streaming()
\brief Determines if device is currently streaming
|
boolean |
poll_for_frames()
\brief Checks if new frames are available, without blocking
|
void |
send_blob_to_device(int type,
Pointer data,
int size)
\brief Sends device-specific data to device
|
void |
set_frame_callback(int stream,
RealSense.FrameFunction frame_handler)
\brief Sets callback for frame arrival event.
|
void |
set_option(int option,
double value)
\brief Sets current value of single option
|
void |
set_options(int[] options,
long count,
double[] values) |
void |
set_options(IntBuffer options,
long count,
DoubleBuffer values) |
void |
set_options(IntPointer options,
long count,
DoublePointer values)
\brief Efficiently sets value of arbitrary number of options, using minimal hardware IO
|
void |
start() |
void |
start(byte source)
\brief Begins streaming on all enabled streams for this device
|
void |
stop() |
void |
stop(byte source)
\brief Ends streaming on all streams for this device
|
boolean |
supports_option(int option)
\brief Determines if device allows specific option to be queried and set
|
boolean |
supports(int capability)
\brief Determines device capabilities
|
void |
wait_for_frames()
\brief Blocks until new frames are available
|
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, zero
public device(Pointer p)
Pointer(Pointer)
.@Cast(value="const char*") public BytePointer get_name()
@Cast(value="const char*") public BytePointer get_serial()
@Cast(value="const char*") public BytePointer get_usb_port_id()
@Cast(value="const char*") public BytePointer get_firmware_version()
@Cast(value="const char*") public BytePointer get_info(@Cast(value="rs::camera_info") int info)
@ByVal public extrinsics get_extrinsics(@Cast(value="rs::stream") int from_stream, @Cast(value="rs::stream") int to_stream)
from_stream
- [in] Stream whose coordinate space to transform fromto_stream
- [in] Stream whose coordinate space to transform to@ByVal public extrinsics get_motion_extrinsics_from(@Cast(value="rs::stream") int from_stream)
from_stream
- [in] Stream whose coordinate space to transform frompublic float get_depth_scale()
@Cast(value="bool") public boolean supports_option(@Cast(value="rs::option") int option)
option
- [in] Option to checkpublic int get_stream_mode_count(@Cast(value="rs::stream") int stream)
stream
- [in] Stream whose modes will be enumeratedpublic void get_stream_mode(@Cast(value="rs::stream") int stream, int index, @ByRef IntPointer width, @ByRef IntPointer height, @Cast(value="rs::format*") @ByRef IntPointer format, @ByRef IntPointer framerate)
stream
- [in] Stream whose mode will be queriedindex
- [in] Zero-based index of streaming modewidth
- [out] Width of a frame image in pixelsheight
- [out] Height of a frame image in pixelsformat
- [out] Pixel format of a frame imageframerate
- [out] Number of frames that 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)
stream
- [in] Streamwidth
- [in] Desired width of frame image in pixels, or 0 if any width is acceptableheight
- [in] Desired height of frame image in pixels, or 0 if any height is acceptableformat
- [in] Pixel format of frame image, or ANY if any format is acceptableframerate
- [in] Number of frames that will be streamed per second, or 0 if any frame rate is acceptableoutput_buffer_type
- [in] 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)
stream
- [in] Stream to enablepreset
- [in] Preset to use to enable the streampublic void disable_stream(@Cast(value="rs::stream") int stream)
stream
- [in] Stream@Cast(value="bool") public boolean is_stream_enabled(@Cast(value="rs::stream") int stream)
stream
- [in] Stream to checkpublic int get_stream_width(@Cast(value="rs::stream") int stream)
stream
- [in] Streampublic int get_stream_height(@Cast(value="rs::stream") int stream)
stream
- [in] Stream@Cast(value="rs::format") public int get_stream_format(@Cast(value="rs::stream") int stream)
stream
- [in] Streampublic int get_stream_framerate(@Cast(value="rs::stream") int stream)
stream
- [in] Stream@ByVal public intrinsics get_stream_intrinsics(@Cast(value="rs::stream") int stream)
stream
- [in] Stream@ByVal public motion_intrinsics get_motion_intrinsics()
public void set_frame_callback(@Cast(value="rs::stream") int stream, @ByVal RealSense.FrameFunction frame_handler)
stream
- [in] Streamframe_handler
- [in] Frame callback to be invoked on every new framepublic void enable_motion_tracking(@ByVal RealSense.MotionFunction motion_handler, @ByVal RealSense.TimestampFunction timestamp_handler)
motion_handler
- [in] Frame callback to be invoke on every new motion eventtimestamp_handler
- [in] Frame callback to be invoke on every new timestamp event (can be left-out)public void enable_motion_tracking(@ByVal RealSense.MotionFunction motion_handler)
motion_handler
- [in] Frame callback to be invokes 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 DoublePointer min, @ByRef DoublePointer max, @ByRef DoublePointer step)
option
- [in] Optionmin
- [out] Minimum value that is acceptable for this optionmax
- [out] Maximum value that is acceptable for this optionstep
- [out] Granularity of options that 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 DoublePointer min, @ByRef DoublePointer max, @ByRef DoublePointer step, @ByRef DoublePointer def)
option
- [in] Optionmin
- [out] Minimum value that is acceptable for this optionmax
- [out] Maximum value that is acceptable for this optionstep
- [out] Granularity of options that accept discrete values, or zero if the option accepts continuous valuesdef
- [out] 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*") IntPointer options, @Cast(value="size_t") long count, DoublePointer values)
options
- [in] Array of options that should be queriedcount
- [in] Length of options and values arraysvalues
- [out] Array that receives 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*") IntPointer options, @Cast(value="size_t") long count, @Const DoublePointer values)
options
- [in] Array of options that should be setcount
- [in] Length of options and values arraysvalues
- [in] 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)
option
- [in] Option@Cast(value="const char*") public BytePointer get_option_description(@Cast(value="rs::option") int option)
option
- [in] Optionpublic void set_option(@Cast(value="rs::option") int option, double value)
option
- [in] Optionvalue
- [in] Option valuepublic void wait_for_frames()
@Cast(value="bool") public boolean poll_for_frames()
@Cast(value="bool") public boolean supports(@Cast(value="rs::capabilities") int capability)
capability
- [in] Capability to checkpublic double get_frame_timestamp(@Cast(value="rs::stream") int stream)
stream
- [in] Stream of interest@Cast(value="unsigned long long") public long get_frame_number(@Cast(value="rs::stream") int stream)
stream
- [in] Stream of interest@Const public Pointer get_frame_data(@Cast(value="rs::stream") int stream)
stream
- [in] Streampublic void send_blob_to_device(@Cast(value="rs::blob_type") int type, Pointer data, int size)
type
- [in] Type of raw data to send to the devicedata
- [in] Raw data pointer to sendsize
- [in] Size, in bytes of the raw data to sendCopyright © 2023. All rights reserved.