#include <CameraRGBD.h>
Public Types | |
enum | Type { kTypeColorDepth, kTypeIRDepth, kTypeIR } |
Public Member Functions | |
CameraOpenNI2 (const std::string &deviceId="", Type type=kTypeColorDepth, float imageRate=0, const Transform &localTransform=Transform::getIdentity()) | |
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 () |
Static Public Member Functions | |
static bool | available () |
static bool | exposureGainAvailable () |
Protected Member Functions | |
virtual SensorData | captureImage (CameraInfo *info=0) |
Definition at line 176 of file CameraRGBD.h.
Definition at line 183 of file CameraRGBD.h.
rtabmap::CameraOpenNI2::CameraOpenNI2 | ( | const std::string & | deviceId = "" , |
Type | type = kTypeColorDepth , |
||
float | imageRate = 0 , |
||
const Transform & | localTransform = Transform::getIdentity() |
||
) |
Definition at line 400 of file CameraRGBD.cpp.
rtabmap::CameraOpenNI2::~CameraOpenNI2 | ( | ) | [virtual] |
Definition at line 422 of file CameraRGBD.cpp.
bool rtabmap::CameraOpenNI2::available | ( | ) | [static] |
Definition at line 382 of file CameraRGBD.cpp.
SensorData rtabmap::CameraOpenNI2::captureImage | ( | CameraInfo * | info = 0 | ) | [protected, virtual] |
returned rgb and depth images should be already rectified if calibration was loaded
Implements rtabmap::Camera.
Definition at line 809 of file CameraRGBD.cpp.
bool rtabmap::CameraOpenNI2::exposureGainAvailable | ( | ) | [static] |
Definition at line 391 of file CameraRGBD.cpp.
std::string rtabmap::CameraOpenNI2::getSerial | ( | ) | const [virtual] |
Implements rtabmap::Camera.
Definition at line 798 of file CameraRGBD.cpp.
bool rtabmap::CameraOpenNI2::init | ( | const std::string & | calibrationFolder = "." , |
const std::string & | cameraName = "" |
||
) | [virtual] |
Implements rtabmap::Camera.
Definition at line 527 of file CameraRGBD.cpp.
bool rtabmap::CameraOpenNI2::isCalibrated | ( | ) | const [virtual] |
Implements rtabmap::Camera.
Definition at line 793 of file CameraRGBD.cpp.
bool rtabmap::CameraOpenNI2::setAutoExposure | ( | bool | enabled | ) |
Definition at line 451 of file CameraRGBD.cpp.
bool rtabmap::CameraOpenNI2::setAutoWhiteBalance | ( | bool | enabled | ) |
Definition at line 438 of file CameraRGBD.cpp.
bool rtabmap::CameraOpenNI2::setExposure | ( | int | value | ) |
Definition at line 464 of file CameraRGBD.cpp.
bool rtabmap::CameraOpenNI2::setGain | ( | int | value | ) |
Definition at line 481 of file CameraRGBD.cpp.
void rtabmap::CameraOpenNI2::setIRDepthShift | ( | int | horizontal, |
int | vertical | ||
) |
Definition at line 517 of file CameraRGBD.cpp.
bool rtabmap::CameraOpenNI2::setMirroring | ( | bool | enabled | ) |
Definition at line 498 of file CameraRGBD.cpp.
void rtabmap::CameraOpenNI2::setOpenNI2StampsAndIDsUsed | ( | bool | used | ) |
Definition at line 510 of file CameraRGBD.cpp.