roboptim::trajectory::SplineLength Class Reference

Approximate the length of a Spline. More...

#include <roboptim/trajectory/spline-length.hh>

Inheritance diagram for roboptim::trajectory::SplineLength:
roboptim::trajectory::TrajectoryCost< CubicBSpline > DerivableFunction

List of all members.

Public Member Functions

 SplineLength (const CubicBSpline &spline, const size_type nDiscretizationPoints=100, boost::optional< interval_t > interval=boost::none_t())
 Construct the function from a Spline and a definition interval.
virtual ~SplineLength ()

Protected Member Functions

void impl_compute (result_ref, const_argument_ref) const
void impl_gradient (gradient_ref, const_argument_ref, size_type) const

Detailed Description

Approximate the length of a Spline.

The length is computed using:

\[\frac{1}{2} \int_{t_{min}}^{t_{max}} ||\ddot{\Gamma_p(t)}||^2 dt\]

$t_{min}$ and $t_{max}$ are given when the object is instantiated.

Examples:
spline-optimization.cc.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines