Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
rtabmap::CameraOpenNI2 Class Reference

#include <CameraOpenNI2.h>

Inheritance diagram for rtabmap::CameraOpenNI2:
Inheritance graph
[legend]

Public Types

enum  Type { kTypeColorDepth, kTypeIRDepth, kTypeIR }
 

Public Member Functions

 CameraOpenNI2 (const std::string &deviceId="", Type type=kTypeColorDepth, float imageRate=0, const Transform &localTransform=CameraModel::opticalRotation())
 
virtual std::string getSerial () const
 
virtual bool init (const std::string &calibrationFolder=".", const std::string &cameraName="")
 
virtual bool isCalibrated () const
 
bool setAutoExposure (bool enabled)
 
bool setAutoWhiteBalance (bool enabled)
 
bool setExposure (int value)
 
bool setGain (int value)
 
void setIRDepthShift (int horizontal, int vertical)
 
bool setMirroring (bool enabled)
 
void setOpenNI2StampsAndIDsUsed (bool used)
 
virtual ~CameraOpenNI2 ()
 
- Public Member Functions inherited from rtabmap::Camera
float getImageRate () const
 
const TransformgetLocalTransform () const
 
bool initFromFile (const std::string &calibrationPath)
 
virtual bool odomProvided () const
 
void resetTimer ()
 
void setImageRate (float imageRate)
 
void setLocalTransform (const Transform &localTransform)
 
SensorData takeImage (CameraInfo *info=0)
 
virtual ~Camera ()
 

Static Public Member Functions

static bool available ()
 
static bool exposureGainAvailable ()
 

Protected Member Functions

virtual SensorData captureImage (CameraInfo *info=0)
 
- Protected Member Functions inherited from rtabmap::Camera
 Camera (float imageRate=0, const Transform &localTransform=CameraModel::opticalRotation())
 
int getNextSeqID ()
 

Detailed Description

Definition at line 44 of file CameraOpenNI2.h.

Member Enumeration Documentation

Enumerator
kTypeColorDepth 
kTypeIRDepth 
kTypeIR 

Definition at line 51 of file CameraOpenNI2.h.

Constructor & Destructor Documentation

rtabmap::CameraOpenNI2::CameraOpenNI2 ( const std::string &  deviceId = "",
Type  type = kTypeColorDepth,
float  imageRate = 0,
const Transform localTransform = CameraModel::opticalRotation() 
)

Definition at line 60 of file CameraOpenNI2.cpp.

rtabmap::CameraOpenNI2::~CameraOpenNI2 ( )
virtual

Definition at line 82 of file CameraOpenNI2.cpp.

Member Function Documentation

bool rtabmap::CameraOpenNI2::available ( )
static

Definition at line 42 of file CameraOpenNI2.cpp.

SensorData rtabmap::CameraOpenNI2::captureImage ( CameraInfo info = 0)
protectedvirtual

returned rgb and depth images should be already rectified if calibration was loaded

Implements rtabmap::Camera.

Definition at line 469 of file CameraOpenNI2.cpp.

bool rtabmap::CameraOpenNI2::exposureGainAvailable ( )
static

Definition at line 51 of file CameraOpenNI2.cpp.

std::string rtabmap::CameraOpenNI2::getSerial ( ) const
virtual

Implements rtabmap::Camera.

Definition at line 458 of file CameraOpenNI2.cpp.

bool rtabmap::CameraOpenNI2::init ( const std::string &  calibrationFolder = ".",
const std::string &  cameraName = "" 
)
virtual

Implements rtabmap::Camera.

Definition at line 187 of file CameraOpenNI2.cpp.

bool rtabmap::CameraOpenNI2::isCalibrated ( ) const
virtual

Implements rtabmap::Camera.

Definition at line 453 of file CameraOpenNI2.cpp.

bool rtabmap::CameraOpenNI2::setAutoExposure ( bool  enabled)

Definition at line 111 of file CameraOpenNI2.cpp.

bool rtabmap::CameraOpenNI2::setAutoWhiteBalance ( bool  enabled)

Definition at line 98 of file CameraOpenNI2.cpp.

bool rtabmap::CameraOpenNI2::setExposure ( int  value)

Definition at line 124 of file CameraOpenNI2.cpp.

bool rtabmap::CameraOpenNI2::setGain ( int  value)

Definition at line 141 of file CameraOpenNI2.cpp.

void rtabmap::CameraOpenNI2::setIRDepthShift ( int  horizontal,
int  vertical 
)

Definition at line 177 of file CameraOpenNI2.cpp.

bool rtabmap::CameraOpenNI2::setMirroring ( bool  enabled)

Definition at line 158 of file CameraOpenNI2.cpp.

void rtabmap::CameraOpenNI2::setOpenNI2StampsAndIDsUsed ( bool  used)

Definition at line 170 of file CameraOpenNI2.cpp.


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


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