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!