Changeable angle while rotating in SimMechanics Second Generation
조회 수: 2 (최근 30일)
이전 댓글 표시
There is a problem while simulating my mechanism in Simulink - while turning a blue wheel with a yellow connection on it,a purple detail doesn't turning around axis (a purple dot on screen). I think,that the problem is in constant value of angle "а" (green lines on screen). "Distance constraint" here is a distance between world frame and purple detail frame. When i trying to add another Distance or Angle constraint, the mechanism stops moving. How can i solve this problem?


댓글 수: 0
답변 (1개)
Sebastian Castro
2015년 11월 4일
Looking at the video, it seems like the yellow and light blue bodies are essentially rigidly connected together at some fixed angle. Am I right?
If so, you could use either an Angle Constraint or a Rigid Transform block to hard-code that angle between the yellow and purple bodies. Shouldn't matter.
To allow the light blue body to move freely and honor that constraint, I would suggest using a Planar Joint between the World Frame and the purple element. The Planar Joint allows translation in X and Y, as well as rotation in Z. This matches exactly with your world coordinates, it seems.
- Sebastian
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Assembly에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!