Go to the documentation of this file.
9 #ifndef PF_aux_structs_H
10 #define PF_aux_structs_H
39 if (s1.
x < s2.
x)
return true;
40 if (s1.
x > s2.
x)
return false;
41 if (s1.
y < s2.
y)
return true;
42 if (s1.
y > s2.
y)
return false;
51 std::vector<TPoseBin2D>
bins;
59 for (
size_t i = 0; i < s1.
bins.size(); i++)
61 if (s1.
bins[i].x < s2.
bins[i].x)
return true;
62 if (s1.
bins[i].x > s2.
bins[i].x)
return false;
63 if (s1.
bins[i].y < s2.
bins[i].y)
return true;
64 if (s1.
bins[i].y > s2.
bins[i].y)
return false;
65 if (s1.
bins[i].phi < s2.
bins[i].phi)
return true;
66 if (s1.
bins[i].phi > s2.
bins[i].phi)
return false;
87 if (s1.
x < s2.
x)
return true;
88 if (s1.
x > s2.
x)
return false;
89 if (s1.
y < s2.
y)
return true;
90 if (s1.
y > s2.
y)
return false;
91 if (s1.
z < s2.
z)
return true;
92 if (s1.
z > s2.
z)
return false;
93 if (s1.
yaw < s2.
yaw)
return true;
94 if (s1.
yaw > s2.
yaw)
return false;
bool operator()(const TPoseBin2D &s1, const TPoseBin2D &s2) const
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define ASSERT_(f)
Defines an assertion mechanism.
bool operator()(const TPoseBin3D &s1, const TPoseBin3D &s2) const
less-than ordering of bins for usage in STL containers
less-than ordering of bins for usage in STL containers
Auxiliary structure used in KLD-sampling in particle filters.
Auxiliary structure used in KLD-sampling in particle filters.
less-than ordering of bins for usage in STL containers
std::vector< TPoseBin2D > bins
This base provides a set of functions for maths stuff.
bool operator()(const TPathBin2D &s1, const TPathBin2D &s2) const
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |