Different torque calculation results when using Robotics System Toolbox compared with Peter Corke's toolbox
Afficher commentaires plus anciens
Hi guys,
I am tring to use the Matlab's Robotics System Toolbox to do some dynamics calculation, e.g., the joint torques at given poses. But I found that the generated torques does not coincide with the result from Peter Corke's Robotics Toolbox.
I used transformation matrix to build my manipulator in Robotics System Toolbox, while the corresponding MDH table is used in Peter Corke's toolbox. The interesting thing is: if I specify the joint velocity and joint acceleration as zeros, the two toolboxes will provide me the same results. Once the velocity and acceleration are given, things will be different.
In the Robotics System Toolbox, I found that it uses the Recursive Newton–Euler algorithm to calculated the joint torques. A screenshot below shows how the inertia force and torques are updated in the forward iteration.

Through debugging, I found that the inertial torques at CoM during forward iteration are updated differently (the inertial forces at CoM during forward iteration are the same) in Robotics System Toolbox. If I use the following equation to update the inertial torque at CoM manually after the velocity and acceleration is updated at each iteration, I can get the same results.

while
is the inertial torques at CoM of link i,
is the inertial forces at CoM of link i and
is the position of CoM. This is just the regular equation used in any robotics textbook.
is the inertial torques at CoM of link i,
is the position of CoM. This is just the regular equation used in any robotics textbook.In both methods, the manipulators are given the same physical parameters. I also attached the scripts below. Can anyone tell me what could be the reason?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Robotics System Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!