10 #include <CTraitsTest.h> 11 #include <gtest/gtest.h> 21 template class mrpt::CTraitsTest<CPose3DPDFGrid>;
31 const double res_xyz = 0.25;
36 grid.uniformDistribution();
38 auto [COV, MEAN] = grid.getCovarianceAndMean();
49 for (
int i = 4; i < 6; i++)
58 const double res_xyz = 0.25;
65 *grid.getByPos(gt_mean) = .1;
69 auto [COV, MEAN] = grid.getCovarianceAndMean();
EXPECT_LT(out.final_rmse, 3.0)
EXPECT_GT(out.final_iters, 10UL)
This base provides a set of functions for maths stuff.
constexpr double DEG2RAD(const double x)
Degrees to radians.
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
return_t square(const num_t x)
Inline function for the square of a number.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Lightweight 3D pose (three spatial coordinates, plus three angular coordinates).
Declares a class that represents a Probability Distribution function (PDF) of a SE(3) pose (x...
EXPECT_NEAR(out.cam_params.rightCameraPose.x, 0.1194, 0.005)
TEST(CPose3DPDFGrid, uniformDistribution)