10 #include <CTraitsTest.h>    11 #include <gtest/gtest.h>    15 template class mrpt::CTraitsTest<mrpt::poses::CPose2DInterpolator>;
    17 TEST(CPose2DInterpolator, interp)
    25     using namespace std::chrono_literals;
    30     pose_path.
insert(t0, TPose2D(1., 2., 30.0_deg));
    32         t0 + 2 * dt, TPose2D(1. + 3., 2. + 4., 
DEG2RAD(30.0 + 20.0)));
    40     const TPose2D interp_good(1. + 1.5, 2. + 2.0, 
DEG2RAD(30.0 + 10.0));
    41     for (
unsigned int i = 0; i < interp_good.size(); i++)
 
EXPECT_TRUE(mrpt::system::fileExists(ini_fil))
 
This class stores a time-stamped trajectory in SE(2) (mrpt::math::TPose2D poses). ...
 
static time_point now() noexcept
Returns the current time using the currently selected Clock source. 
 
constexpr double DEG2RAD(const double x)
Degrees to radians. 
 
TEST(CPose2DInterpolator, interp)
 
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
 
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries. 
 
pose_t & interpolate(const mrpt::Clock::time_point &t, pose_t &out_interp, bool &out_valid_interp) const
Returns the pose at a given time, or interpolates using splines if there is not an exact match...
 
void insert(const mrpt::Clock::time_point &t, const pose_t &p)
Inserts a new pose in the sequence. 
 
EXPECT_NEAR(out.cam_params.rightCameraPose.x, 0.1194, 0.005)