How to rotate a solid with revolute joint

조회 수: 7 (최근 30일)
Leeann Newton
Leeann Newton 2020년 9월 15일
댓글: Vasco Lenzi 2020년 9월 18일
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.

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 9월 16일
See the attached file for an example.
  댓글 수: 3
Leeann Newton
Leeann Newton 2020년 9월 16일
I have this, but it only works if the gravity is in the Y direction and I'm trying to recreate it without changing the direction of the gravity
Vasco Lenzi
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 CenterFile Exchange에서 Multibody Dynamics에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by