fwd.h
Go to the documentation of this file.
1 
10 #ifndef CURVES_FWD_H
11 #define CURVES_FWD_H
12 #include <Eigen/Dense>
13 #include <vector>
14 #include <boost/smart_ptr/shared_ptr.hpp>
15 
16 namespace ndcurves {
17 
18 template <typename Time, typename Numeric, bool Safe, typename Point, typename Point_derivate>
19 struct curve_abc;
20 
21 template <typename Time, typename Numeric, bool Safe, typename Point>
22 struct bezier_curve;
23 
24 template <typename Time, typename Numeric, bool Safe, typename Point,typename Point_derivate>
25 struct constant_curve;
26 
27 template <typename Time, typename Numeric, bool Safe, typename Point>
28 struct cubic_hermite_spline;
29 
30 template <typename Time, typename Numeric, bool Safe, typename Point, typename T_Point, typename SplineBase>
31 struct exact_cubic;
32 
33 template <typename Time, typename Numeric, bool Safe, typename Point, typename Point_derivate, typename CurveType>
35 
36 template <typename Time, typename Numeric, bool Safe, typename Point, typename T_Point>
37 struct polynomial;
38 
39 template <typename Time, typename Numeric, bool Safe>
40 struct SE3Curve;
41 
42 template <typename Time, typename Numeric, bool Safe, typename Point>
43 struct sinusoidal;
44 
45 template <typename Time, typename Numeric, bool Safe>
46 struct SO3Linear;
47 
48 template <typename Numeric>
49 struct Bern;
50 
51 template <typename Point>
52 struct curve_constraints;
53 
54 template <typename Numeric, bool Safe>
56 
57 template <typename Numeric>
59 
60 // typedef of the commonly used templates arguments :
61 // eigen types :
62 typedef Eigen::Vector3d point3_t;
63 typedef Eigen::Matrix<double, 6, 1> point6_t;
64 typedef Eigen::VectorXd pointX_t;
65 typedef Eigen::Matrix<double, 3, 3> matrix3_t;
66 typedef Eigen::Matrix<double, 4, 4> matrix4_t;
67 typedef Eigen::Quaternion<double> quaternion_t;
68 typedef Eigen::Transform<double, 3, Eigen::Affine> transform_t;
69 typedef std::vector<point3_t, Eigen::aligned_allocator<point3_t> > t_point3_t;
70 typedef std::vector<pointX_t, Eigen::aligned_allocator<pointX_t> > t_pointX_t;
71 
72 // abstract curves types:
74 typedef curve_abc<double, double, true, point3_t, point3_t> curve_3_t; // generic class of curve of size 3
76  curve_rotation_t; // templated class used for the rotation (return dimension are fixed)
78  curve_SE3_t; // templated abstract class used for all the se3 curves (return dimension are fixed)
79 
80 // shared pointer to abstract types:
81 typedef boost::shared_ptr<curve_abc_t> curve_ptr_t;
82 typedef boost::shared_ptr<curve_3_t> curve3_ptr_t;
83 typedef boost::shared_ptr<curve_rotation_t> curve_rotation_ptr_t;
84 typedef boost::shared_ptr<curve_SE3_t> curve_SE3_ptr_t;
85 
86 // definition of all curves class with pointX as return type:
96 
97 // definition of all curves class with point3 as return type:
104 
105 // special curves with return type fixed:
109 
110 } // namespace ndcurves
111 
112 #endif // CURVES_FWD_H
ndcurves::linear_variable_t
linear_variable< double, true > linear_variable_t
Definition: fwd.h:90
ndcurves::exact_cubic
Definition: exact_cubic.h:41
ndcurves::SE3Curve_t
SE3Curve< double, double, true > SE3Curve_t
Definition: fwd.h:107
ndcurves::polynomial3_t
polynomial< double, double, true, point3_t, t_point3_t > polynomial3_t
Definition: fwd.h:98
ndcurves::curve_3_t
curve_abc< double, double, true, point3_t, point3_t > curve_3_t
Definition: fwd.h:74
ndcurves::bezier_curve
Definition: bezier_curve.h:33
ndcurves::point6_t
Eigen::Matrix< double, 6, 1 > point6_t
Definition: fwd.h:63
ndcurves::cubic_hermite_spline3_t
cubic_hermite_spline< double, double, true, point3_t > cubic_hermite_spline3_t
Definition: fwd.h:102
ndcurves::piecewise_curve
Definition: fwd.h:34
ndcurves::curve_constraints
Definition: curve_constraint.h:22
ndcurves::curve3_ptr_t
boost::shared_ptr< curve_3_t > curve3_ptr_t
Definition: fwd.h:82
ndcurves::constant3_t
constant_curve< double, double, true, point3_t, point3_t > constant3_t
Definition: fwd.h:101
ndcurves::SO3Linear
Represents a linear interpolation in SO3, using the slerp method provided by Eigen::Quaternion.
Definition: fwd.h:46
ndcurves::Bern
Definition: fwd.h:49
ndcurves::SO3Linear_t
SO3Linear< double, double, true > SO3Linear_t
Definition: fwd.h:106
ndcurves::curve_SE3_ptr_t
boost::shared_ptr< curve_SE3_t > curve_SE3_ptr_t
Definition: fwd.h:84
ndcurves::t_pointX_t
std::vector< pointX_t, Eigen::aligned_allocator< pointX_t > > t_pointX_t
Definition: fwd.h:70
ndcurves::cubic_hermite_spline
Definition: cubic_hermite_spline.h:36
ndcurves::curve_abc_t
curve_abc< double, double, true, pointX_t, pointX_t > curve_abc_t
Definition: fwd.h:73
ndcurves::curve_rotation_t
curve_abc< double, double, true, matrix3_t, point3_t > curve_rotation_t
Definition: fwd.h:76
ndcurves::piecewise_SE3_t
piecewise_curve< double, double, true, transform_t, point6_t, curve_SE3_t > piecewise_SE3_t
Definition: fwd.h:108
ndcurves::curve_ptr_t
boost::shared_ptr< curve_abc_t > curve_ptr_t
Definition: fwd.h:81
ndcurves::polynomial_t
polynomial< double, double, true, pointX_t, t_pointX_t > polynomial_t
Definition: fwd.h:87
ndcurves::constant_t
constant_curve< double, double, true, pointX_t, pointX_t > constant_t
Definition: fwd.h:92
ndcurves::exact_cubic_t
exact_cubic< double, double, true, pointX_t, t_pointX_t, polynomial_t > exact_cubic_t
Definition: fwd.h:88
ndcurves::curve_rotation_ptr_t
boost::shared_ptr< curve_rotation_t > curve_rotation_ptr_t
Definition: fwd.h:83
ndcurves::curve_abc
Represents a curve of dimension Dim. If value of parameter Safe is false, no verification is made on ...
Definition: curve_abc.h:34
ndcurves::SE3Curve
Composition of a curve of any type of dimension 3 and a curve representing an rotation (in current im...
Definition: fwd.h:40
ndcurves::sinusoidal_t
sinusoidal< double, double, true, pointX_t > sinusoidal_t
Definition: fwd.h:95
ndcurves::quaternion_t
Eigen::Quaternion< double > quaternion_t
Definition: fwd.h:67
ndcurves
Definition: bernstein.h:20
ndcurves::bezier_linear_variable_t
bezier_curve< double, double, true, linear_variable_t > bezier_linear_variable_t
Definition: fwd.h:91
ndcurves::cubic_hermite_spline_t
cubic_hermite_spline< double, double, true, pointX_t > cubic_hermite_spline_t
Definition: fwd.h:93
ndcurves::t_point3_t
std::vector< point3_t, Eigen::aligned_allocator< point3_t > > t_point3_t
Definition: fwd.h:69
ndcurves::polynomial
Represents a polynomial of an arbitrary order defined on the interval . It follows the equation : ...
Definition: fwd.h:37
ndcurves::point3_t
Eigen::Vector3d point3_t
Definition: fwd.h:58
ndcurves::piecewise_t
piecewise_curve< double, double, true, pointX_t, pointX_t, curve_abc_t > piecewise_t
Definition: fwd.h:94
ndcurves::exact_cubic3_t
exact_cubic< double, double, true, point3_t, t_point3_t, polynomial_t > exact_cubic3_t
Definition: fwd.h:99
ndcurves::constant_curve
Represents a constant_curve curve, always returning the same value and a null derivative.
Definition: constant_curve.h:20
ndcurves::quadratic_variable
Definition: fwd.h:58
ndcurves::pointX_t
Eigen::VectorXd pointX_t
Definition: fwd.h:64
ndcurves::transform_t
Eigen::Transform< double, 3, Eigen::Affine > transform_t
Definition: fwd.h:68
ndcurves::piecewise3_t
piecewise_curve< double, double, true, point3_t, point3_t, curve_3_t > piecewise3_t
Definition: fwd.h:103
ndcurves::bezier_t
bezier_curve< double, double, true, pointX_t > bezier_t
Definition: fwd.h:89
ndcurves::bezier3_t
bezier_curve< double, double, true, point3_t > bezier3_t
Definition: fwd.h:100
ndcurves::linear_variable
Definition: fwd.h:55
ndcurves::matrix4_t
Eigen::Matrix< double, 4, 4 > matrix4_t
Definition: fwd.h:66
ndcurves::matrix3_t
Eigen::Matrix< double, 3, 3 > matrix3_t
Definition: fwd.h:65
ndcurves::sinusoidal
Represents a sinusoidal curve, evaluating the following equation: p0 + amplitude * (sin(2pi/T + phi)
Definition: fwd.h:43
ndcurves::curve_SE3_t
curve_abc< double, double, true, transform_t, point6_t > curve_SE3_t
Definition: fwd.h:78