19 #ifndef HPP_CONSTRAINTS_DIFFERENTIABLE_FUNCTION_HH 20 # define HPP_CONSTRAINTS_DIFFERENTIABLE_FUNCTION_HH 23 # include <hpp/constraints/config.hh> 27 namespace constraints {
59 assert (argument.size () == inputSize ());
61 impl_compute (result, argument);
71 assert (argument.size () == inputSize ());
72 impl_compute (result, argument);
80 assert (argument.size () == inputSize ());
81 assert (jacobian.rows () == outputDerivativeSize ());
82 assert (jacobian.cols () == inputDerivativeSize ());
83 impl_jacobian (jacobian, argument);
90 return activeParameters_;
97 return activeDerivativeParameters_;
112 return inputDerivativeSize_;
122 return outputSpace_->nq ();
127 return outputSpace_->nv ();
132 const std::string&
name ()
const 138 virtual std::ostream& print (std::ostream&
o)
const;
159 value_type eps = std::sqrt(Eigen::NumTraits<value_type>::epsilon()))
const;
172 value_type eps = std::sqrt(Eigen::NumTraits<value_type>::epsilon()))
const;
184 std::string name = std::string ());
195 std::string name = std::string ());
223 std::string context_;
237 #endif // HPP_CONSTRAINTS_DIFFERENTIABLE_FUNCTION_HH pinocchio::vectorIn_t vectorIn_t
Definition: fwd.hh:46
std::ostream & operator<<(std::ostream &os, const DifferentiableFunction &f)
Definition: differentiable-function.hh:228
ArrayXb activeParameters_
Definition: differentiable-function.hh:214
pinocchio::LiegroupSpacePtr_t LiegroupSpacePtr_t
Definition: fwd.hh:54
virtual std::ostream & print(std::ostream &o) const
Display object in a stream.
pinocchio::DevicePtr_t DevicePtr_t
Definition: fwd.hh:91
size_type outputDerivativeSize() const
Get dimension of output derivative vector.
Definition: differentiable-function.hh:125
size_type inputSize_
Dimension of input vector.
Definition: differentiable-function.hh:205
size_type inputDerivativeSize() const
Definition: differentiable-function.hh:110
LiegroupSpacePtr_t outputSpace_
Dimension of output vector.
Definition: differentiable-function.hh:209
size_type outputSize() const
Get dimension of output vector.
Definition: differentiable-function.hh:120
pinocchio::ArrayXb ArrayXb
Definition: fwd.hh:65
Definition: differentiable-function-set.hh:33
size_type inputDerivativeSize_
Dimension of input derivative.
Definition: differentiable-function.hh:207
void value(LiegroupElementRef result, vectorIn_t argument) const
Definition: differentiable-function.hh:67
const std::string & name() const
Get function name.
Definition: differentiable-function.hh:132
assert(d.lhs()._blocks()==d.rhs()._blocks())
void jacobian(matrixOut_t jacobian, vectorIn_t argument) const
Definition: differentiable-function.hh:78
const ArrayXb & activeParameters() const
Definition: differentiable-function.hh:88
Definition: differentiable-function.hh:50
const ArrayXb & activeDerivativeParameters() const
Definition: differentiable-function.hh:95
void context(const std::string &c)
Definition: differentiable-function.hh:144
size_type inputSize() const
Get dimension of input vector.
Definition: differentiable-function.hh:101
std::string context() const
Definition: differentiable-function.hh:140
LiegroupSpacePtr_t outputSpace() const
Get output space.
Definition: differentiable-function.hh:115
pinocchio::size_type size_type
Definition: fwd.hh:35
Eigen::Ref< matrix_t > matrixOut_t
Definition: fwd.hh:44
pinocchio::value_type value_type
Definition: fwd.hh:36
virtual ~DifferentiableFunction()
Definition: differentiable-function.hh:53
ArrayXb activeDerivativeParameters_
Definition: differentiable-function.hh:218