Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define segment with translations and quaternions #239

Open
EveCharbie opened this issue Oct 22, 2021 · 0 comments
Open

Define segment with translations and quaternions #239

EveCharbie opened this issue Oct 22, 2021 · 0 comments

Comments

@EveCharbie
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant