Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinefalisse committed Jun 29, 2023
1 parent 07163c6 commit 125d3e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion UtilsDynamicSimulations/OpenSimAD/mainOpenSimAD.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def run_tracking(baseDir, dataDir, subject, settings, case='0',
# also specify the optimal forces as part of the problem settings. For
# example, to set the optimal force of the right hip flexion to 400, add
# coordinate_optimal_forces['hip_flexion_r'] = 400 in the settings dict.
# See example under drop_jump_torque_driven in settingsOpenSimAD.
# See example under running_torque_driven in settingsOpenSimAD.
torque_driven_model = False
if 'torque_driven_model' in settings:
torque_driven_model = settings['torque_driven_model']
Expand Down
6 changes: 3 additions & 3 deletions example_kinetics.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
case = '0' # Change this to compare across settings.
# Options are 'squat', 'STS', and 'jump'.
if session_type == 'overground':
trial_name = 'squat'
trial_name = 'STS'
if trial_name == 'squat': # Squat
motion_type = 'squats'
repetition = 1
Expand Down Expand Up @@ -160,7 +160,7 @@
treadmill_speed = 4.0

# Set to True to solve the optimal control problem.
solveProblem = False
solveProblem = True
# Set to True to analyze the results of the optimal control problem. If you
# solved the problem already, and only want to analyze/process the results, you
# can set solveProblem to False and run this script with analyzeResults set to
Expand All @@ -184,7 +184,7 @@

# %% Simulation.
run_tracking(baseDir, dataFolder, session_id, settings, case=case,
solveProblem=solveProblem, analyzeResults=analyzeResults)
solveProblem=solveProblem, analyzeResults=analyzeResults)

# %% Plots.
# To compare different cases, add to the cases list, eg cases=['0','1'].
Expand Down

0 comments on commit 125d3e8

Please sign in to comment.