biorbd icon indicating copy to clipboard operation
biorbd copied to clipboard

Define segment with translations and quaternions

Open EveCharbie opened this issue 3 years ago • 0 comments

We can define segments with quaternion, but not with also translations. Following error occur: Traceback (most recent call last): File "/home/user/Documents/PyCharm/plugins/python-ce/helpers/pydev/pydevd.py", line 1438, in _exec pydev_imports.execfile(file, globals, locals) # execute the script File "/home/user/Documents/PyCharm/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "/home/user/Documents/Programmation/BiorbdOptim/examples/sandbox/examples_articleBioptim/BioptimPaperExamples/somersault/main.py", line 16, in ocp = prepare_ocp_quaternion(root_folder + "/models/JeChMesh_RootQuat.bioMod", final_time=1.5, n_shooting=300) File "/home/user/Documents/Programmation/BiorbdOptim/examples/sandbox/examples_articleBioptim/BioptimPaperExamples/somersault/somersault/ocp.py", line 187, in prepare_ocp_quaternion biorbd_model = biorbd.Model(biorbd_model_path) File "/home/user/anaconda3/envs/Dev_bioptim/lib/python3.9/site-packages/biorbd_casadi/biorbd.py", line 6050, in init _biorbd_casadi.Model_swiginit(self, _biorbd_casadi.new_Model(*args)) RuntimeError: Reading of file "JeChMesh_RootQuat.bioMod" failed with the following error: QRanges and number of dof must be equal Element: segment, named: PelvisRot

EveCharbie avatar Oct 22 '21 14:10 EveCharbie