3 template<
typename TRAIT>
5 linkInertias(inertiaProperties),
6 frcTransf( &forceTransforms ),
7 link2_Ic(linkInertias.getTensor_link2())
13 #define DATA tpl::JSIM<TRAIT>::operator() 14 #define Fcol(j) (tpl::JSIM<TRAIT>:: template block<6,1>(0,(j)+6)) 15 #define F(i,j) DATA((i),(j)+6) 17 template <
typename TRAIT>
21 frcTransf -> fr_link1_X_fr_link2(state);
22 frcTransf -> fr_body_X_fr_link1(state);
61 template <
typename TRAIT>
63 L =
this ->
template triangularView<Eigen::Lower>();
65 L(1, 1) = std::sqrt(L(1, 1));
66 L(1, 0) = L(1, 0) / L(1, 1);
67 L(0, 0) = L(0, 0) - L(1, 0) * L(1, 0);
70 L(0, 0) = std::sqrt(L(0, 0));
74 template <
typename TRAIT>
78 inverse(0, 0) = + (Linv(0, 0) * Linv(0, 0));
79 inverse(1, 1) = + (Linv(1, 0) * Linv(1, 0)) + (Linv(1, 1) * Linv(1, 1));
80 inverse(1, 0) = + (Linv(1, 0) * Linv(0, 0));
81 inverse(0, 1) = inverse(1, 0);
84 template <
typename TRAIT>
87 Linv(0, 0) = 1 / L(0, 0);
88 Linv(1, 1) = 1 / L(1, 1);
89 Linv(1, 0) = - Linv(0, 0) * ((Linv(1, 1) * L(1, 0)) + 0);
void computeL()
Definition: jsim.impl.h:62
Column2d JointState
Definition: declarations.h:23
JSIM(IProperties &, FTransforms &)
Definition: jsim.impl.h:4
Definition: declarations.h:27
#define Fcol(j)
Definition: jsim.impl.h:14
iit::ct_quadrotor::tpl::ForceTransforms< TRAIT > FTransforms
Definition: jsim.h:39
Definition: inertia_properties.h:25
void transformInertia(const InertiaMat< Scalar > &I_A, const Mat66< Scalar > &XF, InertiaMat< Scalar > &I_B)
const IMatrix & getTensor_body() const
Definition: inertia_properties.h:61
void computeLInverse()
Definition: jsim.impl.h:85
void computeInverse()
Definition: jsim.impl.h:75
const IMatrix & getTensor_link1() const
Definition: inertia_properties.h:65
#define DATA
Definition: jsim.impl.h:13
const JSIM & update(const iit::ct_quadrotor::JointState &)
Definition: jsim.impl.h:18
#define F(i, j)
Definition: jsim.impl.h:15
Definition: declarations.h:26