10 #ifndef CDetectableObject_H
11 #define CDetectableObject_H
56 const int&
x = 0,
const int&
y = 0,
const int&
height = 0,
73 return std::sqrt(std::pow(c_x1 - c_x2, 2) + pow(c_y1 - c_y2, 2));
#define DEFINE_VIRTUAL_SERIALIZABLE(class_name)
This declaration must be inserted in virtual CSerializable classes definition:
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
std::shared_ptr< CDetectable2D > Ptr
double distanceTo(const CDetectable2D &d2)
Compute distance between centers of two detectable 2D objects.
float m_x
2D Coordinates of detected object
CDetectable2D(const CDetectable2D *d)
Copy pointer content constructor.
CDetectable2D(const int &x=0, const int &y=0, const int &height=0, const int &width=0)
Extra constructor.
float m_height
Size of detected object.
float m_z
Z coordinate of detected object.
CDetectable3D(const CDetectable3D *d)
Copy pointer content constructor.
Base class that contains common atributes and functions of detectable objects.
void setObservation(mrpt::obs::CObservation::Ptr newObs)
mrpt::obs::CObservation::Ptr obs
Observation wich contain the deteted object.
std::string m_id
Must be an unique id for each detectable object.
std::shared_ptr< CObservation > Ptr
The virtual base class which provides a unified interface for all persistent objects in MRPT.
GLenum GLsizei GLsizei height
GLsizei const GLchar ** string