Singularity error encountered when calculating inverse dynamics of a elastic joint.

6 次查看(过去 30 天)
Hi all,
I built a model of a robot joint with torsional elasticity connecting a rigid beam in simscape multibody. In the model, I used 2 revolute joints to act as the 2 rotational degrees of motor and torsional elasticity, which are coaxial, just like the real physical model. When the motor joint is supplied with actuation,ie. calculating the forward kinematics and dynamics, the simulation runs well.
But a singularity error occurred when I tried to calculate the inverse dynamics. I set the motor joint's 2 actuation items both as automatically calculated, the elastic joint's actuation torque as none and motion as auto, provided desired motion to the beam's end tip. In such a case, the inverse dynamics model has one unique solution in the real physical model if the initial condition is set, and the solution also exists in other simulation environment like Modelica. However, in the simscape multibody, the inverse dynamics cannot be calculated. I guess it's because the inverse kinematics is calculated first and singularity problem occurred.
So is there any way to calculate the inverse dynamics of the above model? After all, the joint elasticity is a important property to the robot model, especially in some high speed motion control problems. Thanks a lot!
The model I built and error message can be seen as below, the .slx file is also attached.
  4 个评论
Ryan Zhang
Ryan Zhang 2021-9-14
Hi @Steve Miller, thanks for the reply.
The model is simulated in MATLAB 2020a .
I intended to specify a desired motion of the elastic joint (which contains a "Motor" joint and a "Torsional elasticity & damping" joint) by specifying the Rz motion of a planar joint linked between the base frame and the end tip of the beam, and then calculate the motor torque that needed to achieve the specified motion on the beam side, ie. inverse dynamics.
The Px and Py are not specified because the beam rotates in the XY plane. Besides, this is not the key point of the singularity problem, as the model simulates well if I just simply comment out the "Torsional elasticity & damping" joint, just like the picture below.
Ryan Zhang
Ryan Zhang 2021-9-22
Hi @Steve Miller, is there any way to solve such singularity problems of inverse dynamics calculation of coaxial joints in Simscape? Is it possible to get the inverse dynamics calculated by write a user-defined torsional spring block? Or is there a inverse model block, which can exchange the inputs and outputs of a model, just like in Modelica?
Thanks very much.

请先登录,再进行评论。

回答(2 个)

J Chen
J Chen 2021-9-13
Probably better to specify the desired angle at the output port (F port) of the Torsional elastiticity & damping block. You can add a revolute joint between the F port and the ground through a Rigid Transformation block. In additional, the Actuation tab for the Motor block need to be changed to Torque-None and Motion-Automatically Computeed.
  3 个评论
J Chen
J Chen 2021-9-14
I think you'll get an error if you use Torque-Automatically Computeed and Motion-Automatically Computeed. Torque-None means no additional port for an external torque. You can get the needed torque from Composite torque/Force Sensing - Total Torque.
Ryan Zhang
Ryan Zhang 2021-9-15
Thanks for the suggestion .
But I Tried to set the actuation tabs of both revolute joints to Torque-None, then an error of "lacking joint degree of freedom with auto computed force" occured as below,
Like I said to Steve, If I comment out the "Torsional elasticity & damping" joint, and keep the actuation tab of Motor block to be Torque-Auto and Motion-Auto, the model runs perfectly.

请先登录,再进行评论。


Steve Miller
Steve Miller 2021-10-4
Hi Ryan,
The model as provided was missing the stiffness and damping in the Internal Mechanics settings of the Torsional elasicity & damping block. Setting those to non-zero values is critical to having a valid model.
I adjusted the model to use an ideal actuator on the motor and put in a PID controller to set the torque so that the output angle would match the target.
I did not find a way to calculate the solution the way you wanted to do it. Only one angle is provided (output angle) but two angles are unknown (motor angle, flexible shaft angle) and no initial velocities were provided. It may be if you specify more of the initial state consistently (initial velocities of the motor and flexible shaft) that you may get the answer you're looking for.
--Steve

类别

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

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by