54 std::pair<double,double> p1,p2,p3,p4;
59 if( it_ge1 != m_x2y.end() && it_ge1->first ==
x )
67 if( it_ge1 == m_x2y.end() || it_ge1 == m_x2y.begin() )
74 if( it_ge1 == m_x2y.end() )
84 if( it_ge1 == m_x2y.begin() )
121 out << m_x2y << m_wrap2pi;
136 in >> m_x2y >> m_wrap2pi;
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
The virtual base class which provides a unified interface for all persistent objects in MRPT...
#define IMPLEMENTS_SERIALIZABLE(class_name, base, NameSpace)
This must be inserted in all CSerializable classes implementation files.
void writeToStream(mrpt::utils::CStream &out, int *getVersion) const
Introduces a pure virtual method responsible for writing to a CStream.
Column vector, like Eigen::MatrixX*, but automatically initialized to zeros since construction...
void appendXY(double x, double y)
Append a new point:
const Scalar * const_iterator
void readFromStream(mrpt::utils::CStream &in, int version)
Introduces a pure virtual method responsible for loading from a CStream This can not be used directly...
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
A (persistent) sequence of (x,y) coordinates, allowing queries of intermediate points through spline ...
This base provides a set of functions for maths stuff.
#define MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION(__V)
For use in CSerializable implementations.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
NUMTYPE spline(const NUMTYPE t, const VECTORLIKE &x, const VECTORLIKE &y, bool wrap2pi=false)
Interpolates the value of a function in a point "t" given 4 SORTED points where "t" is between the tw...
double & query(double x, double &y, bool &out_valid) const
Query an interpolation of the curve at some "x".