Constraint function on a spline's interval. More...
#include <roboptim/trajectory/constraints-over-splines.hh>
Public Types | |
typedef S::polynomial_t | polynomial_t |
typedef Function::interval_t | interval_t |
typedef std::vector< polynomial_t > | polynomials_t |
typedef S | spline_t |
typedef boost::shared_ptr < spline_t > | splinePtr_t |
typedef std::vector < boost::shared_ptr< S > > | splines_t |
Public Member Functions | |
ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ (roboptim::GenericDifferentiableFunction< T >) | |
ConstraintsOverSplines (const splines_t &splines, size_t splineIdx, unsigned int order, value_type startingPoint, size_type inputSize) | |
Constructor. More... | |
Protected Member Functions | |
polynomial_t | toPoly (const_argument_ref x) const |
virtual void | impl_compute (result_ref result, const_argument_ref x) const |
virtual void | impl_gradient (gradient_ref grad, const_argument_ref x, size_type i) const |
Static Protected Member Functions | |
static std::string | GenerateName (const splines_t &splines, size_t splineIdx, unsigned int order, value_type startingPoint) |
Generate the name of the constraint. More... | |
static interval_t | ComputeInterval (const splines_t &splines, size_t splineIdx, value_type startingPoint) |
Compute the range of the time interval. More... | |
static size_t | ComputeIntervalIdx (const splines_t &splines, size_t splineIdx, value_type startingPoint) |
Determine the interval index of the constraint. More... | |
static size_type | ComputeStartIdx (const splines_t &splines, size_t splineIdx) |
Determine the first index in the argument vector, assuming all joint control points are contiguous. More... | |
Protected Attributes | |
size_t | order_ |
Order of the spline (e.g. 3 for cubic). More... | |
S::interval_t | interval_ |
Time range of the constraint. More... | |
size_type | startingIndex_ |
Index of the influencing control points. More... | |
polynomials_t | basisPolynomials_ |
Basis polynomials used for gradient computation. More... | |
spline_t | spline_ |
Constrained spline. More... | |
size_t | intervalIdx_ |
Index of the constrained time interval. More... | |
Constraint function on a spline's interval.
T | Matrix type |
S | Spline type |
typedef Function::interval_t roboptim::trajectory::ConstraintsOverSplines< T, S >::interval_t |
typedef S::polynomial_t roboptim::trajectory::ConstraintsOverSplines< T, S >::polynomial_t |
typedef std::vector<polynomial_t> roboptim::trajectory::ConstraintsOverSplines< T, S >::polynomials_t |
typedef S roboptim::trajectory::ConstraintsOverSplines< T, S >::spline_t |
typedef boost::shared_ptr<spline_t> roboptim::trajectory::ConstraintsOverSplines< T, S >::splinePtr_t |
typedef std::vector<boost::shared_ptr<S> > roboptim::trajectory::ConstraintsOverSplines< T, S >::splines_t |
roboptim::trajectory::ConstraintsOverSplines< T, S >::ConstraintsOverSplines | ( | const splines_t & | splines, |
size_t | splineIdx, | ||
unsigned int | order, | ||
value_type | startingPoint, | ||
size_type | inputSize | ||
) |
Constructor.
splines | vector of splines. |
splineIdx | index of the spline to constrain. |
order | derivation order of the spline to constain. |
startingPoint | starting point of the constraint. |
inputSize | input size of the problem. |
|
staticprotected |
Compute the range of the time interval.
splines | vector of splines. |
splineIdx | index of the spline to constrain. |
startingPoint | starting point of the constraint. |
|
staticprotected |
Determine the interval index of the constraint.
splines | vector of splines. |
splineIdx | index of the spline to constrain. |
startingPoint | starting point of the constraint. |
|
staticprotected |
Determine the first index in the argument vector, assuming all joint control points are contiguous.
splines | vector of splines. |
splineIdx | index of the spline to constrain. |
|
staticprotected |
Generate the name of the constraint.
splines | vector of splines. |
splineIdx | index of the spline to constrain. |
order | derivation order of the spline to constain. |
startingPoint | starting point of the constraint. |
|
protectedvirtual |
|
protectedvirtual |
roboptim::trajectory::ConstraintsOverSplines< T, S >::ROBOPTIM_DIFFERENTIABLE_FUNCTION_FWD_TYPEDEFS_ | ( | roboptim::GenericDifferentiableFunction< T > | ) |
|
protected |
|
protected |
Basis polynomials used for gradient computation.
|
protected |
Time range of the constraint.
|
protected |
Index of the constrained time interval.
|
protected |
Order of the spline (e.g. 3 for cubic).
|
mutableprotected |
Constrained spline.
|
protected |
Index of the influencing control points.