Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
rtabmap::CameraAREngine Class Reference

#include <CameraAREngine.h>

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

Public Member Functions

 CameraAREngine (void *env, void *context, void *activity, bool smoothing=false)
 
virtual void close ()
 
virtual std::string getSerial () const
 
virtual bool init (const std::string &calibrationFolder=".", const std::string &cameraName="")
 
virtual ~CameraAREngine ()
 
- Public Member Functions inherited from rtabmap::CameraMobile
void addEnvSensor (int type, float value)
 
 CameraMobile (bool smoothing=false)
 
const CameraModelgetCameraModel () const
 
const TransformgetDeviceTColorCamera () const
 
const TransformgetOriginOffset () const
 
virtual bool isCalibrated () const
 
void poseReceived (const Transform &pose)
 
void resetOrigin ()
 
void setData (const SensorData &data, const Transform &pose)
 
void setGPS (const GPS &gps)
 
virtual void setScreenRotationAndSize (ScreenRotation colorCameraToDisplayRotation, int width, int height)
 
void setSmoothing (bool enabled)
 
void spinOnce ()
 
virtual ~CameraMobile ()
 
- 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 ()
 
- Public Member Functions inherited from UThread
Handle getThreadHandle () const
 
unsigned long getThreadId () const
 
bool isCreating () const
 
bool isIdle () const
 
bool isKilled () const
 
bool isRunning () const
 
void join (bool killFirst=false)
 
void kill ()
 
void setAffinity (int cpu=0)
 
void setPriority (Priority priority)
 
void start ()
 
 UThread (Priority priority=kPNormal)
 
virtual ~UThread ()
 
- Public Member Functions inherited from UThreadC< void >
int Create (Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const
 
int Create (Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const
 
int Create (unsigned long &ThreadId, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const
 
int Create (unsigned long &ThreadId, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false) const
 
virtual ~UThreadC ()
 
virtual ~UThreadC ()
 
- Public Member Functions inherited from UEventsSender
 UEventsSender ()
 
virtual ~UEventsSender ()
 

Protected Member Functions

virtual SensorData captureImage (CameraInfo *info=0)
 
virtual void capturePoseOnly ()
 
- Protected Member Functions inherited from rtabmap::CameraMobile
virtual void mainLoop ()
 
virtual void mainLoopBegin ()
 
- Protected Member Functions inherited from rtabmap::Camera
 Camera (float imageRate=0, const Transform &localTransform=CameraModel::opticalRotation())
 
int getNextSeqID ()
 
- Protected Member Functions inherited from UThreadC< void >
 UThreadC ()
 
 UThreadC ()
 
- Protected Member Functions inherited from UEventsSender
void post (UEvent *event, bool async=true) const
 

Private Member Functions

rtabmap::Transform getPoseAtTimestamp (double timestamp)
 

Private Attributes

void * activity_
 
HwArCameraIntrinsics * arCameraIntrinsics_ = nullptr
 
HwArConfig * arConfig_ = nullptr
 
HwArFrame * arFrame_ = nullptr
 
bool arInstallRequested_
 
HwArPose * arPose_ = nullptr
 
HwArSession * arSession_ = nullptr
 
UMutex arSessionMutex_
 
void * context_
 
void * env_
 
GLuint textureId_
 

Additional Inherited Members

- Public Types inherited from UThread
enum  Priority {
  kPLow, kPBelowNormal, kPNormal, kPAboveNormal,
  kPRealTime
}
 
- Public Types inherited from UThreadC< void >
typedef THREAD_HANDLE Handle
 
typedef THREAD_HANDLE Handle
 
typedef void(* Handler) ()
 
typedef void(* Handler) ()
 
- Static Public Member Functions inherited from UThread
static unsigned long currentThreadId ()
 
- Static Public Member Functions inherited from UThreadC< void >
static int Create (const Handler &Function, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false)
 
static int Create (const Handler &Function, Handle *const &H=0, const bool &CreateDetached=false, const unsigned int &StackSize=0, const bool &CancelEnable=false, const bool &CancelAsync=false)
 
static int Detach (Handle H)
 
static int Detach (const Handle &H)
 
static int Join (const Handle &H)
 
static int Join (Handle H)
 
static int Kill (Handle H)
 
static int Kill (const Handle &H)
 
- Static Public Attributes inherited from rtabmap::CameraMobile
static const float bilateralFilteringSigmaR = 0.075f
 
static const float bilateralFilteringSigmaS = 2.0f
 
static const rtabmap::Transform opticalRotation
 
static const rtabmap::Transform opticalRotationInv
 
- Static Protected Member Functions inherited from UThreadC< void >
static void Exit ()
 
static void Exit ()
 
static Handle Self ()
 
static int Self ()
 
static void TestCancel ()
 
static void TestCancel ()
 
- Protected Attributes inherited from rtabmap::CameraMobile
Transform deviceTColorCamera_
 
CameraModel model_
 
UTimer spinOnceFrameRateTimer_
 
double spinOncePreviousStamp_
 

Detailed Description

Definition at line 46 of file CameraAREngine.h.

Constructor & Destructor Documentation

rtabmap::CameraAREngine::CameraAREngine ( void *  env,
void *  context,
void *  activity,
bool  smoothing = false 
)

Definition at line 43 of file CameraAREngine.cpp.

rtabmap::CameraAREngine::~CameraAREngine ( )
virtual

Definition at line 53 of file CameraAREngine.cpp.

Member Function Documentation

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

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

Reimplemented from rtabmap::CameraMobile.

Definition at line 172 of file CameraAREngine.cpp.

void rtabmap::CameraAREngine::capturePoseOnly ( )
protectedvirtual

Reimplemented from rtabmap::CameraMobile.

Definition at line 309 of file CameraAREngine.cpp.

void rtabmap::CameraAREngine::close ( )
virtual

Reimplemented from rtabmap::CameraMobile.

Definition at line 136 of file CameraAREngine.cpp.

rtabmap::Transform rtabmap::CameraAREngine::getPoseAtTimestamp ( double  timestamp)
private
std::string rtabmap::CameraAREngine::getSerial ( ) const
virtual

Reimplemented from rtabmap::CameraMobile.

Definition at line 60 of file CameraAREngine.cpp.

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

Sets the behavior of ArSession_update(). See ::ArUpdateMode for available options.

Reimplemented from rtabmap::CameraMobile.

Definition at line 65 of file CameraAREngine.cpp.

Member Data Documentation

void* rtabmap::CameraAREngine::activity_
private

Definition at line 65 of file CameraAREngine.h.

HwArCameraIntrinsics* rtabmap::CameraAREngine::arCameraIntrinsics_ = nullptr
private

Definition at line 69 of file CameraAREngine.h.

HwArConfig* rtabmap::CameraAREngine::arConfig_ = nullptr
private

Definition at line 67 of file CameraAREngine.h.

HwArFrame* rtabmap::CameraAREngine::arFrame_ = nullptr
private

Definition at line 68 of file CameraAREngine.h.

bool rtabmap::CameraAREngine::arInstallRequested_
private

Definition at line 71 of file CameraAREngine.h.

HwArPose* rtabmap::CameraAREngine::arPose_ = nullptr
private

Definition at line 70 of file CameraAREngine.h.

HwArSession* rtabmap::CameraAREngine::arSession_ = nullptr
private

Definition at line 66 of file CameraAREngine.h.

UMutex rtabmap::CameraAREngine::arSessionMutex_
private

Definition at line 73 of file CameraAREngine.h.

void* rtabmap::CameraAREngine::context_
private

Definition at line 64 of file CameraAREngine.h.

void* rtabmap::CameraAREngine::env_
private

Definition at line 63 of file CameraAREngine.h.

GLuint rtabmap::CameraAREngine::textureId_
private

Definition at line 72 of file CameraAREngine.h.


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