10 #include <CTraitsTest.h>    11 #include <gtest/gtest.h>    15 template class mrpt::CTraitsTest<mrpt::poses::CPose2DInterpolator>;
    24     using namespace std::chrono_literals;
    31         t0 + 2 * dt, TPose2D(1. + 3., 2. + 4., 
DEG2RAD(30.0 + 20.0)));
    39     const TPose2D interp_good(1. + 1.5, 2. + 2.0, 
DEG2RAD(30.0 + 10.0));
    40     for (
unsigned int i = 0; i < interp_good.size(); i++)
    42         EXPECT_NEAR(interp_good[i], 
interp[i], 1e-4);
 
This class stores a time-stamped trajectory in SE(2) (mrpt::math::TPose2D poses). ...
 
double DEG2RAD(const double x)
Degrees to radians. 
 
static time_point now() noexcept
Returns the current time, with the highest resolution available. 
 
TEST(CPose2DInterpolator, interp)
 
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
 
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.