Represents a curve of dimension Dim. If value of parameter Safe is false, no verification is made on the evaluation of the curve.
More...
|
| 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 curve_t * | compute_derivate_ptr (const std::size_t order) const =0 |
| Compute the derived curve at order N. 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 Numeric prec=Eigen::NumTraits< Numeric >::dummy_precision(), const size_t order=5) const |
| isEquivalent check if other and *this are approximately equal by values, given a precision treshold. More...
|
|
virtual bool | isApprox (const curve_t *other, const Numeric prec=Eigen::NumTraits< Numeric >::dummy_precision()) const =0 |
| 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 std::size_t | dim () const =0 |
| Get dimension of curve. More...
|
|
virtual time_t | min () const =0 |
| Get the minimum time for which the curve is defined. More...
|
|
virtual time_t | max () const =0 |
| Get the maximum time for which the curve is defined. More...
|
|
virtual std::size_t | degree () const =0 |
| Get the degree of the curve. More...
|
|
std::pair< time_t, time_t > | timeRange () |
|
template<class Archive > |
void | serialize (Archive &, const unsigned int version) |
|
template<typename Time = double, typename Numeric = Time, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Eigen::Dynamic, 1>, typename Point_derivate = Point>
struct curves::curve_abc< Time, Numeric, Safe, Point, Point_derivate >
Represents a curve of dimension Dim. If value of parameter Safe is false, no verification is made on the evaluation of the curve.
template<typename Time = double, typename Numeric = Time, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Eigen::Dynamic, 1>, typename Point_derivate = Point>
virtual curve_t* curves::curve_abc< Time, Numeric, Safe, Point, Point_derivate >::compute_derivate_ptr |
( |
const std::size_t |
order | ) |
const |
|
pure virtual |
template<typename Time = double, typename Numeric = Time, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Eigen::Dynamic, 1>, typename Point_derivate = Point>
virtual std::size_t curves::curve_abc< Time, Numeric, Safe, Point, Point_derivate >::degree |
( |
| ) |
const |
|
pure virtual |
template<typename Time = double, typename Numeric = Time, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Eigen::Dynamic, 1>, typename Point_derivate = Point>
template<typename Time = double, typename Numeric = Time, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Eigen::Dynamic, 1>, typename Point_derivate = Point>
virtual std::size_t curves::curve_abc< Time, Numeric, Safe, Point, Point_derivate >::dim |
( |
| ) |
const |
|
pure virtual |
template<typename Time = double, typename Numeric = Time, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Eigen::Dynamic, 1>, typename Point_derivate = Point>
virtual bool curves::curve_abc< Time, Numeric, Safe, Point, Point_derivate >::isApprox |
( |
const curve_t * |
other, |
|
|
const Numeric |
prec = Eigen::NumTraits< Numeric >::dummy_precision() |
|
) |
| const |
|
pure virtual |
template<typename Time = double, typename Numeric = Time, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Eigen::Dynamic, 1>, typename Point_derivate = Point>
bool curves::curve_abc< Time, Numeric, Safe, Point, Point_derivate >::isEquivalent |
( |
const curve_t * |
other, |
|
|
const Numeric |
prec = Eigen::NumTraits<Numeric>::dummy_precision() , |
|
|
const size_t |
order = 5 |
|
) |
| const |
|
inline |
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.
- Parameters
-
other | the other curve to check |
order | the order up to which the derivatives of the curves are checked for equality |
prec | the precision treshold, default Eigen::NumTraits<Numeric>::dummy_precision() |
- Returns
- true is the two curves are approximately equals
template<typename Time = double, typename Numeric = Time, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Eigen::Dynamic, 1>, typename Point_derivate = Point>
Get the maximum time for which the curve is defined.
- Returns
, upper bound of time range.
Implemented in curves::helpers::rotation_spline.
Referenced by curves::bezier_curve< Time, Numeric, Safe, Point >::isApprox(), curves::curve_abc< double, double, false, Eigen::Matrix< double, Eigen::Dynamic, 1 > >::isEquivalent(), and curves::curve_abc< double, double, false, Eigen::Matrix< double, Eigen::Dynamic, 1 > >::timeRange().
template<typename Time = double, typename Numeric = Time, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Eigen::Dynamic, 1>, typename Point_derivate = Point>
Get the minimum time for which the curve is defined.
- Returns
, lower bound of time range.
Implemented in curves::helpers::rotation_spline.
Referenced by curves::bezier_curve< Time, Numeric, Safe, Point >::isApprox(), curves::curve_abc< double, double, false, Eigen::Matrix< double, Eigen::Dynamic, 1 > >::isEquivalent(), and curves::curve_abc< double, double, false, Eigen::Matrix< double, Eigen::Dynamic, 1 > >::timeRange().
template<typename Time = double, typename Numeric = Time, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Eigen::Dynamic, 1>, typename Point_derivate = Point>
Evaluation of the cubic spline at time t.
- Parameters
-
t | : time when to evaluate the spine |
- Returns
, point corresponding on curve at time t.