All Classes Namespaces Files Functions Variables Typedefs
spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase > Class Template Reference

Represents a set of cubic splines defining a continuous function crossing each of the waypoint given in its initialization. More...

#include <hpp/spline/spline_deriv_constraint.h>

Inheritance diagram for spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >:
[legend]
Collaboration diagram for spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >:
[legend]

Public Types

typedef Point point_t
 
typedef T_Point t_point_t
 
typedef Eigen::Matrix< Numeric,
Eigen::Dynamic, Eigen::Dynamic > 
MatrixX
 
typedef Eigen::Matrix< Numeric, 3, 3 > Matrix3
 
typedef Time time_t
 
typedef Numeric num_t
 
typedef polynom< time_t,
Numeric, Dim, Safe, point_t,
t_point_t
spline_t
 
typedef exact_cubic< time_t,
Numeric, Dim, Safe, point_t,
t_point_t
exact_cubic_t
 
typedef std::vector< spline_tt_spline_t
 
typedef t_spline_t::iterator it_spline_t
 
typedef t_spline_t::const_iterator cit_spline_t
 
typedef curve_constraints
< point_t
spline_constraints
 
- Public Types inherited from spline::exact_cubic< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >
typedef Point point_t
 
typedef T_Point t_point_t
 
typedef Eigen::Matrix< Numeric,
Eigen::Dynamic, Eigen::Dynamic > 
MatrixX
 
typedef Time time_t
 
typedef Numeric num_t
 
typedef SplineBase spline_t
 
typedef std::vector< spline_tt_spline_t
 
typedef t_spline_t::iterator it_spline_t
 
typedef t_spline_t::const_iterator cit_spline_t
 
typedef curve_abc< Time,
Numeric, Dim, Safe, Point > 
curve_abc_t
 
- Public Types inherited from spline::curve_abc< Time, Numeric, Dim, Safe, Point >
typedef Point point_t
 
typedef Time time_t
 

Public Member Functions

template<typename In >
 spline_deriv_constraint (In wayPointsBegin, In wayPointsEnd, const spline_constraints &constraints=spline_constraints())
 Constructor. More...
 
virtual ~spline_deriv_constraint ()
 Destructor. More...
 
 spline_deriv_constraint (const spline_deriv_constraint &other)
 Copy Constructor. More...
 
- Public Member Functions inherited from spline::exact_cubic< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >
template<typename In >
 exact_cubic (In wayPointsBegin, In wayPointsEnd)
 Constructor. More...
 
 exact_cubic (const t_spline_t &subSplines)
 Constructor. More...
 
 exact_cubic (const exact_cubic &other)
 Copy Constructor. More...
 
virtual ~exact_cubic ()
 Destructor. More...
 
virtual point_t operator() (const time_t t) const
 Evaluation of the cubic spline at time t. More...
 
virtual point_t derivate (const time_t t, const std::size_t order) const
 Evaluation of the derivative spline at time t. More...
 
virtual num_t min () const
 Returns the minimum time for wich curve is defined. More...
 
virtual num_t max () const
 Returns the maximum time for wich curve is defined. More...
 
- Public Member Functions inherited from spline::curve_abc< Time, Numeric, Dim, Safe, Point >
 curve_abc ()
 Constructor. More...
 
virtual ~curve_abc ()
 Destructor. More...
 
std::pair< time_t, time_ttimeRange ()
 

Additional Inherited Members

- Public Attributes inherited from spline::exact_cubic< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >
t_spline_t subSplines_
 

Detailed Description

template<typename Time = double, typename Numeric = Time, std::size_t Dim = 3, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Dim, 1>, typename T_Point = std::vector<Point, Eigen::aligned_allocator<Point> >, typename SplineBase = polynom<Time, Numeric, Dim, Safe, Point, T_Point>>
class spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >

Represents a set of cubic splines defining a continuous function crossing each of the waypoint given in its initialization.

Additional constraints are used to increase the order of the last spline, to start and finish trajectory with user defined velocity and acceleration.

Member Typedef Documentation

template<typename Time = double, typename Numeric = Time, std::size_t Dim = 3, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Dim, 1>, typename T_Point = std::vector<Point, Eigen::aligned_allocator<Point> >, typename SplineBase = polynom<Time, Numeric, Dim, Safe, Point, T_Point>>
typedef t_spline_t::const_iterator spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >::cit_spline_t
template<typename Time = double, typename Numeric = Time, std::size_t Dim = 3, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Dim, 1>, typename T_Point = std::vector<Point, Eigen::aligned_allocator<Point> >, typename SplineBase = polynom<Time, Numeric, Dim, Safe, Point, T_Point>>
typedef exact_cubic<time_t, Numeric, Dim, Safe, point_t, t_point_t> spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >::exact_cubic_t
template<typename Time = double, typename Numeric = Time, std::size_t Dim = 3, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Dim, 1>, typename T_Point = std::vector<Point, Eigen::aligned_allocator<Point> >, typename SplineBase = polynom<Time, Numeric, Dim, Safe, Point, T_Point>>
typedef t_spline_t::iterator spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >::it_spline_t
template<typename Time = double, typename Numeric = Time, std::size_t Dim = 3, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Dim, 1>, typename T_Point = std::vector<Point, Eigen::aligned_allocator<Point> >, typename SplineBase = polynom<Time, Numeric, Dim, Safe, Point, T_Point>>
typedef Eigen::Matrix<Numeric, 3, 3> spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >::Matrix3
template<typename Time = double, typename Numeric = Time, std::size_t Dim = 3, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Dim, 1>, typename T_Point = std::vector<Point, Eigen::aligned_allocator<Point> >, typename SplineBase = polynom<Time, Numeric, Dim, Safe, Point, T_Point>>
typedef Eigen::Matrix<Numeric, Eigen::Dynamic, Eigen::Dynamic> spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >::MatrixX
template<typename Time = double, typename Numeric = Time, std::size_t Dim = 3, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Dim, 1>, typename T_Point = std::vector<Point, Eigen::aligned_allocator<Point> >, typename SplineBase = polynom<Time, Numeric, Dim, Safe, Point, T_Point>>
typedef Numeric spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >::num_t
template<typename Time = double, typename Numeric = Time, std::size_t Dim = 3, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Dim, 1>, typename T_Point = std::vector<Point, Eigen::aligned_allocator<Point> >, typename SplineBase = polynom<Time, Numeric, Dim, Safe, Point, T_Point>>
typedef Point spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >::point_t
template<typename Time = double, typename Numeric = Time, std::size_t Dim = 3, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Dim, 1>, typename T_Point = std::vector<Point, Eigen::aligned_allocator<Point> >, typename SplineBase = polynom<Time, Numeric, Dim, Safe, Point, T_Point>>
typedef curve_constraints<point_t> spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >::spline_constraints
template<typename Time = double, typename Numeric = Time, std::size_t Dim = 3, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Dim, 1>, typename T_Point = std::vector<Point, Eigen::aligned_allocator<Point> >, typename SplineBase = polynom<Time, Numeric, Dim, Safe, Point, T_Point>>
typedef polynom<time_t, Numeric, Dim, Safe, point_t, t_point_t> spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >::spline_t
template<typename Time = double, typename Numeric = Time, std::size_t Dim = 3, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Dim, 1>, typename T_Point = std::vector<Point, Eigen::aligned_allocator<Point> >, typename SplineBase = polynom<Time, Numeric, Dim, Safe, Point, T_Point>>
typedef T_Point spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >::t_point_t
template<typename Time = double, typename Numeric = Time, std::size_t Dim = 3, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Dim, 1>, typename T_Point = std::vector<Point, Eigen::aligned_allocator<Point> >, typename SplineBase = polynom<Time, Numeric, Dim, Safe, Point, T_Point>>
typedef std::vector<spline_t> spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >::t_spline_t
template<typename Time = double, typename Numeric = Time, std::size_t Dim = 3, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Dim, 1>, typename T_Point = std::vector<Point, Eigen::aligned_allocator<Point> >, typename SplineBase = polynom<Time, Numeric, Dim, Safe, Point, T_Point>>
typedef Time spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >::time_t

Constructor & Destructor Documentation

template<typename Time = double, typename Numeric = Time, std::size_t Dim = 3, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Dim, 1>, typename T_Point = std::vector<Point, Eigen::aligned_allocator<Point> >, typename SplineBase = polynom<Time, Numeric, Dim, Safe, Point, T_Point>>
template<typename In >
spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >::spline_deriv_constraint ( In  wayPointsBegin,
In  wayPointsEnd,
const spline_constraints constraints = spline_constraints() 
)
inline

Constructor.

Parameters
wayPointsBegin: an iterator pointing to the first element of a waypoint container
wayPointsEnd: an iterator pointing to the end of a waypoint container
constraints: constraints on the init and end velocity / accelerations of the spline
template<typename Time = double, typename Numeric = Time, std::size_t Dim = 3, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Dim, 1>, typename T_Point = std::vector<Point, Eigen::aligned_allocator<Point> >, typename SplineBase = polynom<Time, Numeric, Dim, Safe, Point, T_Point>>
virtual spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >::~spline_deriv_constraint ( )
inlinevirtual

Destructor.

template<typename Time = double, typename Numeric = Time, std::size_t Dim = 3, bool Safe = false, typename Point = Eigen::Matrix<Numeric, Dim, 1>, typename T_Point = std::vector<Point, Eigen::aligned_allocator<Point> >, typename SplineBase = polynom<Time, Numeric, Dim, Safe, Point, T_Point>>
spline::spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase >::spline_deriv_constraint ( const spline_deriv_constraint< Time, Numeric, Dim, Safe, Point, T_Point, SplineBase > &  other)
inline

Copy Constructor.