9 #ifndef PF_aux_structs_H 10 #define PF_aux_structs_H 41 if (s1.
x < s2.
x)
return true;
42 if (s1.
x > s2.
x)
return false;
43 if (s1.
y < s2.
y)
return true;
44 if (s1.
y > s2.
y)
return false;
53 std::vector<TPoseBin2D>
bins;
61 for (
size_t i=0;i<s1.
bins.size();i++)
63 if (s1.
bins[i].x < s2.
bins[i].x)
return true;
64 if (s1.
bins[i].x > s2.
bins[i].x)
return false;
65 if (s1.
bins[i].y < s2.
bins[i].y)
return true;
66 if (s1.
bins[i].y > s2.
bins[i].y)
return false;
67 if (s1.
bins[i].phi < s2.
bins[i].phi)
return true;
68 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