-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcmc_setup.xml
65 lines (65 loc) · 4.3 KB
/
cmc_setup.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0" encoding="UTF-8" ?>
<OpenSimDocument Version="30000">
<CMCTool name="dynhop_cmc">
<!--Name of the .osim file used to construct a model.-->
<model_file>dynhop.osim</model_file>
<!--Replace the model's force set with sets specified in <force_set_files>? If false, the force set is appended to.-->
<replace_force_set>true</replace_force_set>
<!--List of xml files used to construct an force set for the model.-->
<force_set_files>cmc_actuators.xml</force_set_files>
<!--Directory used for writing results.-->
<results_directory>results</results_directory>
<!--Output precision. It is 8 by default.-->
<output_precision>8</output_precision>
<!--Initial time for the simulation.-->
<initial_time>0</initial_time>
<!--Final time for the simulation.-->
<final_time>1</final_time>
<!--Flag indicating whether or not to compute equilibrium values for states other than the coordinates or speeds. For example, equilibrium muscle fiber lengths or muscle forces.-->
<solve_for_equilibrium_for_auxiliary_states>true</solve_for_equilibrium_for_auxiliary_states>
<!--Maximum number of integrator steps.-->
<maximum_number_of_integrator_steps>30000</maximum_number_of_integrator_steps>
<!--Maximum integration step size.-->
<maximum_integrator_step_size>1</maximum_integrator_step_size>
<!--Minimum integration step size.-->
<minimum_integrator_step_size>1e-008</minimum_integrator_step_size>
<!--Integrator error tolerance. When the error is greater, the integrator step size is decreased.-->
<integrator_error_tolerance>1e-005</integrator_error_tolerance>
<!--Set of analyses to be run during the investigation.-->
<AnalysisSet name="Analyses">
<objects />
<groups />
</AnalysisSet>
<!--Controller objects in the model.-->
<ControllerSet name="Controllers">
<objects />
<groups />
</ControllerSet>
<!--XML file (.xml) containing the forces applied to the model as ExternalLoads.-->
<external_loads_file>external_loads.xml</external_loads_file>
<!--Motion (.mot) or storage (.sto) file containing the desired point trajectories.-->
<desired_points_file />
<!--Motion (.mot) or storage (.sto) file containing the desired kinematic trajectories.-->
<desired_kinematics_file>ik_solution.mot</desired_kinematics_file>
<!--File containing the tracking tasks. Which coordinates are tracked and with what weights are specified here.-->
<task_set_file>cmc_tasks.xml</task_set_file>
<!--File containing the constraints on the controls.-->
<constraints_file></constraints_file>
<!--File containing the controls output by RRA. These can be used to place constraints on the residuals during CMC.-->
<rra_controls_file />
<!--Low-pass cut-off frequency for filtering the desired kinematics. A negative value results in no filtering. The default value is -1.0, so no filtering.-->
<lowpass_cutoff_frequency>-1</lowpass_cutoff_frequency>
<!--Time window over which the desired actuator forces are achieved. Muscles forces cannot change instantaneously, so a finite time window must be allowed. The recommended time window for RRA is about 0.001 sec, and for CMC is about 0.010 sec.-->
<cmc_time_window>0.010</cmc_time_window>
<!--Flag (true or false) indicating whether to use the fast CMC optimization target. The fast target requires the desired accelerations to be met. The optimizer fails if the acclerations constraints cannot be met, so the fast target can be less robust. The regular target does not require the acceleration constraints to be met; it meets them as well as it can, but it is slower and less accurate.-->
<use_fast_optimization_target>true</use_fast_optimization_target>
<!--Preferred optimizer algorithm (currently support "ipopt" or "cfsqp", the latter requiring the osimFSQP library.-->
<optimizer_algorithm>cfsqp</optimizer_algorithm>
<!--Maximum number of iterations for the optimizer.-->
<optimizer_max_iterations>2000</optimizer_max_iterations>
<!--Print level for the optimizer, 0 - 3. 0=no printing, 3=detailed printing, 2=in between-->
<optimizer_print_level>0</optimizer_print_level>
<!--True-false flag indicating whether or not to turn on verbose printing for cmc.-->
<use_verbose_printing>false</use_verbose_printing>
</CMCTool>
</OpenSimDocument>