18 if (linear_tolerance < 0) {
24 if (this->map_id != other_loc.map_id)
28 if (sqrt(pow((this->x - other_loc.x), 2) +
29 pow((this->y - other_loc.y), 2) +
30 pow((this->z - other_loc.z), 2)) > linear_tolerance)
40 if (linear_tolerance < 0) {
50 if (sqrt(pow((this->
x - other_loc.
x), 2) +
51 pow((this->
y - other_loc.
y), 2)) > linear_tolerance)
const yarp::os::LogComponent & MAP2DOBJECT()
contains the definition of a Map2DObject type
std::string map_id
name of the map
double y
y position of the location [m], expressed in the map reference frame
double x
x position of the location [m], expressed in the map reference frame
double y
y position of the location [m], expressed in the map reference frame
std::string map_id
name of the map
double x
x position of the location [m], expressed in the map reference frame
#define yCAssert(component, x)
#define YARP_LOG_COMPONENT(name,...)
bool is_near_to(const Map2DObject &other_loc, double linear_tolerance) const
Compares two Map2DObjects.