Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.introlab.rtabmap.ARCoreSharedCamera Class Reference

Public Member Functions

 ARCoreSharedCamera (RTABMapActivity c)
 
void close ()
 
ArrayList< String > getResolutions (Context context, String cameraId, int imageFormat)
 
void initCamera (Context context, String cameraId, int index)
 
boolean isDepthSupported ()
 
boolean openCamera ()
 
void updateGL () throws CameraNotAvailableException
 

Public Attributes

TOF_ImageReader mTOFImageReader = new TOF_ImageReader()
 
GLSurfaceView surfaceView
 

Static Public Attributes

static final String TAG = ARCoreSharedCamera.class.getSimpleName()
 

Private Member Functions

void createCameraPreviewSession ()
 
void resumeARCore ()
 
void setRepeatingCaptureRequest ()
 
void startBackgroundThread ()
 
void stopBackgroundThread ()
 

Private Attributes

Handler backgroundHandler
 
HandlerThread backgroundThread
 
CameraDevice cameraDevice
 
final CameraDevice.StateCallback cameraDeviceCallback
 
String cameraId
 
CameraManager cameraManager
 
int cameraTextureId = -1
 
CameraCaptureSession captureSession
 
final CameraCaptureSession.CaptureCallback captureSessionCallback
 
long mPreviousTime = 0
 
AtomicBoolean mReady = new AtomicBoolean(false)
 
boolean mTOFAvailable = false
 
CaptureRequest.Builder previewCaptureRequestBuilder
 
SharedCamera sharedCamera
 
Session sharedSession
 

Static Private Attributes

static final int DEPTH_HEIGHT = 180
 
static final int DEPTH_WIDTH = 240
 
static RTABMapActivity mActivity
 

Detailed Description

Definition at line 44 of file ARCoreSharedCamera.java.

Constructor & Destructor Documentation

com.introlab.rtabmap.ARCoreSharedCamera.ARCoreSharedCamera ( RTABMapActivity  c)
inline

Definition at line 50 of file ARCoreSharedCamera.java.

Member Function Documentation

void com.introlab.rtabmap.ARCoreSharedCamera.close ( )
inline

Definition at line 405 of file ARCoreSharedCamera.java.

void com.introlab.rtabmap.ARCoreSharedCamera.createCameraPreviewSession ( )
inlineprivate

Definition at line 239 of file ARCoreSharedCamera.java.

ArrayList<String> com.introlab.rtabmap.ARCoreSharedCamera.getResolutions ( Context  context,
String  cameraId,
int  imageFormat 
)
inline

Definition at line 548 of file ARCoreSharedCamera.java.

void com.introlab.rtabmap.ARCoreSharedCamera.initCamera ( Context  context,
String  cameraId,
int  index 
)
inline

Definition at line 566 of file ARCoreSharedCamera.java.

boolean com.introlab.rtabmap.ARCoreSharedCamera.isDepthSupported ( )
inline

Definition at line 96 of file ARCoreSharedCamera.java.

boolean com.introlab.rtabmap.ARCoreSharedCamera.openCamera ( )
inline

Definition at line 305 of file ARCoreSharedCamera.java.

void com.introlab.rtabmap.ARCoreSharedCamera.resumeARCore ( )
inlineprivate

Definition at line 206 of file ARCoreSharedCamera.java.

void com.introlab.rtabmap.ARCoreSharedCamera.setRepeatingCaptureRequest ( )
inlineprivate

Definition at line 229 of file ARCoreSharedCamera.java.

void com.introlab.rtabmap.ARCoreSharedCamera.startBackgroundThread ( )
inlineprivate

Definition at line 280 of file ARCoreSharedCamera.java.

void com.introlab.rtabmap.ARCoreSharedCamera.stopBackgroundThread ( )
inlineprivate

Definition at line 288 of file ARCoreSharedCamera.java.

void com.introlab.rtabmap.ARCoreSharedCamera.updateGL ( ) throws CameraNotAvailableException
inline

Definition at line 435 of file ARCoreSharedCamera.java.

Member Data Documentation

Handler com.introlab.rtabmap.ARCoreSharedCamera.backgroundHandler
private

Definition at line 77 of file ARCoreSharedCamera.java.

HandlerThread com.introlab.rtabmap.ARCoreSharedCamera.backgroundThread
private

Definition at line 75 of file ARCoreSharedCamera.java.

CameraDevice com.introlab.rtabmap.ARCoreSharedCamera.cameraDevice
private

Definition at line 72 of file ARCoreSharedCamera.java.

final CameraDevice.StateCallback com.introlab.rtabmap.ARCoreSharedCamera.cameraDeviceCallback
private
Initial value:
=
new CameraDevice.StateCallback() {
@Override
public void onOpened(@NonNull CameraDevice cameraDevice) {
Log.d(TAG, "Camera device ID " + cameraDevice.getId() + " opened.");
ARCoreSharedCamera.this.cameraDevice = cameraDevice;
}
@Override
public void onClosed(@NonNull CameraDevice cameraDevice) {
Log.d(TAG, "Camera device ID " + cameraDevice.getId() + " closed.");
ARCoreSharedCamera.this.cameraDevice = null;
}
@Override
public void onDisconnected(@NonNull CameraDevice cameraDevice) {
Log.w(TAG, "Camera device ID " + cameraDevice.getId() + " disconnected.");
cameraDevice.close();
ARCoreSharedCamera.this.cameraDevice = null;
}
@Override
public void onError(@NonNull CameraDevice cameraDevice, int error) {
Log.e(TAG, "Camera device ID " + cameraDevice.getId() + " error " + error);
cameraDevice.close();
ARCoreSharedCamera.this.cameraDevice = null;
}
}

Definition at line 99 of file ARCoreSharedCamera.java.

String com.introlab.rtabmap.ARCoreSharedCamera.cameraId
private

Definition at line 83 of file ARCoreSharedCamera.java.

CameraManager com.introlab.rtabmap.ARCoreSharedCamera.cameraManager
private

Definition at line 69 of file ARCoreSharedCamera.java.

int com.introlab.rtabmap.ARCoreSharedCamera.cameraTextureId = -1
private

Definition at line 90 of file ARCoreSharedCamera.java.

CameraCaptureSession com.introlab.rtabmap.ARCoreSharedCamera.captureSession
private

Definition at line 66 of file ARCoreSharedCamera.java.

final CameraCaptureSession.CaptureCallback com.introlab.rtabmap.ARCoreSharedCamera.captureSessionCallback
private

Definition at line 171 of file ARCoreSharedCamera.java.

final int com.introlab.rtabmap.ARCoreSharedCamera.DEPTH_HEIGHT = 180
staticprivate

Definition at line 57 of file ARCoreSharedCamera.java.

final int com.introlab.rtabmap.ARCoreSharedCamera.DEPTH_WIDTH = 240
staticprivate

Definition at line 56 of file ARCoreSharedCamera.java.

RTABMapActivity com.introlab.rtabmap.ARCoreSharedCamera.mActivity
staticprivate

Definition at line 49 of file ARCoreSharedCamera.java.

long com.introlab.rtabmap.ARCoreSharedCamera.mPreviousTime = 0
private

Definition at line 302 of file ARCoreSharedCamera.java.

AtomicBoolean com.introlab.rtabmap.ARCoreSharedCamera.mReady = new AtomicBoolean(false)
private

Definition at line 85 of file ARCoreSharedCamera.java.

boolean com.introlab.rtabmap.ARCoreSharedCamera.mTOFAvailable = false
private

Definition at line 94 of file ARCoreSharedCamera.java.

TOF_ImageReader com.introlab.rtabmap.ARCoreSharedCamera.mTOFImageReader = new TOF_ImageReader()

Definition at line 93 of file ARCoreSharedCamera.java.

CaptureRequest.Builder com.introlab.rtabmap.ARCoreSharedCamera.previewCaptureRequestBuilder
private

Definition at line 88 of file ARCoreSharedCamera.java.

SharedCamera com.introlab.rtabmap.ARCoreSharedCamera.sharedCamera
private

Definition at line 80 of file ARCoreSharedCamera.java.

Session com.introlab.rtabmap.ARCoreSharedCamera.sharedSession
private

Definition at line 63 of file ARCoreSharedCamera.java.

GLSurfaceView com.introlab.rtabmap.ARCoreSharedCamera.surfaceView

Definition at line 60 of file ARCoreSharedCamera.java.

final String com.introlab.rtabmap.ARCoreSharedCamera.TAG = ARCoreSharedCamera.class.getSimpleName()
static

Definition at line 46 of file ARCoreSharedCamera.java.


The documentation for this class was generated from the following file:


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Dec 14 2020 03:37:08