Switch to unified view

a b/tests/MFD_tests/testModel.osim
1
<?xml version="1.0" encoding="UTF-8"?>
2
<OpenSimDocument Version="20302">
3
    <Model name="MuscleForceDirection Test Model">
4
        <defaults/>
5
        <credits> Luca Modenese (l.modenese08@imperial.ac.uk)</credits>
6
        <publications> This is an example model distributed with the MuscleForceDirection plugin </publications>
7
        <ForceSet name="">
8
            <objects>
9
                <Thelen2003Muscle name="MuscleStraight">
10
                    <GeometryPath name="">
11
                        <PathPointSet name="">
12
                            <objects>
13
                                <PathPoint name="Straight-P1">
14
                                    <location>      0.00000000      0.000000000       0.00000000 </location>
15
                                    <body> ground </body>
16
                                </PathPoint>
17
                                <PathPoint name="Straight-P2">
18
                                    <location>      0.300000000       0.00000000      0.00000000 </location>
19
                                    <body> MovingBody </body>
20
                                </PathPoint>
21
                            </objects>
22
                            <groups/>
23
                        </PathPointSet>
24
                    </GeometryPath>
25
                </Thelen2003Muscle>
26
                <Thelen2003Muscle name="MuscleViaPoint">
27
                    <GeometryPath name="">
28
                        <PathPointSet name="">
29
                            <objects>
30
                                <PathPoint name="ViaPoint-P1">
31
                                    <location>       -0.200000000      0.000000000       0.100000000 </location>
32
                                    <body> ground </body>
33
                                </PathPoint>
34
                                <PathPoint name="ViaPoint-P2">
35
                                    <location>      -0.3000      0.000       0.100000 </location>
36
                                    <body> ground </body>
37
                                </PathPoint>
38
                                <PathPoint name="ViaPoint-P3">
39
                                    <location>       -0.200000000      -0.2000       0.1000000000 </location>
40
                                    <body> ground </body>
41
                                </PathPoint>
42
                                <PathPoint name="ViaPoint-P3">
43
                                    <location>       0.00000000      0.000000000       0.100000000 </location>
44
                                    <body> ground </body>
45
                                </PathPoint>
46
                                <PathPoint name="ViaPoint-P3">
47
                                    <location>       0.300000000      0.000000000       0.100000000 </location>
48
                                    <body> MovingBody </body>
49
                                </PathPoint>
50
                                <PathPoint name="ViaPoint-P4">
51
                                    <location>        0.50000000      0.2000       0.1000000000 </location>
52
                                    <body> MovingBody </body>
53
                                </PathPoint>
54
                                <PathPoint name="ViaPoint-P5">
55
                                    <location>       0.7000      0.000       0.100000 </location>
56
                                    <body> MovingBody </body>
57
                                </PathPoint>
58
                                <PathPoint name="ViaPoint-P5">
59
                                    <location>     0.5000      0.000       0.100000 </location>
60
                                    <body> MovingBody </body>
61
                                </PathPoint>    
62
                            </objects>
63
                            <groups/>
64
                        </PathPointSet>
65
                    </GeometryPath>
66
                </Thelen2003Muscle>
67
                <Thelen2003Muscle name="MuscleWrap">
68
                    <GeometryPath name="">
69
                        <PathPointSet name="">
70
                            <objects>
71
                                <PathPoint name="Wrap-P1">
72
                                    <location>      0.300000000      0.000000000       0.2000000000 </location>
73
                                    <body> ground </body>
74
                                </PathPoint>
75
                                <PathPoint name="Wrap-P5">
76
                                    <location>       -0.300000000      0.000000000       0.2000000000 </location>
77
                                    <body> MovingBody </body>
78
                                </PathPoint>
79
                            </objects>
80
                            <groups/>
81
                        </PathPointSet>
82
                        <PathWrapSet name="">
83
                            <objects>
84
                                <PathWrap name="">
85
                                    <wrap_object> WRAP </wrap_object>
86
                                    <method> axial </method>
87
                                    <range> -1 -1 </range>
88
                                </PathWrap>
89
                            </objects>
90
                            <groups/>
91
                        </PathWrapSet>
92
                    </GeometryPath>
93
                </Thelen2003Muscle>
94
            </objects>
95
            <groups/>
96
        </ForceSet>
97
        <length_units> meters </length_units>
98
        <force_units> N </force_units>
99
        <!--Acceleration due to gravity.-->
100
        <gravity>       0.00000000      -9.80660000       0.00000000 </gravity>
101
        <!--Bodies in the model.-->
102
        <BodySet name="">
103
            <objects>
104
                <Body name="ground">
105
                    <mass>       0.00000000 </mass>
106
                    <mass_center>       0.00000000       0.00000000       0.00000000 </mass_center>
107
                    <inertia_xx>       0.00000000 </inertia_xx>
108
                    <inertia_yy>       0.00000000 </inertia_yy>
109
                    <inertia_zz>       0.00000000 </inertia_zz>
110
                    <inertia_xy>       0.00000000 </inertia_xy>
111
                    <inertia_xz>       0.00000000 </inertia_xz>
112
                    <inertia_yz>       0.00000000 </inertia_yz>
113
                    <!--Joint that connects this body with the parent body.-->
114
                    <Joint/>
115
                    <VisibleObject name="">
116
                        <!--Set of geometry files and associated attributes, allow .vtp, .stl,
117
                            .obj-->
118
                        <GeometrySet name="">
119
                            <objects>
120
                                <DisplayGeometry name="">
121
                                    <!--Name of geometry file .vtp, .stl, .obj-->
122
                                    <geometry_file> treadmill.vtp </geometry_file>
123
                                    <!--Color used to display the geometry when visible-->
124
                                    <color>       1.00000000       1.00000000       1.00000000 </color>
125
                                    <!--Name of texture file .jpg, .bmp-->
126
                                    <texture_file>  </texture_file>
127
                                    <!--in body transform specified as 3 rotations (rad) followed by 3
128
                                        translations rX rY rZ tx ty tz-->
129
                                    <transform>      -0.00000000       0.00000000      -0.00000000       0.00000000       0.00000000       0.00000000 </transform>
130
                                    <!--Three scale factors for display purposes: scaleX scaleY scaleZ-->
131
                                    <scale_factors>       1.00000000       1.00000000       1.00000000 </scale_factors>
132
                                    <!--Display Pref. 0:Hide 1:Wire 3:Flat 4:Shaded-->
133
                                <display_preference> 4 </display_preference>
134
                                    <!--Display opacity between 0.0 and 1.0-->
135
                                    <opacity>       1.00000000 </opacity>
136
                                </DisplayGeometry>
137
                                </objects>
138
                            <groups/>
139
                        </GeometrySet>
140
                        <!--Three scale factors for display purposes: scaleX scaleY scaleZ-->
141
                        <scale_factors>       0.1500000000       0.1500000000       0.1500000000 </scale_factors>
142
                        <!--transform relative to owner specified as 3 rotations (rad) followed by
143
                            3 translations rX rY rZ tx ty tz-->
144
                        <transform>      -0.00000000       0.00000000      -0.00000000       0.00000000       0.00000000       0.00000000 </transform>
145
                        <!--Whether to show a coordinate frame-->
146
                            <show_axes> false </show_axes>
147
                        <!--Display Pref. 0:Hide 1:Wire 3:Flat 4:Shaded Can be overriden for
148
                            individual geometries-->
149
                        <display_preference> 4 </display_preference>
150
                    </VisibleObject>
151
                </Body>
152
                <Body name="MovingBody">
153
                    <mass>       0.0 </mass>
154
                    <mass_center>       0.00000000      0.0       0.00000000 </mass_center>
155
                    <inertia_xx>       0.00000000 </inertia_xx>
156
                    <inertia_yy>       0.00000000 </inertia_yy>
157
                    <inertia_zz>       0.00000000 </inertia_zz>
158
                    <inertia_xy>       0.00000000 </inertia_xy>
159
                    <inertia_xz>       0.00000000 </inertia_xz>
160
                    <inertia_yz>       0.00000000 </inertia_yz>
161
                    <!--Joint that connects this body with the parent body.-->
162
                    <Joint>
163
                        <CustomJoint name="MainJoint">
164
                            <parent_body> ground </parent_body>
165
                            <location_in_parent>       0.00000000       0.00000000       0.00000000  </location_in_parent>
166
                            <orientation_in_parent>       0.00000000       0.00000000       0.00000000 </orientation_in_parent>
167
                            <location>       0.00000000       0.00000000       0.00000000 </location>
168
                            <orientation>       0.00000000       0.00000000       0.00000000 </orientation>
169
                            <!--Generalized coordinates parameterizing this joint.-->
170
                            <CoordinateSet name="">
171
                                <objects>
172
                                    <Coordinate name="AngleRotation">
173
                                        <!--Cooridnate can describe rotational, translational, or coupled values.
174
                                            Defaults to rotational.-->
175
                                        <motion_type> rotational </motion_type>
176
                                        <default_value>       0.00000000 </default_value>
177
                                        <default_speed_value>       0.00000000 </default_speed_value>
178
                                        <range>      -1.57079633       1.57079633 </range>
179
                                        <clamped> false </clamped>
180
                                        <locked> false </locked>
181
                                        <prescribed_function/>
182
                                    </Coordinate>
183
                                </objects>
184
                                <groups/>
185
                            </CoordinateSet>
186
                            <reverse> false </reverse>
187
                            <SpatialTransform name="">
188
                                <!--3 Axes for rotations are listed first.-->
189
                                <TransformAxis name="rotation1">
190
                                    <function>
191
                                        <LinearFunction name="">
192
                                            <coefficients>       1.00000000       0.00000000 </coefficients>
193
                                        </LinearFunction>
194
                                    </function>
195
                                    <coordinates> AngleRotation </coordinates>
196
                                    <axis>     0.0000000000      0.0000000000       1.0000000000 </axis>
197
                                </TransformAxis>
198
                                <TransformAxis name="rotation2">
199
                                    <function>
200
                                        <Constant name="">
201
                                            <value>       0.00000000 </value>
202
                                        </Constant>
203
                                    </function>
204
                                    <coordinates> </coordinates>
205
                                    <axis>       0.00000000       1.00000000       0.00000000 </axis>
206
                                </TransformAxis>
207
                                <TransformAxis name="rotation3">
208
                                    <function>
209
                                        <Constant name="">
210
                                            <value>       0.00000000 </value>
211
                                        </Constant>
212
                                    </function>
213
                                    <coordinates> </coordinates>
214
                                    <axis>       0.99826136      -0.00000000       0.05889802 </axis>
215
                                </TransformAxis>
216
                                <!--3 Axes for translations are listed next.-->
217
                                <TransformAxis name="translation1">
218
                                    <function>
219
                                        <Constant name="">
220
                                            <value>       0.00000000 </value>
221
                                        </Constant>
222
                                    </function>
223
                                    <coordinates> </coordinates>
224
                                    <axis>       1.00000000       0.00000000       0.00000000 </axis>
225
                                </TransformAxis>
226
                                <TransformAxis name="translation2">
227
                                    <function>
228
                                        <Constant name="">
229
                                            <value>       0.00000000 </value>
230
                                        </Constant>
231
                                    </function>
232
                                    <coordinates> </coordinates>
233
                                    <axis>       0.00000000       1.00000000       0.00000000 </axis>
234
                                </TransformAxis>
235
                                <TransformAxis name="translation3">
236
                                    <function>
237
                                        <Constant name="">
238
                                            <value>       0.00000000 </value>
239
                                        </Constant>
240
                                    </function>
241
                                    <coordinates> </coordinates>
242
                                    <axis>       0.00000000       0.00000000       1.00000000 </axis>
243
                                </TransformAxis>
244
                            </SpatialTransform>
245
                        </CustomJoint>
246
                    </Joint>
247
                    <VisibleObject name="">
248
                        <!--Set of geometry files and associated attributes, allow .vtp, .stl,
249
                            .obj-->
250
                        <GeometrySet name="">
251
                            <objects>
252
                                <DisplayGeometry name="">
253
                                    <!--Name of geometry file .vtp, .stl, .obj-->
254
                                    <geometry_file>treadmill.vtp </geometry_file>
255
                                    <!--Color used to display the geometry when visible-->
256
                                    <color>       1.00000000       1.00000000       1.00000000 </color>
257
                                    <!--Name of texture file .jpg, .bmp-->
258
                                    <texture_file>  </texture_file>
259
                                    <!--in body transform specified as 3 rotations (rad) followed by 3
260
                                        translations rX rY rZ tx ty tz-->
261
                                    <transform>      -0.00000000       0.00000000      -0.00000000       0.00000000       0.00000000       0.00000000 </transform>
262
                                    <!--Three scale factors for display purposes: scaleX scaleY scaleZ-->
263
                                    <scale_factors>       1.00000000       1.00000000       1.00000000 </scale_factors>
264
                                    <!--Display Pref. 0:Hide 1:Wire 3:Flat 4:Shaded-->
265
                                <display_preference> 4 </display_preference>
266
                                    <!--Display opacity between 0.0 and 1.0-->
267
                                    <opacity>       1.00000000 </opacity>
268
                                </DisplayGeometry>
269
                            </objects>
270
                            <groups/>
271
                        </GeometrySet>
272
                        <!--Three scale factors for display purposes: scaleX scaleY scaleZ-->
273
                        <scale_factors>        0.1500000000       0.1500000000       0.1500000000 </scale_factors>
274
                        <!--transform relative to owner specified as 3 rotations (rad) followed by
275
                            3 translations rX rY rZ tx ty tz-->
276
                        <transform>      -0.00000000       0.00000000      -0.00000000       0.00000000       0.00000000       0.00000000 </transform>
277
                        <!--Whether to show a coordinate frame-->
278
                            <show_axes> false </show_axes>
279
                        <!--Display Pref. 0:Hide 1:Wire 3:Flat 4:Shaded Can be overriden for
280
                            individual geometries-->
281
                        <display_preference> 4 </display_preference>
282
                    </VisibleObject>
283
                    <WrapObjectSet name="">
284
                        <objects>
285
                            <WrapCylinder name="WRAP">
286
                                <xyz_body_rotation>      0.00000000       0.00000000       0.00000000 </xyz_body_rotation>
287
                                <translation>      0.00000000       0.00000000       0.200000000 </translation>
288
                                <active> true </active>
289
                                <quadrant> Y </quadrant>
290
                                <VisibleObject name="">
291
                                    <!--Set of geometry files and associated attributes, allow .vtp, .stl,
292
                                        .obj-->
293
                                    <GeometrySet name="">
294
                                        <objects/>
295
                                        <groups/>
296
                                    </GeometrySet>
297
                                    <!--Three scale factors for display purposes: scaleX scaleY scaleZ-->
298
                                    <scale_factors>       1.00000000       1.00000000       1.00000000 </scale_factors>
299
                                    <!--transform relative to owner specified as 3 rotations (rad) followed by
300
                                        3 translations rX rY rZ tx ty tz-->
301
                                    <transform>      0.00000000       0.00000000       0.00000000      0.00000000       0.00000000       0.200000000 </transform>
302
                                    <!--Whether to show a coordinate frame-->
303
                                    <show_axes> false </show_axes>
304
                                    <!--Display Pref. 0:Hide 1:Wire 3:Flat 4:Shaded Can be overriden for
305
                                        individual geometries-->
306
                                        <display_preference> 4 </display_preference>
307
                                </VisibleObject>
308
                                <radius>       0.05000000 </radius>
309
                                <length>       0.05000000 </length>
310
                            </WrapCylinder>
311
                        </objects>
312
                        <groups/>
313
                    </WrapObjectSet>
314
                </Body>
315
                </objects>
316
            <groups/>
317
        </BodySet>
318
        <!--Constraints in the model.-->
319
        <ConstraintSet name="">
320
            <objects/>
321
            <groups/>
322
        </ConstraintSet>
323
        <!--Markers in the model.-->
324
        <MarkerSet name="">
325
            <objects>
326
            </objects>
327
            <groups/>
328
        </MarkerSet>
329
        <!--ContactGeometry objects in the model.-->
330
        <ContactGeometrySet name="">
331
            <objects/>
332
            <groups/>
333
        </ContactGeometrySet>
334
    </Model>
335
</OpenSimDocument>
336