Skip to content

Commit db0cfdd

Browse files
Torque DO example
1 parent d7837ed commit db0cfdd

8 files changed

+347
-248
lines changed

Step-7-Tracking-Optimization/TorqueDrivenDesignOptimizationSettings.xml

+105-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,85 @@
3838
<cost_term_type>discrete</cost_term_type>
3939
<is_enabled>true</is_enabled>
4040
<marker_name>R_Midfoot_Superior</marker_name>
41-
<initial_speed>1</initial_speed>
41+
<initial_speed>10</initial_speed>
42+
</RCNLCostTerm>
43+
<RCNLCostTerm>
44+
<type>coordinate_tracking</type>
45+
<coordinate>pelvis_tilt</coordinate>
46+
<is_enabled>true</is_enabled>
47+
<max_allowable_error>10</max_allowable_error>
48+
</RCNLCostTerm>
49+
<RCNLCostTerm>
50+
<type>coordinate_tracking</type>
51+
<coordinate>pelvis_list</coordinate>
52+
<is_enabled>true</is_enabled>
53+
<max_allowable_error>10</max_allowable_error>
54+
</RCNLCostTerm>
55+
<RCNLCostTerm>
56+
<type>coordinate_tracking</type>
57+
<coordinate>pelvis_rotation</coordinate>
58+
<is_enabled>true</is_enabled>
59+
<max_allowable_error>10</max_allowable_error>
60+
</RCNLCostTerm>
61+
<RCNLCostTerm>
62+
<type>coordinate_tracking</type>
63+
<coordinate>pelvis_tx</coordinate>
64+
<is_enabled>true</is_enabled>
65+
<max_allowable_error>1</max_allowable_error>
66+
</RCNLCostTerm>
67+
<RCNLCostTerm>
68+
<type>coordinate_tracking</type>
69+
<coordinate>pelvis_ty</coordinate>
70+
<is_enabled>true</is_enabled>
71+
<max_allowable_error>1</max_allowable_error>
72+
</RCNLCostTerm>
73+
<RCNLCostTerm>
74+
<type>coordinate_tracking</type>
75+
<coordinate>pelvis_tz</coordinate>
76+
<is_enabled>true</is_enabled>
77+
<max_allowable_error>1</max_allowable_error>
78+
</RCNLCostTerm>
79+
<RCNLCostTerm>
80+
<type>coordinate_tracking</type>
81+
<coordinate>hip_flexion_r</coordinate>
82+
<is_enabled>true</is_enabled>
83+
<max_allowable_error>10</max_allowable_error>
84+
</RCNLCostTerm>
85+
<RCNLCostTerm>
86+
<type>coordinate_tracking</type>
87+
<coordinate>hip_adduction_r</coordinate>
88+
<is_enabled>true</is_enabled>
89+
<max_allowable_error>10</max_allowable_error>
90+
</RCNLCostTerm>
91+
<RCNLCostTerm>
92+
<type>coordinate_tracking</type>
93+
<coordinate>hip_rotation_r</coordinate>
94+
<is_enabled>true</is_enabled>
95+
<max_allowable_error>10</max_allowable_error>
96+
</RCNLCostTerm>
97+
<RCNLCostTerm>
98+
<type>coordinate_tracking</type>
99+
<coordinate>knee_angle_r</coordinate>
100+
<is_enabled>true</is_enabled>
101+
<max_allowable_error>10</max_allowable_error>
102+
</RCNLCostTerm>
103+
<RCNLCostTerm>
104+
<type>coordinate_tracking</type>
105+
<coordinate>ankle_angle_r</coordinate>
106+
<is_enabled>true</is_enabled>
107+
<max_allowable_error>10</max_allowable_error>
108+
</RCNLCostTerm>
109+
<RCNLCostTerm>
110+
<type>coordinate_tracking</type>
111+
<coordinate>subtalar_angle_r</coordinate>
112+
<is_enabled>true</is_enabled>
113+
<max_allowable_error>10</max_allowable_error>
114+
</RCNLCostTerm>
115+
<RCNLCostTerm>
116+
<type>coordinate_tracking</type>
117+
<coordinate>mtp_angle_r</coordinate>
118+
<is_enabled>true</is_enabled>
119+
<max_allowable_error>10</max_allowable_error>
42120
</RCNLCostTerm>
43121
<RCNLCostTerm>
44122
<type>joint_jerk_minimization</type>
@@ -151,78 +229,104 @@
151229
<target_error>0.278</target_error>
152230
<is_enabled>true</is_enabled>
153231
<coordinate>pelvis_tilt</coordinate>
232+
<max_error>0.01</max_error>
233+
<min_error>-0.01</min_error>
154234
</RCNLConstraintTerm>
155235
<RCNLConstraintTerm>
156236
<type>final_state_position</type>
157237
<target_error>-0.215</target_error>
158238
<is_enabled>true</is_enabled>
159239
<coordinate>pelvis_list</coordinate>
240+
<max_error>0.01</max_error>
241+
<min_error>-0.01</min_error>
160242
</RCNLConstraintTerm>
161243
<RCNLConstraintTerm>
162244
<type>final_state_position</type>
163245
<target_error>-0.255</target_error>
164246
<is_enabled>true</is_enabled>
165247
<coordinate>pelvis_rotation</coordinate>
248+
<max_error>0.01</max_error>
249+
<min_error>-0.01</min_error>
166250
</RCNLConstraintTerm>
167251
<RCNLConstraintTerm>
168252
<type>final_state_position</type>
169253
<target_error>0.264</target_error>
170254
<is_enabled>true</is_enabled>
171255
<coordinate>pelvis_tx</coordinate>
256+
<max_error>0.01</max_error>
257+
<min_error>-0.01</min_error>
172258
</RCNLConstraintTerm>
173259
<RCNLConstraintTerm>
174260
<type>final_state_position</type>
175261
<target_error>0.962</target_error>
176262
<is_enabled>true</is_enabled>
177263
<coordinate>pelvis_ty</coordinate>
264+
<max_error>0.01</max_error>
265+
<min_error>-0.01</min_error>
178266
</RCNLConstraintTerm>
179267
<RCNLConstraintTerm>
180268
<type>final_state_position</type>
181269
<target_error>0.054</target_error>
182270
<is_enabled>true</is_enabled>
183271
<coordinate>pelvis_tz</coordinate>
272+
<max_error>0.01</max_error>
273+
<min_error>-0.01</min_error>
184274
</RCNLConstraintTerm>
185275
<RCNLConstraintTerm>
186276
<type>final_state_position</type>
187277
<target_error>0.382</target_error>
188278
<is_enabled>true</is_enabled>
189279
<coordinate>hip_flexion_r</coordinate>
280+
<max_error>0.01</max_error>
281+
<min_error>-0.01</min_error>
190282
</RCNLConstraintTerm>
191283
<RCNLConstraintTerm>
192284
<type>final_state_position</type>
193285
<target_error>-0.221</target_error>
194286
<is_enabled>true</is_enabled>
195287
<coordinate>hip_adduction_r</coordinate>
288+
<max_error>0.01</max_error>
289+
<min_error>-0.01</min_error>
196290
</RCNLConstraintTerm>
197291
<RCNLConstraintTerm>
198292
<type>final_state_position</type>
199293
<target_error>0.055</target_error>
200294
<is_enabled>true</is_enabled>
201295
<coordinate>hip_rotation_r</coordinate>
296+
<max_error>0.01</max_error>
297+
<min_error>-0.01</min_error>
202298
</RCNLConstraintTerm>
203299
<RCNLConstraintTerm>
204300
<type>final_state_position</type>
205301
<target_error>1.057</target_error>
206302
<is_enabled>true</is_enabled>
207303
<coordinate>knee_angle_r</coordinate>
304+
<max_error>0.01</max_error>
305+
<min_error>-0.01</min_error>
208306
</RCNLConstraintTerm>
209307
<RCNLConstraintTerm>
210308
<type>final_state_position</type>
211309
<target_error>-0.547</target_error>
212310
<is_enabled>true</is_enabled>
213311
<coordinate>ankle_angle_r</coordinate>
312+
<max_error>0.01</max_error>
313+
<min_error>-0.01</min_error>
214314
</RCNLConstraintTerm>
215315
<RCNLConstraintTerm>
216316
<type>final_state_position</type>
217317
<target_error>-0.299</target_error>
218318
<is_enabled>true</is_enabled>
219319
<coordinate>subtalar_angle_r</coordinate>
320+
<max_error>0.01</max_error>
321+
<min_error>-0.01</min_error>
220322
</RCNLConstraintTerm>
221323
<RCNLConstraintTerm>
222324
<type>final_state_position</type>
223325
<target_error>0.338</target_error>
224326
<is_enabled>true</is_enabled>
225327
<coordinate>mtp_angle_r</coordinate>
328+
<max_error>0.01</max_error>
329+
<min_error>-0.01</min_error>
226330
</RCNLConstraintTerm>
227331
</RCNLConstraintTermSet>
228332
</RCNLTerminalConstraintTerms>

Step-7-Tracking-Optimization/gpopsSettings.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<!--nlp tolerance. Must be a positive real number. Default 10e-7-->
4343
<setup_nlp_tolerance>1e-3</setup_nlp_tolerance>
4444
<!--nlp max iterations. Must be a positive integer. Default 2000-->
45-
<setup_nlp_max_iterations>20</setup_nlp_max_iterations>
45+
<setup_nlp_max_iterations>15</setup_nlp_max_iterations>
4646
<!--display level. Possible values 0 (suppresses all output), 1(only mesh refinement output), 2(iteration and mesh refinement output). Default 2-->
4747
<setup_display_level>2</setup_display_level>
4848
<integral_bounds>10</integral_bounds>

0 commit comments

Comments
 (0)