Represents a sinusoidal curve, evaluating the following equation: p0 + amplitude * (sin(2pi/T + phi)
More...
|
| | sinusoidal () |
| | Empty constructor. Curve obtained this way can not perform other class functions. More...
|
| |
| | sinusoidal (const Point &p0, const Point &litude, const time_t T, const time_t phi, const time_t T_min=0., const time_t T_max=std::numeric_limits< time_t >::max()) |
| | Constructor. More...
|
| |
| | sinusoidal (const time_t traj_time, const Point &p_init, const Point &p_final, const time_t T_min=0., const time_t T_max=std::numeric_limits< time_t >::max()) |
| | Constructor from stationary points. More...
|
| |
| | sinusoidal (const sinusoidal_t &other) |
| | Copy constructor. More...
|
| |
| virtual | ~sinusoidal () |
| | Destructor. More...
|
| |
| virtual point_t | operator() (const time_t t) const |
| | Evaluation of the cubic spline at time t. More...
|
| |
| virtual point_derivate_t | derivate (const time_t t, const std::size_t order) const |
| | Evaluate the derivative of order N of curve at time t. More...
|
| |
| sinusoidal_t | compute_derivate (const std::size_t order) const |
| | Compute the derived curve at order N. Computes the derivative order N, of bezier curve of parametric equation x(t). More...
|
| |
| virtual sinusoidal_t * | compute_derivate_ptr (const std::size_t order) const |
| | Compute the derived curve at orderN. More...
|
| |
| virtual bool | isApprox (const sinusoidal_t &other, const Numeric prec=Eigen::NumTraits< Numeric >::dummy_precision()) const |
| | isApprox check if other and *this are approximately equals given a precision treshold Only two curves of the same class can be approximately equals, for comparison between different type of curves see isEquivalent. More...
|
| |
| virtual bool | isApprox (const curve_abc_t *other, const Numeric prec=Eigen::NumTraits< Numeric >::dummy_precision()) const |
| |
| virtual bool | operator== (const sinusoidal_t &other) const |
| |
| virtual bool | operator!= (const sinusoidal_t &other) const |
| |
| virtual std::size_t | dim () const |
| | Get dimension of curve. More...
|
| |
| virtual num_t | min () const |
| | Get the minimum time for which the curve is defined. More...
|
| |
| virtual num_t | max () const |
| | Get the maximum time for which the curve is defined. More...
|
| |
| virtual std::size_t | degree () const |
| | Get the degree of the curve. More...
|
| |
| template<class Archive > |
| void | serialize (Archive &ar, const unsigned int version) |
| |
| | curve_abc () |
| | Constructor. More...
|
| |
| virtual | ~curve_abc () |
| | Destructor. More...
|
| |
| virtual point_t | operator() (const time_t t) const=0 |
| | Evaluation of the cubic spline at time t. More...
|
| |
| virtual point_derivate_t | derivate (const time_t t, const std::size_t order) const=0 |
| | Evaluate the derivative of order N of curve at time t. More...
|
| |
| bool | isEquivalent (const curve_t *other, const double prec=Eigen::NumTraits< double >::dummy_precision(), const size_t order=5) const |
| | isEquivalent check if other and *this are approximately equal by values, given a precision treshold. This test is done by discretizing both curves and evaluating them and their derivatives. More...
|
| |
| virtual bool | isApprox (const curve_t *other, const double prec=Eigen::NumTraits< double >::dummy_precision()) const=0 |
| | isApprox check if other and *this are approximately equal given a precision treshold Only two curves of the same class can be approximately equal, for comparison between different type of curves see isEquivalent. More...
|
| |
| std::pair< time_t, time_t > | timeRange () |
| |
| void | serialize (Archive &ar, const unsigned int version) |
| |
| template<class Derived > |
| void | loadFromText (const std::string &filename) |
| | Loads a Derived object from a text file. More...
|
| |
| template<class Derived > |
| void | saveAsText (const std::string &filename) const |
| | Saved a Derived object as a text file. More...
|
| |
| template<class Derived > |
| void | loadFromXML (const std::string &filename, const std::string &tag_name) |
| | Loads a Derived object from an XML file. More...
|
| |
| template<class Derived > |
| void | saveAsXML (const std::string &filename, const std::string &tag_name) const |
| | Saved a Derived object as an XML file. More...
|
| |
| template<class Derived > |
| void | loadFromBinary (const std::string &filename) |
| | Loads a Derived object from an binary file. More...
|
| |
| template<class Derived > |
| void | saveAsBinary (const std::string &filename) const |
| | Saved a Derived object as an binary file. More...
|
| |
template<typename Time = double, typename Numeric = Time, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Eigen::Dynamic, 1>>
class ndcurves::sinusoidal< Time, Numeric, Safe, Point >
Represents a sinusoidal curve, evaluating the following equation: p0 + amplitude * (sin(2pi/T + phi)