55 typedef typename mrpt::poses::SE_traits<DIM>::lightweight_pose_t
pose_t;
56 typedef typename mrpt::poses::SE_traits<DIM>::pose_t
cpose_t;
57 typedef typename mrpt::poses::SE_traits<DIM>::point_t
point_t;
60 typedef std::map<mrpt::system::TTimeStamp,pose_t>
TPath;
70 return m_path.cbegin();
72 return m_path.begin();
100 size_t size()
const {
return m_path.size(); }
101 bool empty()
const {
return m_path.empty(); }
126 void setMaxTimeInterpolation(
double time );
127 double getMaxTimeInterpolation();
148 bool saveInterpolatedToTextFile(
const std::string &
s,
double period)
const;
157 void getBoundingBox(point_t &minCorner, point_t &maxCorner)
const;
174 void impl_interpolation(
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1...
Base class for SE(2)/SE(3) interpolators.
std::map< mrpt::system::TTimeStamp, pose_t > TPath
const_reverse_iterator rbegin() const
T interpolate(const T &x, const VECTOR &ys, const T &x0, const T &x1)
Interpolate a data sequence "ys" ranging from "x0" to "x1" (equally spaced), to obtain the approximat...
void saveToTextFile(const std::string &file, mrpt::math::TMatrixTextFileFormat fileFormat=mrpt::math::MATRIX_FORMAT_ENG, bool appendMRPTHeader=false, const std::string &userHeader=std::string()) const
Save matrix to a text file, compatible with MATLAB text format (see also the methods of matrix classe...
const_iterator cend() const
Only specializations of this class are defined for each enum type of interest.
TPath m_path
The sequence of poses.
const_iterator begin() const
const Scalar * const_iterator
TInterpolatorMethod m_method
void clear()
Clear the contents of this container.
mrpt::poses::TInterpolatorMethod enum_t
const_reverse_iterator rend() const
iterator upper_bound(const mrpt::system::TTimeStamp &t)
iterator find(const mrpt::system::TTimeStamp &t)
A bidirectional version of std::map, declared as bimap<KEY,VALUE> and which actually contains two std...
const_iterator end() const
reverse_iterator rbegin()
GLsizei const GLchar ** string
mrpt::poses::SE_traits< DIM >::lightweight_pose_t pose_t
TPose2D or TPose3D.
const_iterator upper_bound(const mrpt::system::TTimeStamp &t) const
std::pair< mrpt::system::TTimeStamp, pose_t > TTimePosePair
iterator lower_bound(const mrpt::system::TTimeStamp &t)
void loadFromTextFile(const std::string &file)
Load matrix from a text file, compatible with MATLAB text format.
TPath::const_reverse_iterator const_reverse_iterator
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
mrpt::poses::SE_traits< DIM >::point_t point_t
TPoint2D or TPoint3D.
A partial specialization of CArrayNumeric for double numbers.
iterator erase(iterator element_to_erase)
TPath::const_iterator const_iterator
mrpt::poses::SE_traits< DIM >::pose_t cpose_t
CPose2D or CPose3D.
void insert(const KEY &k, const VALUE &v)
Insert a new pair KEY<->VALUE in the bi-map.
const_iterator cbegin() const
double maxTimeInterpolation
Maximum time considered to interpolate. If the difference between the desired timestamp where to inte...
const_iterator find(const mrpt::system::TTimeStamp &t) const
static void fill(bimap< enum_t, std::string > &m_map)
TPath::reverse_iterator reverse_iterator
TInterpolatorMethod
Type to select the interpolation method in CPoseInterpolatorBase derived classes. ...
double BASE_IMPEXP distance(const TPoint2D &p1, const TPoint2D &p2)
Gets the distance between two points in a 2D space.
const_iterator lower_bound(const mrpt::system::TTimeStamp &t) const