Full actuation model. More...
#include <full.hpp>
Public Types | |
typedef ActuationModelAbstractTpl< Scalar > | Base |
typedef ActuationDataAbstractTpl< Scalar > | Data |
typedef MathBaseTpl< Scalar > | MathBase |
typedef MathBase::MatrixXs | MatrixXs |
typedef _Scalar | Scalar |
typedef StateAbstractTpl< Scalar > | StateAbstract |
typedef MathBase::VectorXs | VectorXs |
![]() | |
typedef ActuationDataAbstractTpl< Scalar > | ActuationDataAbstract |
typedef MathBaseTpl< Scalar > | MathBase |
typedef MathBase::MatrixXs | MatrixXs |
typedef StateAbstractTpl< Scalar > | StateAbstract |
typedef MathBase::VectorXs | VectorXs |
Public Member Functions | |
ActuationModelFullTpl (std::shared_ptr< StateAbstract > state) | |
Initialize the full actuation model. | |
virtual void | calc (const std::shared_ptr< Data > &data, const Eigen::Ref< const VectorXs > &, const Eigen::Ref< const VectorXs > &u) |
Compute the full actuation. | |
virtual void | calcDiff (const std::shared_ptr< Data > &data, const Eigen::Ref< const VectorXs > &, const Eigen::Ref< const VectorXs > &) |
Compute the Jacobians of the full actuation model. | |
virtual void | commands (const std::shared_ptr< Data > &data, const Eigen::Ref< const VectorXs > &, const Eigen::Ref< const VectorXs > &tau) |
Compute the joint torque input from the generalized torques. | |
virtual std::shared_ptr< Data > | createData () |
Create the full actuation data. | |
virtual void | torqueTransform (const std::shared_ptr< Data > &data, const Eigen::Ref< const VectorXs > &, const Eigen::Ref< const VectorXs > &) |
Compute the torque transform from generalized torques to joint torque inputs. | |
![]() | |
ActuationModelAbstractTpl (std::shared_ptr< StateAbstract > state, const std::size_t nu) | |
Initialize the actuation model. | |
void | calc (const std::shared_ptr< ActuationDataAbstract > &data, const Eigen::Ref< const VectorXs > &x) |
Ignore the computation of the actuation signal. | |
void | calcDiff (const std::shared_ptr< ActuationDataAbstract > &data, const Eigen::Ref< const VectorXs > &x) |
Ignore the computation of the Jacobians of the actuation function. | |
std::size_t | get_nu () const |
Return the dimension of the joint-torque input. | |
const std::shared_ptr< StateAbstract > & | get_state () const |
Return the state. | |
virtual void | print (std::ostream &os) const |
Print relevant information of the residual model. | |
Protected Attributes | |
std::size_t | nu_ |
Dimension of joint torque inputs. | |
std::shared_ptr< StateAbstract > | state_ |
Model of the state. | |
![]() | |
std::size_t | nu_ |
Dimension of joint torque inputs. | |
std::shared_ptr< StateAbstract > | state_ |
Model of the state. | |
Additional Inherited Members | |
![]() | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef _Scalar | Scalar |
Full actuation model.
This actuation model applies input controls for all the nv
dimensions of the system.
Both actuation and Jacobians are computed analytically by calc
and calcDiff
, respectively.
ActuationModelAbstractTpl
, calc()
, calcDiff()
, createData()
typedef MathBaseTpl<Scalar> MathBase |
typedef ActuationModelAbstractTpl<Scalar> Base |
typedef ActuationDataAbstractTpl<Scalar> Data |
typedef StateAbstractTpl<Scalar> StateAbstract |
typedef MathBase::VectorXs VectorXs |
typedef MathBase::MatrixXs MatrixXs |
|
inlineexplicit |
|
inlinevirtual |
|
inlinevirtual |
Compute the full actuation.
[in] | data | Full actuation data |
[in] | x | State point \(\mathbf{x}\in\mathbb{R}^{ndx}\) |
[in] | u | Joint torque input \(\mathbf{u}\in\mathbb{R}^{nu}\) |
Implements ActuationModelAbstractTpl< _Scalar >.
|
inlinevirtual |
Compute the Jacobians of the full actuation model.
[in] | data | Full actuation data |
[in] | x | State point \(\mathbf{x}\in\mathbb{R}^{ndx}\) |
[in] | u | Joint torque input \(\mathbf{u}\in\mathbb{R}^{nu}\) |
Implements ActuationModelAbstractTpl< _Scalar >.
|
inlinevirtual |
Compute the joint torque input from the generalized torques.
It stores the results in ActuationDataAbstractTpl::u
.
[in] | data | Actuation data |
[in] | x | State point \(\mathbf{x}\in\mathbb{R}^{ndx}\) |
[in] | tau | Generalized torques \(\mathbf{u}\in\mathbb{R}^{nv}\) |
Implements ActuationModelAbstractTpl< _Scalar >.
|
inlinevirtual |
Compute the torque transform from generalized torques to joint torque inputs.
It stores the results in ActuationDataAbstractTpl::Mtau
.
[in] | data | Actuation data |
[in] | x | State point \(\mathbf{x}\in\mathbb{R}^{ndx}\) |
[in] | tau | Joint-torque inputs \(\mathbf{u}\in\mathbb{R}^{nu}\) |
Reimplemented from ActuationModelAbstractTpl< _Scalar >.
|
inlinevirtual |
Create the full actuation data.
[in] | data | shared data (it should be of type DataCollectorContactTpl) |
Reimplemented from ActuationModelAbstractTpl< _Scalar >.
|
protected |
Dimension of joint torque inputs.
Definition at line 172 of file actuation-base.hpp.
|
protected |
Model of the state.
Definition at line 173 of file actuation-base.hpp.