SimMechanics - Joint Actuator/Motion problem

조회 수: 3 (최근 30일)
Alexander
Alexander 2011년 2월 14일
Hello everyone,
i am using SimMechanics and want to accelerate a body in a specified direction. My joint is a "prismatic" joint, with the axis of action in x direction. Now i connected a "JointActuator" with the joint and configured it to "Actuate with: Motion". With a tripple "Mux", i can input the position and that is working fine. But when i enter a value for the speed or acceleration (an the other Mux ports empty), my body isn't moving at all! What am i doing wrong?
Thanks in advance, Alex

채택된 답변

Martin
Martin 2011년 2월 14일
When actuating motion, you should specify position, velocity, and acceleration (not or). When nothing is attached to an input, it sees that as being 0. Effectively what has happened is that you have commanded it to keep the position at 0 for the entire simulation.
If you know the desired acceleration, you can integrate it once for velocity and again for position. However, it is not recommended to use a numerical derivative directly when going from position to acceleration. Numerical derivatives are notoriously messy, and numerical second derivatives are a recipe for trouble.
I would recommend you take a look at the documentation here regarding stabilizing numerical derivatives.
  댓글 수: 1
Alexander
Alexander 2011년 2월 15일
Ok, thats what i thought. I can only set the position, so i have to integrate.
About the numerical derivative problem... i think ist doesn't matter in my case.
Thank you very much!

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by