필터 지우기
필터 지우기

Constraints for double pendulum in SimScape

조회 수: 3 (최근 30일)
Ondrej Zoufaly
Ondrej Zoufaly 2023년 5월 16일
댓글: Ondrej Zoufaly 2023년 5월 19일
Hello,
I have a problem that a double pendulum represents quite well. I want to have constraints such that the angle (relative to the frame) of the first body is a function of the angle of the second body (relative to the first body). That would mean if I rotated the second body by applying a torque the first body would rotate by this user defined constraint. Is there a possibility to define such constraint ? Thank you for the answers.
  댓글 수: 2
Lorenzo
Lorenzo 2023년 5월 19일
Hello Ondrej,
Not quite sure if this is what you need but you can "actuate" a revolute joint (which would be the joint used in your double pendulum example), by giving it an input-angle (the resulting torque will be computed automatically).
In turn the angle might be measured from another joint by using the "Sensing" field.
Does this answer your question?
Best,
Lorenzo
Ondrej Zoufaly
Ondrej Zoufaly 2023년 5월 19일
Yes I used sensing position from the joint of the second body as motion input to the first body. There was a warning because of Algebraic loop, but Matlab has some algebraic loop solvers so it worked. Nevertheless I used Algebraic Constraint to build my angle constraint (I can use scope to see if the input into the Algebraic constraint is near 0 to check that my constraint is fulfilled). It works so far so I think I figured it out. Thank you for your answer.
Ondrej.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Assembly에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by