Skip to content

Declaration LoopConstraint #326

@AnaisFarr

Description

@AnaisFarr

Good news @Ipuch , LoopConstraint works !

We created an example of a triple bar with the bar2 and 3 are attached with the loopconstraints.
The simulated movement makes the bar2 fall with the gravity (the bar2, attached to the bar1, have an angle of 90°).
The bar3 stay attached by the loopconstraints to the bar2 when the loopconstraints is declared 2 times in the BioMod (one for each axis).

loopconstraint
    predecessor Bar2
    successor Bar3
    RTpredecessor 0 0 0 xyz 0 -1 0
    RTsuccessor 0 0 0 xyz 0 0 0
    axis 0 0 0 0 1 0 // in predecessor frame
    enableStabilization 1
    stabilizationParameter 0
endloopconstraint

loopconstraint
    predecessor Bar2
    successor Bar3
    RTpredecessor 0 0 0 xyz 0 -1 0
    RTsuccessor 0 0 0 xyz 0 0 0
    axis 0 0 0 1 0 0 // in predecessor frame
    enableStabilization 1
    stabilizationParameter 0
endloopconstraint

It doesn't work if the two axis are declared in the same loopconstraints.

We tried to simulate the same thing by calculating the external forces and by introducing these external forces in the calculation of the dynamics. It works when the pendulum doesn't move. We have created an example with three pendulums aligned in y and with gravity in y. The bar3 remains attached to the bar2 in this case. But as soon as there are several loop constraint, we can not make it work, we have the error :

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions