18 if (linear_tolerance < 0) {
21 if (angular_tolerance < 0) {
27 if (this->map_id != other_loc.map_id)
31 if (sqrt(pow((this->x - other_loc.x), 2) + pow((this->y - other_loc.y), 2)) > linear_tolerance)
36 if (angular_tolerance != std::numeric_limits<double>::infinity())
45 double diff = other_loc.theta - this->theta + 180.0;
46 diff = fmod(diff, 360.0) - 180.0;
47 diff = (diff < -180.0) ? (diff + 360.0) : (diff);
48 if (fabs(diff) > angular_tolerance)
51 double angle1 = normalize_angle(this->theta);
52 double angle2 = normalize_angle(other_loc.theta);
53 double diff = angle1 - angle2;
54 diff += (diff > 180) ? -360 : (diff < -180) ? 360 : 0;
55 if (fabs(diff) > angular_tolerance)
const yarp::os::LogComponent & MAP2DLOCATION()
contains the definition of a Map2DLocation type
#define yCAssert(component, x)
#define YARP_LOG_COMPONENT(name,...)