- 3.0.2 models module.
jsim.impl.h
Go to the documentation of this file.
1 
2 
3 //Implementation of default constructor
4 template <typename TRAIT>
6  linkInertias(inertiaProperties),
7  frcTransf( &forceTransforms ),
8  Link1_Ic(linkInertias.getTensor_Link1())
9 {
10  //Initialize the matrix itself
11  this->setZero();
12 }
13 
14 #define DATA tpl::JSIM<TRAIT>::operator()
15 
16 template <typename TRAIT>
18  ForceVector F;
19 
20  // Precomputes only once the coordinate transforms:
21 
22  // Initializes the composite inertia tensors
23 
24  // "Bottom-up" loop to update the inertia-composite property of each link, for the current configuration
25 
26  // Link Link1:
27 
28  F = Link1_Ic.col(iit::rbd::AZ);
30 
31 
32  return *this;
33 }
34 
35 #undef DATA
36 #undef F
37 
38 template <typename TRAIT>
40  L = this -> template triangularView<Eigen::Lower>();
41  // Joint Joint1, index 0 :
42  L(0, 0) = std::sqrt(L(0, 0));
43 
44 }
45 
46 template <typename TRAIT>
49 
50  inverse(0, 0) = + (Linv(0, 0) * Linv(0, 0));
51 }
52 
53 template <typename TRAIT>
55  //assumes L has been computed already
56  Linv(0, 0) = 1 / L(0, 0);
57 }
58 
CoreS::ForceVector ForceVector
Definition: jsim.h:39
#define DATA
Definition: jsim.impl.h:14
Definition: declarations.h:26
void computeLInverse()
Definition: jsim.impl.h:54
#define F(i, j)
Definition: jsim.impl.h:19
void computeL()
Definition: jsim.impl.h:39
iit::ct_InvertedPendulum::tpl::ForceTransforms< TRAIT > FTransforms
Definition: jsim.h:37
JSIM(IProperties &, FTransforms &)
Definition: jsim.impl.h:5
void computeInverse()
Definition: jsim.impl.h:47
const JSIM & update(const JointState &)
Definition: jsim.impl.h:17
iit::ct_InvertedPendulum::tpl::JointState< Scalar > JointState
Definition: jsim.h:32