Go to the documentation of this file.
10 #ifndef CDetectableObject_H
11 #define CDetectableObject_H
58 const int&
x = 0,
const int&
y = 0,
const int&
height = 0,
75 return std::sqrt(std::pow(c_x1 - c_x2, 2) + pow(c_y1 - c_y2, 2));
mrpt::obs::CObservation::Ptr obs
Observation wich contain the deteted object.
std::shared_ptr< CObservation > Ptr
double distanceTo(const CDetectable2D &d2)
Compute distance between centers of two detectable 2D objects.
float m_z
Z coordinate of detected object.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
float m_x
2D Coordinates of detected object
std::string m_id
Must be an unique id for each detectable object.
CDetectable2D(const int &x=0, const int &y=0, const int &height=0, const int &width=0)
Extra constructor.
The virtual base class which provides a unified interface for all persistent objects in MRPT.
std::shared_ptr< CDetectable2D > Ptr
void setObservation(mrpt::obs::CObservation::Ptr newObs)
#define DEFINE_VIRTUAL_SERIALIZABLE(class_name)
This declaration must be inserted in virtual CSerializable classes definition:
GLenum GLsizei GLsizei height
CDetectable2D(const CDetectable2D *d)
Copy pointer content constructor.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
float m_height
Size of detected object.
GLsizei const GLchar ** string
Base class that contains common atributes and functions of detectable objects.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |