13 #include <CTraitsTest.h> 14 #include <gtest/gtest.h> 16 template class mrpt::CTraitsTest<mrpt::poses::CPose3DInterpolator>;
33 t0 + 2 * dt, TPose3D(1. + 3., 2. + 4., 3. + 5.,
41 const TPose3D interp_good(
45 .0, (
CPose3D(interp_good).getHomogeneousMatrixVal<CMatrixDouble44>() -
std::chrono::duration< rep, period > duration
double DEG2RAD(const double x)
Degrees to radians.
CMatrixFixedNumeric< double, 4, 4 > CMatrixDouble44
static time_point now() noexcept
Returns the current time, with the highest resolution available.
CONTAINER::Scalar sum(const CONTAINER &v)
Computes the sum of all the elements.
TEST(CPose3DInterpolator, 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...
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
Lightweight 3D pose (three spatial coordinates, plus three angular coordinates).
This class stores a time-stamped trajectory in SE(3) (CPose3D poses).
void insert(const mrpt::Clock::time_point &t, const pose_t &p)
Inserts a new pose in the sequence.