9 #ifndef PF_aux_structs_H 10 #define PF_aux_structs_H 40 if (s1.
x < s2.
x)
return true;
41 if (s1.
x > s2.
x)
return false;
42 if (s1.
y < s2.
y)
return true;
43 if (s1.
y > s2.
y)
return false;
52 std::vector<TPoseBin2D>
bins;
60 for (
size_t i = 0; i < s1.
bins.size(); i++)
62 if (s1.
bins[i].x < s2.
bins[i].x)
return true;
63 if (s1.
bins[i].x > s2.
bins[i].x)
return false;
64 if (s1.
bins[i].y < s2.
bins[i].y)
return true;
65 if (s1.
bins[i].y > s2.
bins[i].y)
return false;
66 if (s1.
bins[i].phi < s2.
bins[i].phi)
return true;
67 if (s1.
bins[i].phi > s2.
bins[i].phi)
return false;
88 if (s1.
x < s2.
x)
return true;
89 if (s1.
x > s2.
x)
return false;
90 if (s1.
y < s2.
y)
return true;
91 if (s1.
y > s2.
y)
return false;
92 if (s1.
z < s2.
z)
return true;
93 if (s1.
z > s2.
z)
return false;
94 if (s1.
yaw < s2.
yaw)
return true;
95 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
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