Go to the documentation of this file.
5 #ifndef __pinocchio_algorithm_constraint_model_base_hpp__
6 #define __pinocchio_algorithm_constraint_model_base_hpp__
14 template<
class Derived>
30 return static_cast<Derived &
>(*this);
34 return static_cast<const Derived &
>(*this);
37 template<
typename NewScalar>
40 return derived().template cast<NewScalar>();
45 template<
int Options,
template<
typename,
int>
class JointCollectionTpl>
54 template<
typename JacobianMatrix,
int Options,
template<
typename,
int>
class JointCollectionTpl>
59 const Eigen::MatrixBase<JacobianMatrix> & jacobian_matrix)
const
61 derived().jacobian(
model,
data, cdata, jacobian_matrix.const_cast_derived());
75 template<
typename OtherDerived>
82 template<
typename OtherDerived>
98 template<
int Options,
template<
typename,
int>
class JointCollectionTpl>
102 static const bool default_sparsity_value =
false;
123 #endif // ifndef __pinocchio_algorithm_constraint_model_base_hpp__
traits< Derived >::Scalar Scalar
ConstraintModelBase(const ModelTpl< Scalar, Options, JointCollectionTpl > &model)
ConstraintModelBase & base()
CastType< NewScalar, Derived >::type cast() const
const Derived & derived() const
int nv(const JointModelTpl< Scalar, Options, JointCollectionTpl > &jmodel)
Visit a JointModelTpl through JointNvVisitor to get the dimension of the joint tangent space.
void calc(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const DataTpl< Scalar, Options, JointCollectionTpl > &data, ConstraintData &cdata) const
Evaluate the constraint values at the current state given by data and store the results in cdata.
IndexVector colwise_span_indexes
Indexes of the columns spanned by the constraints.
BooleanVector colwise_sparsity
Sparsity pattern associated to the constraint;.
ConstraintModelBase & operator=(const ConstraintModelBase< OtherDerived > &other)
bool operator==(const ConstraintModelBase< OtherDerived > &other) const
std::vector< Eigen::DenseIndex > IndexVector
ConstraintData createData() const
std::string name
Name of the constraint.
const ConstraintModelBase & base() const
ConstraintModelBase()
Default constructor.
Common traits structure to fully define base classes for CRTP.
Type of the cast of a class C templated by Scalar and Options, to a new NewScalar type....
traits< Derived >::ConstraintData ConstraintData
JointCollectionTpl & model
Main pinocchio namespace.
void jacobian(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const DataTpl< Scalar, Options, JointCollectionTpl > &data, ConstraintData &cdata, const Eigen::MatrixBase< JacobianMatrix > &jacobian_matrix) const
Eigen::Matrix< bool, Eigen::Dynamic, 1, Options > BooleanVector
pinocchio
Author(s):
autogenerated on Fri Nov 1 2024 02:41:42