Skip to content

Commit d7837ed

Browse files
committed
initial DO
1 parent 21e1e1e commit d7837ed

8 files changed

+3538
-235
lines changed

Step-7-Tracking-Optimization/RightLegAndPelvisKneeNoAddDesignOpt.osim

+3,192
Large diffs are not rendered by default.

Step-7-Tracking-Optimization/TorqueDrivenDesignOptimizationSettings.xml

+78-96
Original file line numberDiff line numberDiff line change
@@ -40,102 +40,6 @@
4040
<marker_name>R_Midfoot_Superior</marker_name>
4141
<initial_speed>1</initial_speed>
4242
</RCNLCostTerm>
43-
<RCNLCostTerm>
44-
<type>coordinate_tracking</type>
45-
<coordinate>pelvis_tilt</coordinate>
46-
<is_enabled>true</is_enabled>
47-
<max_allowable_error>0.1</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>0.1</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>0.1</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>0.01</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>0.01</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>0.01</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>0.1</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>0.1</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>0.1</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>0.1</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>0.1</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>0.1</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>0.1</max_allowable_error>
120-
</RCNLCostTerm>
121-
<RCNLCostTerm>
122-
<type>inverse_dynamics_load_tracking</type>
123-
<load>hip_flexion_r_moment</load>
124-
<is_enabled>true</is_enabled>
125-
<max_allowable_error>10</max_allowable_error>
126-
</RCNLCostTerm>
127-
<RCNLCostTerm>
128-
<type>inverse_dynamics_load_tracking</type>
129-
<load>knee_angle_r_moment</load>
130-
<is_enabled>true</is_enabled>
131-
<max_allowable_error>10</max_allowable_error>
132-
</RCNLCostTerm>
133-
<RCNLCostTerm>
134-
<type>inverse_dynamics_load_tracking</type>
135-
<load>ankle_angle_r_moment</load>
136-
<is_enabled>true</is_enabled>
137-
<max_allowable_error>10</max_allowable_error>
138-
</RCNLCostTerm>
13943
<RCNLCostTerm>
14044
<type>joint_jerk_minimization</type>
14145
<coordinate>pelvis_tilt</coordinate>
@@ -242,6 +146,84 @@
242146
</RCNLPathConstraintTerms>
243147
<RCNLTerminalConstraintTerms>
244148
<RCNLConstraintTermSet>
149+
<RCNLConstraintTerm>
150+
<type>final_state_position</type>
151+
<target_error>0.278</target_error>
152+
<is_enabled>true</is_enabled>
153+
<coordinate>pelvis_tilt</coordinate>
154+
</RCNLConstraintTerm>
155+
<RCNLConstraintTerm>
156+
<type>final_state_position</type>
157+
<target_error>-0.215</target_error>
158+
<is_enabled>true</is_enabled>
159+
<coordinate>pelvis_list</coordinate>
160+
</RCNLConstraintTerm>
161+
<RCNLConstraintTerm>
162+
<type>final_state_position</type>
163+
<target_error>-0.255</target_error>
164+
<is_enabled>true</is_enabled>
165+
<coordinate>pelvis_rotation</coordinate>
166+
</RCNLConstraintTerm>
167+
<RCNLConstraintTerm>
168+
<type>final_state_position</type>
169+
<target_error>0.264</target_error>
170+
<is_enabled>true</is_enabled>
171+
<coordinate>pelvis_tx</coordinate>
172+
</RCNLConstraintTerm>
173+
<RCNLConstraintTerm>
174+
<type>final_state_position</type>
175+
<target_error>0.962</target_error>
176+
<is_enabled>true</is_enabled>
177+
<coordinate>pelvis_ty</coordinate>
178+
</RCNLConstraintTerm>
179+
<RCNLConstraintTerm>
180+
<type>final_state_position</type>
181+
<target_error>0.054</target_error>
182+
<is_enabled>true</is_enabled>
183+
<coordinate>pelvis_tz</coordinate>
184+
</RCNLConstraintTerm>
185+
<RCNLConstraintTerm>
186+
<type>final_state_position</type>
187+
<target_error>0.382</target_error>
188+
<is_enabled>true</is_enabled>
189+
<coordinate>hip_flexion_r</coordinate>
190+
</RCNLConstraintTerm>
191+
<RCNLConstraintTerm>
192+
<type>final_state_position</type>
193+
<target_error>-0.221</target_error>
194+
<is_enabled>true</is_enabled>
195+
<coordinate>hip_adduction_r</coordinate>
196+
</RCNLConstraintTerm>
197+
<RCNLConstraintTerm>
198+
<type>final_state_position</type>
199+
<target_error>0.055</target_error>
200+
<is_enabled>true</is_enabled>
201+
<coordinate>hip_rotation_r</coordinate>
202+
</RCNLConstraintTerm>
203+
<RCNLConstraintTerm>
204+
<type>final_state_position</type>
205+
<target_error>1.057</target_error>
206+
<is_enabled>true</is_enabled>
207+
<coordinate>knee_angle_r</coordinate>
208+
</RCNLConstraintTerm>
209+
<RCNLConstraintTerm>
210+
<type>final_state_position</type>
211+
<target_error>-0.547</target_error>
212+
<is_enabled>true</is_enabled>
213+
<coordinate>ankle_angle_r</coordinate>
214+
</RCNLConstraintTerm>
215+
<RCNLConstraintTerm>
216+
<type>final_state_position</type>
217+
<target_error>-0.299</target_error>
218+
<is_enabled>true</is_enabled>
219+
<coordinate>subtalar_angle_r</coordinate>
220+
</RCNLConstraintTerm>
221+
<RCNLConstraintTerm>
222+
<type>final_state_position</type>
223+
<target_error>0.338</target_error>
224+
<is_enabled>true</is_enabled>
225+
<coordinate>mtp_angle_r</coordinate>
226+
</RCNLConstraintTerm>
245227
</RCNLConstraintTermSet>
246228
</RCNLTerminalConstraintTerms>
247229
<!--*Optional* list prefix of the data file, if left blank, use prefix from IK folder-->

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>100</setup_nlp_max_iterations>
45+
<setup_nlp_max_iterations>20</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)