Crocoddyl
ImpulseModelAbstractTpl< _Scalar > Class Template Referenceabstract
Inheritance diagram for ImpulseModelAbstractTpl< _Scalar >:
ImpulseModel3DTpl< _Scalar > ImpulseModel6DTpl< _Scalar >

Public Types

typedef ImpulseDataAbstractTpl< Scalar > ImpulseDataAbstract
 
typedef MathBaseTpl< Scalar > MathBase
 
typedef MathBase::MatrixXs MatrixXs
 
typedef StateMultibodyTpl< Scalar > StateMultibody
 
typedef MathBase::VectorXs VectorXs
 

Public Member Functions

 ImpulseModelAbstractTpl (boost::shared_ptr< StateMultibody > state, const pinocchio::ReferenceFrame type, const std::size_t nc)
 
virtual void calc (const boost::shared_ptr< ImpulseDataAbstract > &data, const Eigen::Ref< const VectorXs > &x)=0
 
virtual void calcDiff (const boost::shared_ptr< ImpulseDataAbstract > &data, const Eigen::Ref< const VectorXs > &x)=0
 
virtual boost::shared_ptr< ImpulseDataAbstractcreateData (pinocchio::DataTpl< Scalar > *const data)
 
 DEPRECATED ("Use constructor that passes the type type of contact, this assumes is " "pinocchio::LOCAL", ImpulseModelAbstractTpl(boost::shared_ptr< StateMultibody > state, const std::size_t nc);) virtual ~ImpulseModelAbstractTpl()
 
DEPRECATED("Use get_nc().", std::size_t get_ni() const ;) std pinocchio::FrameIndex get_id () const
 Return the reference frame id.
 
std::size_t get_nc () const
 
const boost::shared_ptr< StateMultibody > & get_state () const
 
pinocchio::ReferenceFrame get_type () const
 Return the type of contact.
 
virtual void print (std::ostream &os) const
 Print relevant information of the impulse model. More...
 
void set_id (const pinocchio::FrameIndex id)
 Modify the reference frame id.
 
void set_type (const pinocchio::ReferenceFrame type)
 Modify the type of contact.
 
void setZeroForce (const boost::shared_ptr< ImpulseDataAbstract > &data) const
 
void setZeroForceDiff (const boost::shared_ptr< ImpulseDataAbstract > &data) const
 
virtual void updateForce (const boost::shared_ptr< ImpulseDataAbstract > &data, const VectorXs &force)=0
 
void updateForceDiff (const boost::shared_ptr< ImpulseDataAbstract > &data, const MatrixXs &df_dx) const
 

Public Attributes

EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef _Scalar Scalar
 

Protected Attributes

pinocchio::FrameIndex id_
 Reference frame id of the contact.
 
std::size_t nc_
 
boost::shared_ptr< StateMultibodystate_
 
pinocchio::ReferenceFrame type_
 Type of contact.
 

Friends

template<class Scalar >
std::ostream & operator<< (std::ostream &os, const ImpulseModelAbstractTpl< Scalar > &model)
 Print information on the impulse model.
 

Detailed Description

template<typename _Scalar>
class crocoddyl::ImpulseModelAbstractTpl< _Scalar >

Definition at line 21 of file impulse-base.hpp.

Member Function Documentation

◆ print()

virtual void print ( std::ostream &  os) const
virtual

Print relevant information of the impulse model.

Parameters
[out]osOutput stream object

Reimplemented in ImpulseModel6DTpl< _Scalar >, and ImpulseModel3DTpl< _Scalar >.


The documentation for this class was generated from the following files: