17 #ifndef HPP_CONSTRAINTS_AFFINE_FUNCTION_HH 18 # define HPP_CONSTRAINTS_AFFINE_FUNCTION_HH 21 # include <hpp/constraints/config.hh> 26 namespace constraints {
69 const std::string name =
"LinearFunction")
72 J_ (J), b_ (
vector_t::Zero(J.rows()))
78 const std::string name =
"LinearFunction")
90 y.
vector ().noalias() = J_ * x + b_;
100 assert(J_.rows() == b_.rows());
101 activeParameters_ = (J_.array() != 0).colwise().any();
102 activeDerivativeParameters_ = activeParameters_;
120 const std::string name =
"ConstantFunction") :
122 (constant.rows()), name),
129 const std::string name =
"ConstantFunction") :
147 #endif // HPP_CONSTRAINTS_AFFINE_FUNCTION_HH pinocchio::vector_t vector_t
Definition: fwd.hh:45
pinocchio::vectorIn_t vectorIn_t
Definition: fwd.hh:46
Identity(const LiegroupSpacePtr_t space, const std::string &name)
Definition: affine-function.hh:45
const vector_type & vector() const
void impl_compute(LiegroupElementRef y, vectorIn_t arg) const
User implementation of function evaluation.
Definition: affine-function.hh:49
pinocchio::LiegroupSpacePtr_t LiegroupSpacePtr_t
Definition: fwd.hh:54
Eigen::Ref< const matrix_t > matrixIn_t
Definition: fwd.hh:43
void impl_jacobian(matrixOut_t J, vectorIn_t) const
Definition: affine-function.hh:137
ConstantFunction(const vector_t &constant, const size_type &sizeIn, const size_type &sizeInDer, const std::string name="ConstantFunction")
Definition: affine-function.hh:117
Definition: affine-function.hh:64
pinocchio::matrix_t matrix_t
Definition: fwd.hh:42
static IdentityPtr_t create(const LiegroupSpacePtr_t space, const std::string &name)
Definition: affine-function.hh:39
assert(d.lhs()._blocks()==d.rhs()._blocks())
Definition: differentiable-function.hh:50
Definition: affine-function.hh:113
void impl_jacobian(matrixOut_t J, vectorIn_t) const
Definition: affine-function.hh:54
const LiegroupElement c_
Definition: affine-function.hh:139
pinocchio::size_type size_type
Definition: fwd.hh:35
Eigen::Ref< matrix_t > matrixOut_t
Definition: fwd.hh:44
void impl_compute(LiegroupElementRef r, vectorIn_t) const
User implementation of function evaluation.
Definition: affine-function.hh:135
AffineFunction(const matrixIn_t &J, const std::string name="LinearFunction")
Definition: affine-function.hh:68
boost::shared_ptr< Identity > IdentityPtr_t
Definition: fwd.hh:116
AffineFunction(const matrixIn_t &J, const vectorIn_t &b, const std::string name="LinearFunction")
Definition: affine-function.hh:77
ConstantFunction(const LiegroupElement &element, const size_type &sizeIn, const size_type &sizeInDer, const std::string name="ConstantFunction")
Definition: affine-function.hh:126
Definition: affine-function.hh:35