Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinefalisse committed Oct 3, 2022
1 parent 56631a0 commit 34f64ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions example_kinetics.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@
# - macOS (Monterey 12.2): converged in 1133 iterations
# - Linux (Ubuntu 20.04): converged in 1072 iterations
# Select which example you would like to run.
session_type = 'overground' # Options are 'overground' and 'treadmill'.
session_type = 'treadmill' # Options are 'overground' and 'treadmill'.
session_id = "4d5c3eb1-1a59-4ea1-9178-d3634610561c"
case = '0' # Change this to compare across settings.
if session_type == 'overground':
trial_name = 'STS' # Options are 'squat' and 'STS'.
trial_name = 'squat' # Options are 'squat' and 'STS'.
if trial_name == 'squat': # Squat
motion_type = 'squats'
repetition = 1
Expand All @@ -135,7 +135,7 @@
motion_type = 'jumping'
time_window = [1.2, 2.4]
elif session_type == 'treadmill':
trial_name = 'run_2_5ms'
trial_name = 'run_4ms'
if trial_name == 'walk_1_25ms': # Walking, 1.25 m/s
motion_type = 'walking'
time_window = [1.0, 2.5]
Expand All @@ -150,7 +150,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 Down Expand Up @@ -178,4 +178,4 @@

# %% Plots.
# To compare different cases, add to the cases list, eg cases=['0','1'].
plotResultsDC(dataFolder, session_id, trial_name, settings, cases=[case])
# plotResultsDC(dataFolder, session_id, trial_name, settings, cases=[case])

0 comments on commit 34f64ce

Please sign in to comment.