Acceleration input to Joints

47 次查看(过去 30 天)
Arka
Arka 2024-12-5,10:17
评论: Arka 2024-12-16,18:01
I want to enter an acceleration input to the rectangular and revolute joints of my simscape multibody. When I activate the postion actuation, I see a new port "q". However I do not know whether I can directly input an acceleration signal in the "q" port. I DO NOT want to integrate the acceleration into a position value as this will create some problems for the simulation, provided the initial signal is measured using a sensor and will have some noise.
Is there any other way I can directly input the acceleration as an input to my model. ?I need urgent help.

回答(1 个)

Sumukh
Sumukh 2024-12-5,12:26
Hi @Arka,
The motion-input port "q" for the "Revolute Joint" block is the angle about the primitive axis given as a function of time. Similarly, the motion-input ports "px" and "py" of the "Rectangular Joint" block is the position coordinate along the primitive axis, given as a function of time. Please refer to the "Motion Input" section in the following documentation to understand more about these inputs:
Instead of inputting the acceleration to the joint, the angle/position itself can be provided as an input through the "Simulink-PS" converter block to the motion-input port of the joint block. This converter block automatically converts the angle/position input to it's time derivatives, velocity and acceleration. Kindly refer to the following documentation to understand how to configure the converter block to output the input's time derivatives:
Additionally, you can refer to the following documentation on "Input Handling" to understand how to specify actuation inputs to joints:
I hope this answers your query.
  3 个评论
Yifeng Tang
Yifeng Tang 2024-12-6,15:07
Hi @Arka,
What problems do you expect if you integrate the acceleration signal? Could you please clarify?
The acceleration signal along doesn't determine the state of a joint, and you'll also need the initial position and the initial velocity to make it a well-posed problem. Given those two conditions, the joint can honor the acceleration input by accepting the twice-integrated signal as position input. You can make the joint provide an acceleration output and see whether it matches your desired input.
When using the Simulink-PS converter, there is an option to provide the derivatives of the signal. You can provide the acceleration as the 2nd derivative, velocity integrated from the acceleration as the 1st derivative, and the position integrated from the velocity as the signal provided to the joint. I feel it should work.
Arka
Arka 2024-12-16,18:01
It did work, thanks a lot!

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Assembly 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by