Public Types | |
typedef ImpulseModelAbstractTpl< Scalar > | Base |
typedef ImpulseData6DTpl< Scalar > | Data |
typedef ImpulseDataAbstractTpl< Scalar > | ImpulseDataAbstract |
typedef MathBaseTpl< Scalar > | MathBase |
typedef MathBase::Matrix3s | Matrix3s |
typedef MathBase::MatrixXs | MatrixXs |
typedef StateMultibodyTpl< Scalar > | StateMultibody |
typedef MathBase::Vector2s | Vector2s |
typedef MathBase::Vector3s | Vector3s |
typedef MathBase::VectorXs | VectorXs |
Public Types inherited from ImpulseModelAbstractTpl< _Scalar > | |
typedef ImpulseDataAbstractTpl< Scalar > | ImpulseDataAbstract |
typedef MathBaseTpl< Scalar > | MathBase |
typedef MathBase::MatrixXs | MatrixXs |
typedef StateMultibodyTpl< Scalar > | StateMultibody |
typedef MathBase::VectorXs | VectorXs |
Public Member Functions | |
ImpulseModel6DTpl (boost::shared_ptr< StateMultibody > state, const pinocchio::FrameIndex id, const pinocchio::ReferenceFrame type=pinocchio::ReferenceFrame::LOCAL) | |
Initialize the 6d impulse model. More... | |
virtual void | calc (const boost::shared_ptr< ImpulseDataAbstract > &data, const Eigen::Ref< const VectorXs > &x) |
Compute the 3d impulse Jacobian. More... | |
virtual void | calcDiff (const boost::shared_ptr< ImpulseDataAbstract > &data, const Eigen::Ref< const VectorXs > &x) |
Compute the derivatives of the 3d impulse holonomic constraint. More... | |
virtual boost::shared_ptr< ImpulseDataAbstract > | createData (pinocchio::DataTpl< Scalar > *const data) |
Create the 3d impulse data. | |
virtual void | print (std::ostream &os) const |
Print relevant information of the 6d impulse model. More... | |
virtual void | updateForce (const boost::shared_ptr< ImpulseDataAbstract > &data, const VectorXs &force) |
Convert the force into a stack of spatial forces. More... | |
Public Member Functions inherited from ImpulseModelAbstractTpl< _Scalar > | |
ImpulseModelAbstractTpl (boost::shared_ptr< StateMultibody > state, const pinocchio::ReferenceFrame type, const std::size_t nc) | |
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. | |
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 |
void | updateForceDiff (const boost::shared_ptr< ImpulseDataAbstract > &data, const MatrixXs &df_dx) const |
Public Attributes | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef _Scalar | Scalar |
Public Attributes inherited from ImpulseModelAbstractTpl< _Scalar > | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef _Scalar | Scalar |
Protected Attributes | |
pinocchio::FrameIndex | id_ |
Reference frame id of the contact. | |
boost::shared_ptr< StateMultibody > | state_ |
pinocchio::ReferenceFrame | type_ |
Type of contact. | |
Protected Attributes inherited from ImpulseModelAbstractTpl< _Scalar > | |
pinocchio::FrameIndex | id_ |
Reference frame id of the contact. | |
std::size_t | nc_ |
boost::shared_ptr< StateMultibody > | state_ |
pinocchio::ReferenceFrame | type_ |
Type of contact. | |
Definition at line 22 of file impulse-6d.hpp.
ImpulseModel6DTpl | ( | boost::shared_ptr< StateMultibody > | state, |
const pinocchio::FrameIndex | id, | ||
const pinocchio::ReferenceFrame | type = pinocchio::ReferenceFrame::LOCAL |
||
) |
Initialize the 6d impulse model.
[in] | state | State of the multibody system |
[in] | id | Reference frame id of the impulse |
[in] | type | Type of impulse (default LOCAL) |
|
virtual |
Compute the 3d impulse Jacobian.
[in] | data | 3d impulse data |
[in] | x | State point \(\mathbf{x}\in\mathbb{R}^{ndx}\) |
Implements ImpulseModelAbstractTpl< _Scalar >.
|
virtual |
Compute the derivatives of the 3d impulse holonomic constraint.
[in] | data | 3d impulse data |
[in] | x | State point \(\mathbf{x}\in\mathbb{R}^{ndx}\) |
Implements ImpulseModelAbstractTpl< _Scalar >.
|
virtual |
Convert the force into a stack of spatial forces.
[in] | data | 3d impulse data |
[in] | force | 3d impulse |
Implements ImpulseModelAbstractTpl< _Scalar >.
|
virtual |
Print relevant information of the 6d impulse model.
[out] | os | Output stream object |
Reimplemented from ImpulseModelAbstractTpl< _Scalar >.