4 template <
typename TRAIT>
6 linkInertias(inertiaProperties),
7 frcTransf( &forceTransforms ),
8 Link2_Ic(linkInertias.getTensor_Link2())
14 #define DATA tpl::JSIM<TRAIT>::operator() 16 template <
typename TRAIT>
21 frcTransf -> fr_Link1_X_fr_Link2(state);
29 iit::rbd::transformInertia<Scalar>(Link2_Ic, frcTransf -> fr_Link1_X_fr_Link2, Ic_spare);
35 F = frcTransf -> fr_Link1_X_fr_Link2 *
F;
51 template <
typename TRAIT>
53 L =
this ->
template triangularView<Eigen::Lower>();
55 L(1, 1) = std::sqrt(L(1, 1));
56 L(1, 0) = L(1, 0) / L(1, 1);
57 L(0, 0) = L(0, 0) - L(1, 0) * L(1, 0);
60 L(0, 0) = std::sqrt(L(0, 0));
64 template <
typename TRAIT>
68 inverse(0, 0) = + (Linv(0, 0) * Linv(0, 0));
69 inverse(1, 1) = + (Linv(1, 0) * Linv(1, 0)) + (Linv(1, 1) * Linv(1, 1));
70 inverse(1, 0) = + (Linv(1, 0) * Linv(0, 0));
71 inverse(0, 1) = inverse(1, 0);
74 template <
typename TRAIT>
77 Linv(0, 0) = 1 / L(0, 0);
78 Linv(1, 1) = 1 / L(1, 1);
79 Linv(1, 0) = - Linv(0, 0) * ((Linv(1, 1) * L(1, 0)) + 0);
JSIM(IProperties &, FTransforms &)
Definition: jsim.impl.h:5
Definition: declarations.h:27
void computeL()
Definition: jsim.impl.h:52
const JSIM & update(const JointState &)
Definition: jsim.impl.h:17
Definition: declarations.h:26
CoreS::ForceVector ForceVector
Definition: jsim.h:39
iit::ct_DoubleInvertedPendulum::tpl::ForceTransforms< TRAIT > FTransforms
Definition: jsim.h:37
#define F(i, j)
Definition: jsim.impl.h:19
const IMatrix & getTensor_Link1() const
Definition: inertia_properties.h:55
void computeLInverse()
Definition: jsim.impl.h:75
void computeInverse()
Definition: jsim.impl.h:65
#define DATA
Definition: jsim.impl.h:14
iit::ct_DoubleInvertedPendulum::tpl::JointState< Scalar > JointState
Definition: jsim.h:32
Definition: inertia_properties.h:24