Documentos de Académico
Documentos de Profesional
Documentos de Cultura
PASÓ 2
Grupo: 299012_5
𝐿 = 𝐸𝑐 − 𝐸𝑝
𝑳 = 𝑓𝑢𝑛𝑐𝑖ó𝑛 𝐿𝑎𝑔𝑟𝑎𝑛𝑔𝑖𝑎𝑛𝑎.
𝑬𝒄 = 𝑒𝑛𝑒𝑟𝑔í𝑎 𝑐𝑖𝑛é𝑡𝑖𝑐𝑎.
𝑬𝒑 = 𝑒𝑛𝑒𝑟𝑔í𝑎 𝑝𝑜𝑡𝑒𝑛𝑐𝑖𝑎𝑙.
𝑑 𝜕𝐿 𝜕𝐿
𝜏𝑖 = −
𝑑𝑡 𝜕𝑞̇ 𝑖 𝜕𝑞𝑖
𝜏 = 𝐷𝑞̈ + 𝐻` + 𝐶
𝜕𝑑𝑖𝑗 1 𝜕𝑑𝑗𝑘
𝒉𝒊𝒋 = ∑𝑛𝑘=1 ∑𝑛𝑗=1 ℎ𝑖𝑗 𝑞̇ 𝑖 𝑞̇ 𝑘 con 𝒉𝒊𝒋 = −2
𝜕𝑞𝑘 𝜕𝑞1
Formulación newton-Euler
La formulación de Newton-Euler parte del equilibrio de fuerzas y pares para
cada elemento:
𝑑(𝑚𝑖 𝑣𝑖 )
∑𝐹 = = 𝑚𝑖 𝑣̇ 𝑖
𝑑𝑡
𝑑(𝐼𝑖 𝜔𝑖 )
∑ 𝑇𝑖 = = 𝐼𝑖 𝜔̇ 𝑖 + 𝜔𝑖 × (𝐼𝑖 𝜔𝑖 )
𝑑𝑡
i (i − 1ωi−1 + z0 q̇ i )
iωi = { Ri−1
iRi−1 i − 1ωi−1
𝒊𝒗̇ 𝒊 =
𝑖𝑅𝑖−1 (𝑧0 𝑞̈ 𝑖 + 𝑖 − 1𝑣̇ 𝑖−1 ) + 𝑖𝜔𝑖 × 𝑖𝑝𝑖 + 2𝑖𝜔𝑖 × 𝑖𝑅𝑖−1 𝑧0 𝑞̇ 𝑖 + 𝑖𝜔𝑖 × (𝑖𝜔𝑖 × 𝑖𝑝𝑖 )
{
𝑖𝑛𝑖 𝑇 𝑖𝑅𝑖−1 𝑧0
𝜏𝑖 =
𝑖𝑓𝑖 𝑇 𝑖𝑅𝑖−1 𝑧0
{
L1=link([0,1,0,0,0],'standard')
L={L1}
r=robot(L)
plot(r[0])
view([0,0])
pause
view(0,90)
syms theta d a alpha
rotz = [cos(theta) -sin(theta) 0 0
sin(theta) cos(theta) 0 0
0 0 1 0
0 0 0 1]
pz = [1 0 0 0
0 1 0 0
0 0 1 d
0 0 0 1]
px = [1 0 0 a
0 1 0 0
0 0 1 0
0 0 0 1]
rotx = [1 0 0 0
0 cos(alpha) -sin(alpha) 0
0 sin(alpha) cos(alpha) 0
0 0 0 1]
denavit=rotz*pz*px*rotx
Método de Euler en Matlab
fprintf('\n \tRESOLUCION DE ECUACIONES DIFERENCIALES POR EL METODO DE
EULER\n')
f=input('\nIngrese la ecuacion diferencial de la forma:
dy/dx=f(x,y)\n','s');
x0=input('\nIngrese el primer punto x0:\n');
x1=input('\nIngrese el segundo punto x1:\n');
y0=input('\nIngrese la condicion inicial y(x0):\n');
n=input('\nIngrese el numero de pasos n:\n');
h=(x1-x0)/n;
xs=x0:h:x1;
y1=y0;
fprintf('\n''it x0 x1 y1');
for i=1:n
it=i-1;
x0=xs(i);
x=x0;
x1=xs(i+1);
y=y0;
y1=y0+h*eval(f);
fprintf('\n%2.0f%10.6f%10.6f%10.6f\n',it,x0,x1,y1);
y0=y1;
end
fprintf('\n El punto aproximado y(x1) es = %10.6f\n',y1);