Go to the documentation of this file.
70 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
#define DEFINE_SERIALIZABLE(class_name, NS)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
double distanceTo(const CDetectable2D &d2)
Compute distance between centers of two detectable 2D objects.
float m_z
Z coordinate of detected object.
float m_x
2D Coordinates of detected object
std::shared_ptr< mrpt::detectors ::CDetectable2D > Ptr
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.
void setObservation(mrpt::obs::CObservation::Ptr newObs)
#define DEFINE_VIRTUAL_SERIALIZABLE(class_name)
This declaration must be inserted in virtual CSerializable classes definition:
CDetectable2D(const CDetectable2D *d)
Copy pointer content constructor.
float m_height
Size of detected object.
Base class that contains common atributes and functions of detectable objects.
CDetectable2D(int x=0, int y=0, int height=0, int width=0)
Extra constructor.
Page generated by Doxygen 1.8.17 for MRPT 2.0.3 at Fri May 29 13:06:46 UTC 2020 | |