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

#include <CameraRealSense2.h>

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

Public Member Functions

 CameraRealSense2 (const std::string &deviceId="", float imageRate=0, const Transform &localTransform=Transform::getIdentity())
 
virtual bool getPose (double stamp, Transform &pose, cv::Mat &covariance)
 
virtual std::string getSerial () const
 
virtual bool init (const std::string &calibrationFolder=".", const std::string &cameraName="")
 
virtual bool isCalibrated () const
 
virtual bool odomProvided () const
 
void publishInterIMU (bool enabled)
 
void setDepthResolution (int width, int height, int fps=30)
 
void setDualMode (bool enabled, const Transform &extrinsics)
 
void setEmitterEnabled (bool enabled)
 
void setGlobalTimeSync (bool enabled)
 
void setImagesRectified (bool enabled)
 
void setIRFormat (bool enabled, bool useDepthInsteadOfRightImage)
 
void setJsonConfig (const std::string &json)
 
void setOdomProvided (bool enabled, bool imageStreamsDisabled=false, bool onlyLeftStream=false)
 
void setResolution (int width, int height, int fps=30)
 
virtual ~CameraRealSense2 ()
 
- Public Member Functions inherited from rtabmap::Camera
float getImageRate () const
 
const TransformgetLocalTransform () const
 
bool initFromFile (const std::string &calibrationPath)
 
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 ()
 

Protected Member Functions

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

Detailed Description

Definition at line 56 of file CameraRealSense2.h.

Constructor & Destructor Documentation

◆ CameraRealSense2()

rtabmap::CameraRealSense2::CameraRealSense2 ( const std::string deviceId = "",
float  imageRate = 0,
const Transform localTransform = Transform::getIdentity() 
)

Definition at line 55 of file CameraRealSense2.cpp.

◆ ~CameraRealSense2()

rtabmap::CameraRealSense2::~CameraRealSense2 ( )
virtual

Definition at line 89 of file CameraRealSense2.cpp.

Member Function Documentation

◆ available()

bool rtabmap::CameraRealSense2::available ( )
static

Definition at line 46 of file CameraRealSense2.cpp.

◆ captureImage()

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

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

Implements rtabmap::Camera.

Definition at line 1255 of file CameraRealSense2.cpp.

◆ getPose()

bool rtabmap::CameraRealSense2::getPose ( double  stamp,
Transform pose,
cv::Mat &  covariance 
)
virtual

Reimplemented from rtabmap::Camera.

Definition at line 1142 of file CameraRealSense2.cpp.

◆ getSerial()

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

Implements rtabmap::Camera.

Definition at line 1122 of file CameraRealSense2.cpp.

◆ init()

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

Implements rtabmap::Camera.

Definition at line 485 of file CameraRealSense2.cpp.

◆ isCalibrated()

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

Implements rtabmap::Camera.

Definition at line 1113 of file CameraRealSense2.cpp.

◆ odomProvided()

bool rtabmap::CameraRealSense2::odomProvided ( ) const
virtual

Reimplemented from rtabmap::Camera.

Definition at line 1133 of file CameraRealSense2.cpp.

◆ publishInterIMU()

void rtabmap::CameraRealSense2::publishInterIMU ( bool  enabled)

Definition at line 1205 of file CameraRealSense2.cpp.

◆ setDepthResolution()

void rtabmap::CameraRealSense2::setDepthResolution ( int  width,
int  height,
int  fps = 30 
)

Definition at line 1189 of file CameraRealSense2.cpp.

◆ setDualMode()

void rtabmap::CameraRealSense2::setDualMode ( bool  enabled,
const Transform extrinsics 
)

Dual mode (D400+T265 or L500+T265)

Parameters
enabledenable dual mode
extrinsicsthe extrinsics between T265 pose frame (middle of the camera) to D400/L500 main camera (without optical rotation).

Definition at line 1212 of file CameraRealSense2.cpp.

◆ setEmitterEnabled()

void rtabmap::CameraRealSense2::setEmitterEnabled ( bool  enabled)

Definition at line 1165 of file CameraRealSense2.cpp.

◆ setGlobalTimeSync()

void rtabmap::CameraRealSense2::setGlobalTimeSync ( bool  enabled)

Definition at line 1198 of file CameraRealSense2.cpp.

◆ setImagesRectified()

void rtabmap::CameraRealSense2::setImagesRectified ( bool  enabled)

Definition at line 1234 of file CameraRealSense2.cpp.

◆ setIRFormat()

void rtabmap::CameraRealSense2::setIRFormat ( bool  enabled,
bool  useDepthInsteadOfRightImage 
)

Definition at line 1172 of file CameraRealSense2.cpp.

◆ setJsonConfig()

void rtabmap::CameraRealSense2::setJsonConfig ( const std::string json)

Definition at line 1227 of file CameraRealSense2.cpp.

◆ setOdomProvided()

void rtabmap::CameraRealSense2::setOdomProvided ( bool  enabled,
bool  imageStreamsDisabled = false,
bool  onlyLeftStream = false 
)

Definition at line 1241 of file CameraRealSense2.cpp.

◆ setResolution()

void rtabmap::CameraRealSense2::setResolution ( int  width,
int  height,
int  fps = 30 
)

Definition at line 1180 of file CameraRealSense2.cpp.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:39:00