1 package com.intel.realsense.librealsense;
3 import java.util.ArrayList;
6 public class Device extends LrsClass {
7 private List<Sensor>
_sensors =
new ArrayList<>();
12 for(
long h : sensorsHandles){
49 public <T extends Device>
T as(
Extension extension) {
51 case UPDATABLE:
return (
T)
new Updatable(mHandle);
54 case FW_LOGGER:
return (
T)
new FwLogger(mHandle);
56 throw new RuntimeException(
"this device is not extendable to " + extension.name());
80 private static native
void nRelease(
long handle);
byte[] serializePresetToJson()
String getInfo(CameraInfo info)
static native long[] nQuerySensors(long handle)
void loadPresetFromJson(byte[] data)
boolean is(Extension extension)
GLuint64 GLenum void * handle
static native byte[] nSerializePresetToJson(long handle)
GLfloat GLfloat GLfloat GLfloat h
::std_msgs::String_< std::allocator< void > > String
def info(name, value, persistent=False)
static native boolean nIsInAdvancedMode(long handle)
static native void nToggleAdvancedMode(long handle, boolean enable)
static native void nHardwareReset(long handle)
static native String nGetInfo(long handle, int info)
boolean isInAdvancedMode()
void toggleAdvancedMode(boolean enable)
static native boolean nIsDeviceExtendableTo(long handle, int extension)
static native void nRelease(long handle)
List< Sensor > querySensors()
static native void nLoadPresetFromJson(long handle, byte[] data)
static native boolean nSupportsInfo(long handle, int info)
boolean supportsInfo(CameraInfo info)