10 #include <gtest/gtest.h> 33 for (
size_t i = 0; i <
demo9_N; i++)
47 for (
size_t i = 0; i <
demo9_N; i++)
50 pts.getPoint(i, x, y, z);
66 for (
size_t i = 0; i <
demo9_N; i++)
70 pts2.getPoint(i, x2, y2, z2);
71 pts3.getPoint(i, x3, y3, z3);
88 pts.clipOutOfRangeInZ(-10, -1);
95 pts.clipOutOfRangeInZ(-10, 10);
102 pts.clipOutOfRangeInZ(0.5, 1.5);
116 const float radius = 0.5;
119 pts.clipOutOfRange(pivot, radius);
126 const float radius = 1;
129 pts.clipOutOfRange(pivot, radius);
136 const float radius = 1.1f;
139 pts.clipOutOfRange(pivot, radius);
144 TEST(CSimplePointsMapTests, insertPoints)
146 do_test_insertPoints<CSimplePointsMap>();
149 TEST(CWeightedPointsMapTests, insertPoints)
151 do_test_insertPoints<CWeightedPointsMap>();
154 TEST(CColouredPointsMapTests, insertPoints)
156 do_test_insertPoints<CColouredPointsMap>();
161 TEST(CSimplePointsMapTests, clipOutOfRangeInZ)
163 do_test_clipOutOfRangeInZ<CSimplePointsMap>();
166 TEST(CWeightedPointsMapTests, clipOutOfRangeInZ)
168 do_test_clipOutOfRangeInZ<CWeightedPointsMap>();
171 TEST(CColouredPointsMapTests, clipOutOfRangeInZ)
173 do_test_clipOutOfRangeInZ<CColouredPointsMap>();
176 TEST(CSimplePointsMapTests, clipOutOfRange)
178 do_test_clipOutOfRange<CSimplePointsMap>();
181 TEST(CWeightedPointsMapTests, clipOutOfRange)
183 do_test_clipOutOfRange<CWeightedPointsMap>();
186 TEST(CColouredPointsMapTests, clipOutOfRange)
188 do_test_clipOutOfRange<CColouredPointsMap>();
const float demo9_zs[demo9_N]
void do_test_clipOutOfRange()
void do_test_clipOutOfRangeInZ()
const float demo9_xs[demo9_N]
This base provides a set of functions for maths stuff.
This namespace contains representation of robot actions and observations.
const float demo9_ys[demo9_N]
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
void load_demo_9pts_map(MAP &pts)
void do_test_insertPoints()
A map of 3D points with reflectance/intensity (float).
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
EXPECT_EQ(out.image_pair_was_used.size(), NUM_IMGS)
TEST(CSimplePointsMapTests, insertPoints)