Python Tutorial: Inverse Dynamics (with Lagrangian) of 2-Link RP Robot Arm using SymPy and NumPy

preview_player
Показать описание
In this video, I show you how to use Python and SymPy with NumPy to solve the inverse dynamics problem for a two-link RP robot arm using the Lagrangian approach.

Source code:

#pythontutorial #pythonprogramming #lagrangian #sympy #numpy #dynamics #scientific
Рекомендации по теме
Комментарии
Автор

CORRECTION: It should have been x1 = l1 * cos(th) instead of x1 = l1 * cos(th) / 2 and y1 = l1 * sin(th) instead of y1 = l1 * sin(th) / 2 for the calculations to agree with the drawing, since it shows l1 as the entire distance from the origin to the first center of mass. Alternatively, the drawing could be modified so that l1 spans the entire length of the first link, under the assumption that m1 is located halfway its length. Somehow I missed that. My apologies.

damiandz
visit shbcf.ru