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

SetLocalJCS crash in biorbd_casadi #343

Closed
Ipuch opened this issue Feb 28, 2024 · 0 comments
Closed

SetLocalJCS crash in biorbd_casadi #343

Ipuch opened this issue Feb 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Ipuch
Copy link
Collaborator

Ipuch commented Feb 28, 2024

We (with @SamHybz) need to set symbolic parameters in the biorbd_model but we failed to do it. here is a minimal example. It works for segment with DOF but not if there is no DOF.

import biorbd_casadi as biorbd
from biorbd_casadi import RotoTrans

# Fail Process finished with exit code 139 (interrupted by signal 11:SIGSEGV)
sym_rototranslation_matrix = RotoTrans(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)
biorbd_model.segment(1).setLocalJCS(biorbd_model, sym_rototranslation_matrix)

# Ideally but fails too
z_rotation_angle = MX.sym("z_rot", 1, 1)
sym_rototranslation_matrix = RotoTrans.fromEulerAngles(rot=angles, trans=MX.zeros(3, 1), seq="xyz")
biorbd_model.segment(1).setLocalJCS(biorbd_model, sym_rototranslation_matrix)

With the pendulum

    rt 0 0 0 xyz 0 0 0
    translations	y
    rotations	x
    ranges
        -1 5
        -2*pi 2*pi
    mass 1
    inertia
        0.0391  0.0000	0.0000
	    0.0000	0.0335	-0.0032
	    0.0000	-0.0032	0.0090
    com  -0.0005 0.0688 -0.9542
    meshfile mesh/pendulum.STL
endsegment

segment Seg2
    rt 0 0 0 xyz 0 0 0
    mass 1
    inertia
        0.0391  0.0000	0.0000
	    0.0000	0.0335	-0.0032
	    0.0000	-0.0032	0.0090
    com  -0.0005 0.0688 -0.9542
    meshfile mesh/pendulum.STL
endsegment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant