9 #ifndef CROCODDYL_CORE_DATA_JOINT_HPP_
10 #define CROCODDYL_CORE_DATA_JOINT_HPP_
12 #include <boost/shared_ptr.hpp>
14 #include "crocoddyl/core/data-collector-base.hpp"
15 #include "crocoddyl/core/data/actuation.hpp"
16 #include "crocoddyl/core/fwd.hpp"
17 #include "crocoddyl/core/state-base.hpp"
21 template <
typename _Scalar>
23 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
25 typedef _Scalar Scalar;
29 typedef typename MathBase::VectorXs VectorXs;
30 typedef typename MathBase::MatrixXs MatrixXs;
41 boost::shared_ptr<ActuationModelAbstract> actuation,
43 :
tau(actuation->get_nu()),
45 dtau_dx(actuation->get_nu(), state->get_ndx()),
46 dtau_du(actuation->get_nu(), nu),
47 da_dx(state->get_nv(), state->get_ndx()),
48 da_du(state->get_nv(), nu) {
70 template <
typename Scalar>
72 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
78 boost::shared_ptr<JointDataAbstractTpl<Scalar> > joint;
81 template <
typename Scalar>
83 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
97 boost::shared_ptr<JointDataAbstractTpl<Scalar> > joint;
Abstract class for the actuation-mapping model.
Abstract class for the state representation.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW DataCollectorJointActuationTpl(boost::shared_ptr< ActuationDataAbstractTpl< Scalar > > actuation, boost::shared_ptr< JointDataAbstractTpl< Scalar > > joint)
Initialize the joint-actuation data collector.
VectorXs a
Generalized joint acceleration.
VectorXs tau
Joint efforts.
JointDataAbstractTpl(boost::shared_ptr< StateAbstract > state, boost::shared_ptr< ActuationModelAbstract > actuation, const std::size_t nu)
Initialize a joint data structure containing generalized accelerations and joint efforts,...