Main MRPT website > C++ reference for MRPT 1.5.7
CPose3DInterpolator.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +---------------------------------------------------------------------------+ */
9 #pragma once
10 
13 
14 namespace mrpt
15 {
16  namespace poses
17  {
19 
20  /** This class stores a time-stamped trajectory in SE(3) (CPose3D poses).
21  * It can also interpolate SE(3) poses over time using linear, splines or SLERP interpolation, as set in CPose3DInterpolator::setInterpolationMethod()
22  * Usage:
23  * - Insert new poses into the sequence with CPose3DInterpolator::insert()
24  * - Query an exact/interpolated pose with CPose3DInterpolator::interpolate().
25  * Example:
26  * \code
27  * CPose3DInterpolator path;
28  *
29  * path.setInterpolationMethod( mrpt::poses::imSplineSlerp );
30  *
31  * path.insert( t0, mrpt::poses::CPose3D(...) );
32  * path.insert( t1, mrpt::math::TPose3D(...) ); // prefered (faster)
33  *
34  * mrpt::math::TPose3D p;
35  * bool valid;
36  *
37  * cout << "Pose at t: " << path.interpolate(t,p,valid).asString() << endl;
38  * \endcode
39  *
40  * Time is represented with mrpt::system::TTimeStamp. See mrpt::system for methods and utilities to manage these time references.
41  *
42  * See TInterpolatorMethod for the list of interpolation methods. The default method at constructor is "imLinearSlerp".
43  *
44  * \sa CPoseOrPoint
45  * \ingroup interpolation_grp poses_grp
46  */
48  public mrpt::utils::CSerializable,
49  public mrpt::poses::CPoseInterpolatorBase<3>
50  {
51  // This must be added to any CSerializable derived class:
53  }; // End of class def.
55 
56  } // End of namespace
57 } // End of namespace
Base class for SE(2)/SE(3) interpolators.
The virtual base class which provides a unified interface for all persistent objects in MRPT...
Definition: CSerializable.h:39
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE(class_name, base_name)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE(class_name, base_name)
This class stores a time-stamped trajectory in SE(3) (CPose3D poses).



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019