27 int x{0}, y{0}, phi{0};
34 if (s1.
x < s2.
x)
return true;
35 if (s1.
x > s2.
x)
return false;
36 if (s1.
y < s2.
y)
return true;
37 if (s1.
y > s2.
y)
return false;
46 std::vector<TPoseBin2D>
bins;
54 for (
size_t i = 0; i < s1.
bins.size(); i++)
56 if (s1.
bins[i].x < s2.
bins[i].x)
return true;
57 if (s1.
bins[i].x > s2.
bins[i].x)
return false;
58 if (s1.
bins[i].y < s2.
bins[i].y)
return true;
59 if (s1.
bins[i].y > s2.
bins[i].y)
return false;
60 if (s1.
bins[i].phi < s2.
bins[i].phi)
return true;
61 if (s1.
bins[i].phi > s2.
bins[i].phi)
return false;
82 if (s1.
x < s2.
x)
return true;
83 if (s1.
x > s2.
x)
return false;
84 if (s1.
y < s2.
y)
return true;
85 if (s1.
y > s2.
y)
return false;
86 if (s1.
z < s2.
z)
return true;
87 if (s1.
z > s2.
z)
return false;
88 if (s1.
yaw < s2.
yaw)
return true;
89 if (s1.
yaw > s2.
yaw)
return false;
less-than ordering of bins for usage in STL containers
less-than ordering of bins for usage in STL containers
#define ASSERT_(f)
Defines an assertion mechanism.
bool operator()(const TPathBin2D &s1, const TPathBin2D &s2) const
This base provides a set of functions for maths stuff.
bool operator()(const TPoseBin3D &s1, const TPoseBin3D &s2) const
Auxiliary structure used in KLD-sampling in particle filters.
Auxiliary structure used in KLD-sampling in particle filters.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
less-than ordering of bins for usage in STL containers
std::vector< TPoseBin2D > bins
bool operator()(const TPoseBin2D &s1, const TPoseBin2D &s2) const