- 3.0.2 models module.
inertia_properties.impl.h
Go to the documentation of this file.
1 template <typename TRAIT>
3 {
4  com_trunk = iit::rbd::Vector3d(-0.0223,-1.0E-4,0.0387).cast<Scalar>();
5  tensor_trunk.fill(
6  Scalar(53.433),
7  com_trunk,
8  rbd::Utils::buildInertiaTensor(
9  Scalar(1.209488),
10  Scalar(5.5837),
11  Scalar(6.056973),
12  Scalar(0.00571),
13  Scalar(-0.190812),
14  Scalar(-0.012668)) );
15 
16  com_LF_hipassembly = iit::rbd::Vector3d(0.04263,0.0,0.16931).cast<Scalar>();
17  tensor_LF_hipassembly.fill(
18  Scalar(3.44),
19  com_LF_hipassembly,
20  rbd::Utils::buildInertiaTensor(
21  Scalar(0.134705),
22  Scalar(0.144171),
23  Scalar(0.011033),
24  Scalar(3.6E-5),
25  Scalar(0.022734),
26  Scalar(5.1E-5)) );
27 
28  com_LF_upperleg = iit::rbd::Vector3d(0.15074,-0.02625,-0.0).cast<Scalar>();
29  tensor_LF_upperleg.fill(
30  Scalar(3.146),
31  com_LF_upperleg,
32  rbd::Utils::buildInertiaTensor(
33  Scalar(0.005495),
34  Scalar(0.087136),
35  Scalar(0.089871),
36  Scalar(-0.007418),
37  Scalar(-1.02E-4),
38  Scalar(-2.1E-5)) );
39 
40  com_LF_lowerleg = iit::rbd::Vector3d(0.1254,5.0E-4,-1.0E-4).cast<Scalar>();
41  tensor_LF_lowerleg.fill(
42  Scalar(0.881),
43  com_LF_lowerleg,
44  rbd::Utils::buildInertiaTensor(
45  Scalar(4.68E-4),
46  Scalar(0.026409),
47  Scalar(0.026181),
48  Scalar(0.0),
49  Scalar(0.0),
50  Scalar(0.0)) );
51 
52  com_RF_hipassembly = iit::rbd::Vector3d(0.04263,-0.0,-0.16931).cast<Scalar>();
53  tensor_RF_hipassembly.fill(
54  Scalar(3.44),
55  com_RF_hipassembly,
56  rbd::Utils::buildInertiaTensor(
57  Scalar(0.134705),
58  Scalar(0.144171),
59  Scalar(0.011033),
60  Scalar(-3.6E-5),
61  Scalar(-0.022734),
62  Scalar(5.1E-5)) );
63 
64  com_RF_upperleg = iit::rbd::Vector3d(0.15074,-0.02625,-0.0).cast<Scalar>();
65  tensor_RF_upperleg.fill(
66  Scalar(3.146),
67  com_RF_upperleg,
68  rbd::Utils::buildInertiaTensor(
69  Scalar(0.005495),
70  Scalar(0.087136),
71  Scalar(0.089871),
72  Scalar(-0.007418),
73  Scalar(-1.02E-4),
74  Scalar(-2.1E-5)) );
75 
76  com_RF_lowerleg = iit::rbd::Vector3d(0.1254,5.0E-4,-1.0E-4).cast<Scalar>();
77  tensor_RF_lowerleg.fill(
78  Scalar(0.881),
79  com_RF_lowerleg,
80  rbd::Utils::buildInertiaTensor(
81  Scalar(4.68E-4),
82  Scalar(0.026409),
83  Scalar(0.026181),
84  Scalar(0.0),
85  Scalar(0.0),
86  Scalar(0.0)) );
87 
88  com_LH_hipassembly = iit::rbd::Vector3d(0.04263,-0.0,-0.16931).cast<Scalar>();
89  tensor_LH_hipassembly.fill(
90  Scalar(3.44),
91  com_LH_hipassembly,
92  rbd::Utils::buildInertiaTensor(
93  Scalar(0.134705),
94  Scalar(0.144171),
95  Scalar(0.011033),
96  Scalar(-3.6E-5),
97  Scalar(-0.022734),
98  Scalar(5.1E-5)) );
99 
100  com_LH_upperleg = iit::rbd::Vector3d(0.15074,0.02625,0.0).cast<Scalar>();
101  tensor_LH_upperleg.fill(
102  Scalar(3.146),
103  com_LH_upperleg,
104  rbd::Utils::buildInertiaTensor(
105  Scalar(0.005495),
106  Scalar(0.087136),
107  Scalar(0.089871),
108  Scalar(0.007418),
109  Scalar(1.02E-4),
110  Scalar(-2.1E-5)) );
111 
112  com_LH_lowerleg = iit::rbd::Vector3d(0.125,-0.001,0.0).cast<Scalar>();
113  tensor_LH_lowerleg.fill(
114  Scalar(0.881),
115  com_LH_lowerleg,
116  rbd::Utils::buildInertiaTensor(
117  Scalar(4.68E-4),
118  Scalar(0.026409),
119  Scalar(0.026181),
120  Scalar(0.0),
121  Scalar(0.0),
122  Scalar(0.0)) );
123 
124  com_RH_hipassembly = iit::rbd::Vector3d(0.04263,0.0,0.16931).cast<Scalar>();
125  tensor_RH_hipassembly.fill(
126  Scalar(3.44),
127  com_RH_hipassembly,
128  rbd::Utils::buildInertiaTensor(
129  Scalar(0.134705),
130  Scalar(0.144171),
131  Scalar(0.011033),
132  Scalar(3.6E-5),
133  Scalar(0.022734),
134  Scalar(5.1E-5)) );
135 
136  com_RH_upperleg = iit::rbd::Vector3d(0.15074,0.02625,0.0).cast<Scalar>();
137  tensor_RH_upperleg.fill(
138  Scalar(3.146),
139  com_RH_upperleg,
140  rbd::Utils::buildInertiaTensor(
141  Scalar(0.005495),
142  Scalar(0.087136),
143  Scalar(0.089871),
144  Scalar(0.007418),
145  Scalar(1.02E-4),
146  Scalar(-2.1E-5)) );
147 
148  com_RH_lowerleg = iit::rbd::Vector3d(0.1254,-5.0E-4,1.0E-4).cast<Scalar>();
149  tensor_RH_lowerleg.fill(
150  Scalar(0.881),
151  com_RH_lowerleg,
152  rbd::Utils::buildInertiaTensor(
153  Scalar(4.68E-4),
154  Scalar(0.026409),
155  Scalar(0.026181),
156  Scalar(0.0),
157  Scalar(0.0),
158  Scalar(0.0)) );
159 
160 }
161 
Cored::Vector3 Vector3d
ct::core::ADCodegenLinearizer< state_dim, control_dim >::ADCGScalar Scalar
Definition: HyALinearizationCodeGen.cpp:23
InertiaProperties()
Definition: inertia_properties.impl.h:2