3D knee kinetic
Posted: Tue Apr 23, 2024 6:48 am
Good afternoon,
Firstly, thank you for your amazing work!
Secondly, I've been attempting to compute 3D knee kinetics during a side cutting. To achieve this, I modified the LaiUhlrich2022 model by adding 2 more coordinates in the knee. Additionally, I included data in muscleDataOpenSimAD, mainOpenSimAD, and settingsOpenSimAD...
However, when I attempted to run the code, I encountered the following error:
Processing Sidecut_1 - Case torque_driven
Traceback (most recent call last):
File "C:\Users\sandr\Documents\GitHub\test_sidecut_1_Sandra.py", line 167, in <module>
run_tracking(baseDir, dataFolder, session_id, settings, case=case,
File "C:\Users\sandr\Documents\GitHub\UtilsDynamicSimulations\OpenSimAD\mainOpenSimAD_Sandra.py", line 590, in run_tracking
f_passiveTorque[joint] = limitPassiveTorque(
File "C:\Users\sandr\Documents\GitHub\UtilsDynamicSimulations\OpenSimAD\functionCasADiOpenSimAD_Sandra.py", line 142, in
limitPassiveTorque
passiveJointTorque = (k[0] * np.exp(k[1] * (Q - theta[1])) + k[2] *
IndexError: tuple index out of range
Is it possible to compute 3D knee kinetics with OpenSimAD, or do I need OpenSim Moco?
Thank you very much!
Sandra Salvador
Firstly, thank you for your amazing work!
Secondly, I've been attempting to compute 3D knee kinetics during a side cutting. To achieve this, I modified the LaiUhlrich2022 model by adding 2 more coordinates in the knee. Additionally, I included data in muscleDataOpenSimAD, mainOpenSimAD, and settingsOpenSimAD...
However, when I attempted to run the code, I encountered the following error:
Processing Sidecut_1 - Case torque_driven
Traceback (most recent call last):
File "C:\Users\sandr\Documents\GitHub\test_sidecut_1_Sandra.py", line 167, in <module>
run_tracking(baseDir, dataFolder, session_id, settings, case=case,
File "C:\Users\sandr\Documents\GitHub\UtilsDynamicSimulations\OpenSimAD\mainOpenSimAD_Sandra.py", line 590, in run_tracking
f_passiveTorque[joint] = limitPassiveTorque(
File "C:\Users\sandr\Documents\GitHub\UtilsDynamicSimulations\OpenSimAD\functionCasADiOpenSimAD_Sandra.py", line 142, in
limitPassiveTorque
passiveJointTorque = (k[0] * np.exp(k[1] * (Q - theta[1])) + k[2] *
IndexError: tuple index out of range
Is it possible to compute 3D knee kinetics with OpenSimAD, or do I need OpenSim Moco?
Thank you very much!
Sandra Salvador