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