9 #ifndef PF_aux_structs_H 10 #define PF_aux_structs_H 35 if (s1.
x < s2.
x)
return true;
36 if (s1.
x > s2.
x)
return false;
37 if (s1.
y < s2.
y)
return true;
38 if (s1.
y > s2.
y)
return false;
47 std::vector<TPoseBin2D>
bins;
55 for (
size_t i = 0; i < s1.
bins.size(); i++)
57 if (s1.
bins[i].x < s2.
bins[i].x)
return true;
58 if (s1.
bins[i].x > s2.
bins[i].x)
return false;
59 if (s1.
bins[i].y < s2.
bins[i].y)
return true;
60 if (s1.
bins[i].y > s2.
bins[i].y)
return false;
61 if (s1.
bins[i].phi < s2.
bins[i].phi)
return true;
62 if (s1.
bins[i].phi > s2.
bins[i].phi)
return false;
83 if (s1.
x < s2.
x)
return true;
84 if (s1.
x > s2.
x)
return false;
85 if (s1.
y < s2.
y)
return true;
86 if (s1.
y > s2.
y)
return false;
87 if (s1.
z < s2.
z)
return true;
88 if (s1.
z > s2.
z)
return false;
89 if (s1.
yaw < s2.
yaw)
return true;
90 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