18 template <
size_t NJOINTS,
typename SCALAR =
double>
22 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
52 const typename BASE::act_state_vector_t& actState)
override;
59 std::vector<ct::core::tpl::SecondOrderSystem<SCALAR>> oscillators_;
joint state and joint velocity
Definition: JointState.h:21
virtual core::ControlVector< NJOINTS, SCALAR > computeControlOutput(const JointState< NJOINTS, SCALAR > &robotJointState, const typename BASE::act_state_vector_t &actState) override
Definition: SecondOrderActuatorDynamics-impl.h:86
virtual ct::core::StateVector< 2 *NJOINTS, SCALAR > computeStateFromOutput(const JointState< NJOINTS, SCALAR > &refRobotJointState, const core::ControlVector< NJOINTS, SCALAR > &refControl) override
reconstruct actuator state from a desired control output and robot joint state (e.g. for initialization)
Definition: SecondOrderActuatorDynamics-impl.h:95
SecondOrderActuatorDynamics(double w_n, double zeta)
constructor assuming unit amplification
Definition: SecondOrderActuatorDynamics-impl.h:12
virtual SecondOrderActuatorDynamics< NJOINTS, SCALAR > * clone() const override
deep cloning
Definition: SecondOrderActuatorDynamics-impl.h:55
virtual void computeActuatorDynamics(const JointState< NJOINTS, SCALAR > &robotJointState, const ct::core::StateVector< 2 *NJOINTS, SCALAR > &state, const SCALAR &t, const ct::core::ControlVector< NJOINTS, SCALAR > &control, ct::core::StateVector< 2 *NJOINTS, SCALAR > &derivative) override
Definition: SecondOrderActuatorDynamics-impl.h:61
CppAD::AD< CppAD::cg::CG< double > > SCALAR
Definition: SecondOrderActuatorDynamics.h:19
Definition: ActuatorDynamics.h:25
virtual ~SecondOrderActuatorDynamics()
destructor
Definition: SecondOrderActuatorDynamics-impl.h:50
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef ActuatorDynamics< 2 *NJOINTS, NJOINTS, SCALAR > BASE
Definition: SecondOrderActuatorDynamics.h:24