Go to the documentation of this file.
69 using TPath = std::map<mrpt::system::TTimeStamp, pose_t>;
105 m_path.erase(element_to_erase++);
106 return element_to_erase;
135 bool& out_valid_interp)
const;
139 bool& out_valid_interp)
const;
const_iterator cbegin() const
bool loadFromTextFile(const std::string &s)
Loads from a text file, in the format described by saveToTextFile.
typename TPath::reverse_iterator reverse_iterator
const Scalar * const_iterator
#define MRPT_ENUM_TYPE_END()
Base class for SE(2)/SE(3) interpolators.
const_iterator end() const
typename mrpt::poses::SE_traits< DIM >::point_t point_t
TPoint2D or TPoint3D.
TPath m_path
The sequence of poses.
typename mrpt::poses::SE_traits< DIM >::lightweight_pose_t pose_t
TPose2D or TPose3D.
const_iterator upper_bound(const mrpt::system::TTimeStamp &t) const
CPoseInterpolatorBase()
Default ctor: empty sequence of poses.
iterator erase(iterator element_to_erase)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
double distance(const TPoint2D &p1, const TPoint2D &p2)
Gets the distance between two points in a 2D space.
TInterpolatorMethod m_method
pose_t & interpolate(mrpt::system::TTimeStamp 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.
bool saveInterpolatedToTextFile(const std::string &s, double period) const
Saves the points in the interpolator to a text file, with the same format that saveToTextFile,...
typename TPath::iterator iterator
typename mrpt::poses::SE_traits< DIM >::pose_t cpose_t
CPose2D or CPose3D.
MRPT_FILL_ENUM_MEMBER(mrpt::poses, imSpline)
#define MRPT_ENUM_TYPE_BEGIN(_ENUM_TYPE_WITH_NS)
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
void setInterpolationMethod(TInterpolatorMethod method)
Change the method used to interpolate the robot path.
const_iterator begin() const
A helper class for SE(2) and SE(3) geometry-related transformations, on-manifold optimization Jacobia...
reverse_iterator rbegin()
uint64_t TTimeStamp
A system independent time type, it holds the the number of 100-nanosecond intervals since January 1,...
iterator find(const mrpt::system::TTimeStamp &t)
bool saveToTextFile(const std::string &s) const
Saves the points in the interpolator to a text file, with this format: Each row contains these elemen...
void insert(mrpt::system::TTimeStamp t, const pose_t &p)
Inserts a new pose in the sequence.
TInterpolatorMethod
Type to select the interpolation method in CPoseInterpolatorBase derived classes.
std::map< mrpt::system::TTimeStamp, pose_t > TPath
const_iterator lower_bound(const mrpt::system::TTimeStamp &t) const
std::pair< mrpt::system::TTimeStamp, pose_t > TTimePosePair
void clear()
Clears the current sequence of poses.
typename TPath::const_iterator const_iterator
const_iterator find(const mrpt::system::TTimeStamp &t) const
bool getPreviousPoseWithMinDistance(const mrpt::system::TTimeStamp &t, double distance, pose_t &out_pose)
Get the previous CPose3D in the map with a minimum defined distance.
CArrayNumeric is an array for numeric types supporting several mathematical operations (actually,...
TInterpolatorMethod getInterpolationMethod() const
Returns the currently set interpolation method.
iterator upper_bound(const mrpt::system::TTimeStamp &t)
double getMaxTimeInterpolation()
Set value of the maximum time to consider interpolation.
const_iterator cend() const
void getBoundingBox(point_t &minCorner, point_t &maxCorner) const
Computes the bounding box in all Euclidean coordinates of the whole path.
void impl_interpolation(const mrpt::math::CArrayDouble< 4 > &ts, const TTimePosePair p1, const TTimePosePair p2, const TTimePosePair p3, const TTimePosePair p4, const TInterpolatorMethod method, double td, pose_t &out_interp) const
double maxTimeInterpolation
Maximum time considered to interpolate.
iterator lower_bound(const mrpt::system::TTimeStamp &t)
void setMaxTimeInterpolation(double time)
Set value of the maximum time to consider interpolation.
const_reverse_iterator rbegin() const
void filter(unsigned int component, unsigned int samples)
Filters by averaging one of the components of the pose data within the interpolator.
GLsizei const GLchar ** string
const_reverse_iterator rend() const
typename TPath::const_reverse_iterator const_reverse_iterator
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |