Skip to content

Commit

Permalink
somersault with one m
Browse files Browse the repository at this point in the history
  • Loading branch information
Ipuch committed Dec 20, 2024
1 parent 1fa097d commit 4aa932d
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ Otherwise, use mumps, but you won't replicate the results.

# Exemples
In the folder `examples\`, you will find the following examples (NTC, KTC, HTC):
- `sommersault_htc.py`: This script generates the optimal control problem with the holonomic constraint.
- `sommersault_htc_taudot.py`: This script generates the optimal control problem with the holonomic constraint and torque derivative driven
- `sommersault_ktc_taudot.py`: This script generates the optimal control problem with the kinematic constraint and torque derivative driven
- `sommersault.py`: This script generates the optimal control problem without the holonomic constraint.
- `sommersault_taudot.py`: This script generates the optimal control problem without the holonomic constraint and torque derivative driven
- `somersault_htc.py`: This script generates the optimal control problem with the holonomic constraint.
- `somersault_htc_taudot.py`: This script generates the optimal control problem with the holonomic constraint and torque derivative driven
- `somersault_ktc_taudot.py`: This script generates the optimal control problem with the kinematic constraint and torque derivative driven
- `somersault.py`: This script generates the optimal control problem without the holonomic constraint.
- `somersault_taudot.py`: This script generates the optimal control problem without the holonomic constraint and torque derivative driven

2 changes: 1 addition & 1 deletion analysis_simulations/analyze_data_simu.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from matplotlib import rcParams

from examples.sommersault_taudot import prepare_ocp as prepare_ocp_without
from examples.somersault_taudot import prepare_ocp as prepare_ocp_without
from src.actuators import Joint, actuator_function
from src.actuator_constants import ACTUATORS
from src.constants import (
Expand Down
6 changes: 3 additions & 3 deletions analysis_simulations/print_detailed_cost.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import numpy as np
import pickle

from examples.sommersault_taudot import prepare_ocp as prepare_ocp_free
from examples.sommersault_htc_taudot import prepare_ocp as prepare_ocp_HTC
from examples.sommersault_ktc_taudot import prepare_ocp as prepare_ocp_KTC
from examples.somersault_taudot import prepare_ocp as prepare_ocp_free
from examples.somersault_htc_taudot import prepare_ocp as prepare_ocp_HTC
from examples.somersault_ktc_taudot import prepare_ocp as prepare_ocp_KTC
from src.constants import PATH_MODEL, PATH_MODEL_1_CONTACT

biorbd_model_path = (PATH_MODEL_1_CONTACT, PATH_MODEL, PATH_MODEL, PATH_MODEL, PATH_MODEL_1_CONTACT)
Expand Down
6 changes: 3 additions & 3 deletions examples/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
PATH_MODEL,
)

from sommersault_taudot import prepare_ocp as prepare_ocp_ntc
from sommersault_htc_taudot import prepare_ocp as prepare_ocp_with_htc
from sommersault_ktc_taudot import prepare_ocp as prepare_ocp_with_ktc
from somersault_taudot import prepare_ocp as prepare_ocp_ntc
from somersault_htc_taudot import prepare_ocp as prepare_ocp_with_htc
from somersault_ktc_taudot import prepare_ocp as prepare_ocp_with_ktc
from src.save_results import save_results_taudot
from src.save_results import save_results_holonomic_taudot

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/sommersault_htc.py → examples/somersault_htc.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
from src.phase_transitions import custom_phase_transition_pre, custom_phase_transition_post
from src.save_load_helpers import get_created_data_from_pickle
from src.save_results import save_results_holonomic
from sommersault import (
from somersault import (
add_x_bounds,
add_u_bounds,
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4aa932d

Please sign in to comment.