How to rotate a solid with revolute joint
2 ビュー (過去 30 日間)
古いコメントを表示
I've created this block and link. I'm trying to make the link rotate on the surface of the block. I've read in the documentation that the z axis should point in the direction that I want it to rotate. However, I cannot seem to get the joint working.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/361006/image.png)
0 件のコメント
採用された回答
Ameer Hamza
2020 年 9 月 16 日
See the attached file for an example.
3 件のコメント
Vasco Lenzi
2020 年 9 月 18 日
The joint per se will not rotate if there is no external force acting on it. When you change the gravity to y, you see movement because there is a force. If you have gravity on the z and the system setup as in your pictures, of course it would not move because no force is acting on the joint!
You need to add a torque to the joint to make it move. I'm attaching an example where I give torque for one second and then stop for the other 9 seconds of the simulation. The rod starts rotating and continue to rotate because there are no internal mechanics (damping, friction) acting on the rotation.
Additionally you may not see the movement because the rod is all red with no distinctive mark - I've added a black line as a marker
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Multibody Dynamics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!