Main MRPT website > C++ reference for MRPT 1.4.0
List of all members | Public Member Functions | Public Attributes
mrpt::detectors::CDetectable3D Class Reference

Detailed Description

Definition at line 89 of file CDetectableObject.h.

#include <mrpt/detectors/CDetectableObject.h>

Inheritance diagram for mrpt::detectors::CDetectable3D:
Inheritance graph

Public Member Functions

 CDetectable3D ()
 
 CDetectable3D (const CDetectable2DPtr &object2d)
 
 CDetectable3D (const CDetectable3D *d)
 Copy pointer content constructor. More...
 
double distanceTo (const CDetectable2D &d2)
 Compute distance between centers of two detectable 2D objects. More...
 
void setObservation (mrpt::obs::CObservationPtr newObs)
 

Public Attributes

float m_z
 Z coordinate of detected object. More...
 
float m_x
 
float m_y
 2D Coordinates of detected object More...
 
float m_height
 
float m_width
 Size of detected object. More...
 
std::string m_id
 Must be an unique id for each detectable object. More...
 
mrpt::obs::CObservationPtr obs
 Observation wich contain the deteted object. More...
 

Static Public Attributes

RTTI stuff <br>
static const mrpt::utils::TRuntimeClassId classCDetectableObject
 

Protected Member Functions

CSerializable virtual methods
void writeToStream (mrpt::utils::CStream &out, int *getVersion) const MRPT_OVERRIDE
 
void readFromStream (mrpt::utils::CStream &in, int version) MRPT_OVERRIDE
 

RTTI stuff <br>

typedef CDetectable3DPtr SmartPtr
 
static mrpt::utils::CLASSINIT _init_CDetectable3D
 
static mrpt::utils::TRuntimeClassId classCDetectable3D
 
static const mrpt::utils::TRuntimeClassIdclassinfo
 
static const mrpt::utils::TRuntimeClassId_GetBaseClass ()
 
virtual const mrpt::utils::TRuntimeClassIdGetRuntimeClass () const MRPT_OVERRIDE
 
virtual mrpt::utils::CObjectduplicate () const MRPT_OVERRIDE
 
static mrpt::utils::CObjectCreateObject ()
 
static CDetectable3DPtr Create ()
 

RTTI stuff <br>

static mrpt::utils::CLASSINIT _init_CDetectable2D
 
static mrpt::utils::TRuntimeClassId classCDetectable2D
 

Member Typedef Documentation

◆ SmartPtr

A typedef for the associated smart pointer

Definition at line 91 of file CDetectableObject.h.

Constructor & Destructor Documentation

◆ CDetectable3D() [1/3]

mrpt::detectors::CDetectable3D::CDetectable3D ( )
inline

Definition at line 95 of file CDetectableObject.h.

◆ CDetectable3D() [2/3]

mrpt::detectors::CDetectable3D::CDetectable3D ( const CDetectable2DPtr object2d)

◆ CDetectable3D() [3/3]

mrpt::detectors::CDetectable3D::CDetectable3D ( const CDetectable3D d)
inline

Copy pointer content constructor.

Definition at line 100 of file CDetectableObject.h.

Member Function Documentation

◆ _GetBaseClass()

static const mrpt::utils::TRuntimeClassId * mrpt::detectors::CDetectable3D::_GetBaseClass ( )
staticprotected

◆ Create()

static CDetectable3DPtr mrpt::detectors::CDetectable3D::Create ( )
static

◆ CreateObject()

static mrpt::utils::CObject * mrpt::detectors::CDetectable3D::CreateObject ( )
static

◆ distanceTo()

double mrpt::detectors::CDetectable2D::distanceTo ( const CDetectable2D d2)
inlineinherited

Compute distance between centers of two detectable 2D objects.

Returns
calculated distance.

Definition at line 72 of file CDetectableObject.h.

References mrpt::detectors::CDetectable2D::m_height, mrpt::detectors::CDetectable2D::m_width, mrpt::detectors::CDetectable2D::m_x, and mrpt::detectors::CDetectable2D::m_y.

◆ duplicate()

virtual mrpt::utils::CObject * mrpt::detectors::CDetectable3D::duplicate ( ) const
virtual

Reimplemented from mrpt::detectors::CDetectable2D.

◆ GetRuntimeClass()

virtual const mrpt::utils::TRuntimeClassId * mrpt::detectors::CDetectable3D::GetRuntimeClass ( ) const
virtual

Reimplemented from mrpt::detectors::CDetectable2D.

◆ readFromStream()

void mrpt::detectors::CDetectable3D::readFromStream ( mrpt::utils::CStream in,
int  version 
)
protected

◆ setObservation()

void mrpt::detectors::CDetectableObject::setObservation ( mrpt::obs::CObservationPtr  newObs)
inlineinherited

Definition at line 41 of file CDetectableObject.h.

◆ writeToStream()

void mrpt::detectors::CDetectable3D::writeToStream ( mrpt::utils::CStream out,
int *  getVersion 
) const
protected

Member Data Documentation

◆ _init_CDetectable2D

mrpt::utils::CLASSINIT mrpt::detectors::CDetectable2D::_init_CDetectable2D
staticprotectedinherited

Definition at line 51 of file CDetectableObject.h.

◆ _init_CDetectable3D

mrpt::utils::CLASSINIT mrpt::detectors::CDetectable3D::_init_CDetectable3D
staticprotected

Definition at line 91 of file CDetectableObject.h.

◆ classCDetectable2D

mrpt::utils::TRuntimeClassId mrpt::detectors::CDetectable2D::classCDetectable2D
staticinherited

Definition at line 51 of file CDetectableObject.h.

◆ classCDetectable3D

mrpt::utils::TRuntimeClassId mrpt::detectors::CDetectable3D::classCDetectable3D
static

Definition at line 91 of file CDetectableObject.h.

◆ classCDetectableObject

const mrpt::utils::TRuntimeClassId mrpt::detectors::CDetectableObject::classCDetectableObject
staticinherited

Definition at line 33 of file CDetectableObject.h.

◆ classinfo

const mrpt::utils::TRuntimeClassId* mrpt::detectors::CDetectable3D::classinfo
static

Definition at line 91 of file CDetectableObject.h.

◆ m_height

float mrpt::detectors::CDetectable2D::m_height
inherited

Definition at line 56 of file CDetectableObject.h.

Referenced by mrpt::detectors::CDetectable2D::distanceTo().

◆ m_id

std::string mrpt::detectors::CDetectableObject::m_id
inherited

Must be an unique id for each detectable object.

Definition at line 37 of file CDetectableObject.h.

◆ m_width

float mrpt::detectors::CDetectable2D::m_width
inherited

Size of detected object.

Definition at line 56 of file CDetectableObject.h.

Referenced by mrpt::detectors::CDetectable2D::distanceTo().

◆ m_x

float mrpt::detectors::CDetectable2D::m_x
inherited

Definition at line 55 of file CDetectableObject.h.

Referenced by mrpt::detectors::CDetectable2D::distanceTo().

◆ m_y

float mrpt::detectors::CDetectable2D::m_y
inherited

2D Coordinates of detected object

Definition at line 55 of file CDetectableObject.h.

Referenced by mrpt::detectors::CDetectable2D::distanceTo().

◆ m_z

float mrpt::detectors::CDetectable3D::m_z

Z coordinate of detected object.

Definition at line 106 of file CDetectableObject.h.

◆ obs

mrpt::obs::CObservationPtr mrpt::detectors::CDetectableObject::obs
inherited

Observation wich contain the deteted object.

Definition at line 39 of file CDetectableObject.h.




Page generated by Doxygen 1.9.5 for MRPT 1.4.0 SVN: at Tue Dec 27 00:54:45 UTC 2022