17 #ifndef HPP_CONSTRAINTS_ACTIVE_SET_DIFFERENTIABLE_FUNCTION_HH 18 #define HPP_CONSTRAINTS_ACTIVE_SET_DIFFERENTIABLE_FUNCTION_HH 21 #include <hpp/constraints/config.hh> 25 namespace constraints {
46 f->inputSize(), f->inputDerivativeSize(),
48 "ActiveSet_on_" + f->name ())
50 , intervals_(intervals)
52 context (f->context());
74 function_->value(result, argument);
80 function_->jacobian(jacobian, arg);
81 for (segments_t::const_iterator _int = intervals_.begin ();
82 _int != intervals_.end (); ++_int)
83 jacobian.middleCols (_int->first, _int->second).setZero ();
92 #endif // HPP_CONSTRAINTS_ACTIVE_SET_DIFFERENTIABLE_FUNCTION_HH pinocchio::vectorIn_t vectorIn_t
Definition: fwd.hh:46
std::vector< segment_t > segments_t
Definition: fwd.hh:69
std::vector< segments_t > intervalss_t
Definition: active-set-differentiable-function.hh:68
segments_t intervals_
Definition: active-set-differentiable-function.hh:87
DifferentiableFunctionPtr_t function_
Definition: active-set-differentiable-function.hh:86
ActiveSetDifferentiableFunction(const DifferentiableFunctionPtr_t &f, segments_t intervals)
Definition: active-set-differentiable-function.hh:43
Definition: differentiable-function.hh:50
boost::shared_ptr< DifferentiableFunction > DifferentiableFunctionPtr_t
Definition: fwd.hh:95
Eigen::Ref< matrix_t > matrixOut_t
Definition: fwd.hh:44
virtual void impl_jacobian(matrixOut_t jacobian, vectorIn_t arg) const
Definition: active-set-differentiable-function.hh:77
virtual void impl_compute(LiegroupElementRef result, vectorIn_t argument) const
User implementation of function evaluation.
Definition: active-set-differentiable-function.hh:71
Definition: active-set-differentiable-function.hh:35
const DifferentiableFunctionPtr_t & functionPtr() const
Get the original function.
Definition: active-set-differentiable-function.hh:62