Documentos de Académico
Documentos de Profesional
Documentos de Cultura
GRUPO:
TUTOR
OBJETIVOS.
Entender la implementación de un modelo dinámico en un robot.
ACTIVIDADES A DESARROLLAR
Problema
𝑎1 = 𝑎2 = 1𝑚
𝑎3 = 0.5𝑚
𝑚1 = 𝑚2 = 1𝐾𝑔
𝑚3 = 0.5𝐾𝑔
El problema se ha tomado del texto (Kumar, 2010), por lo que se recomienda revisar
el tema en este texto que se encuentra en las referencias bibliográficas propias de
esta unidad 2. Lo anterior ayudará a tomar las convenciones utilizadas.
cos(𝜃1 ) −𝑠𝑒𝑛(𝜃1 ) 0
𝑄1 = |𝑠𝑒𝑛(𝜃1 ) cos(𝜃1 ) 0|
0 0 1
cos(𝜃2 ) −𝑠𝑒𝑛(𝜃2 ) 0
𝑄2 = |𝑠𝑒𝑛(𝜃2 ) cos(𝜃2 ) 0|
0 0 1
cos(𝜃3 ) −𝑠𝑒𝑛(𝜃3 ) 0
𝑄3 = |𝑠𝑒𝑛(𝜃3 ) cos(𝜃3 ) 0|
0 0 1
Los vectores
𝑚1 𝑎12 0 0 0
𝐼2 = |0 1 0|
12
0 0 1
𝑚2 𝑎22 0 0 0
𝐼3 = |0 1 0|
12
0 0 1
𝑚3 𝑎32 0 0 0
𝐼4 = |0 1 0|
12
0 0 1
El algoritmo de Newton-Euler
0
[𝜔1 ]1 = [0]
𝜃̇
0
[𝜔̇ 1 ]1 = [0]
𝜃̈
𝑎1 −𝑠𝑒𝑛𝜃1
[𝑐̇1 ]1 = 𝜃̇1 [ 𝑐𝑜𝑠𝜃1 ]
2
0
𝑎1 −𝑠𝑒𝑛𝜃1 𝑎1 𝑐𝑜𝑠𝜃1
[𝑐̈1 ]1 = 𝜃̈1 [ 𝑐𝑜𝑠𝜃1 ] − 𝜃̇12 [𝑠𝑒𝑛𝜃1 ]
2 2
0 0
La aceleración
[𝑔]1 = [0 −𝑔 0]𝑇
0
[𝜔2 ]2 = [ 0 ]
𝜃̇1 + 𝜃̇2
0
[𝜔̇ 2 ]2 = [ 0 ]
𝜃1̈ + 𝜃2̈
𝑎2
− 𝑠𝑒𝑛𝜃2 (𝜃̇1 + 𝜃̇2 )
2
[𝑐̇2 ]2 = 𝑎2
𝑎1 𝜃̇1 + 𝑐𝑜𝑠𝜃2 (𝜃̇1 + 𝜃̇2 )
2
[ 0 ]
𝑎2 𝑎2
−𝑎1 𝜃̇12 − 𝑠𝑒𝑛𝜃2 (𝜃1̈ + 𝜃2̈ ) − 𝑐𝑜𝑠𝜃2 (𝜃̇1 + 𝜃̇2 )2
2 2
[𝑐̈2 ]2 = 𝑎2 𝑎2
𝑎1 𝜃̈1 + 𝑐𝑜𝑠𝜃2 (𝜃1̈ + 𝜃2̈ ) − 𝑠𝑒𝑛𝜃2 (𝜃̇1 + 𝜃̇2 )2
2 2
[ 0 ]
𝑑𝑐𝑖̇
[𝑓𝑖 ]𝑖 = 𝑚𝑖 [ ] = 𝑚[𝑐̈𝑖 ]𝑖
𝑑𝑡 𝑖
[𝑓4,3 ]3 = [𝑛4,3 ]3 = 0
[𝑓3,4 ]4 = [𝑛3,4 ]4 = 0
h=(x1-x0)/n;
x2=x0:h:x1;
y1=y0;
fprintf('\n''it x0 x1 y1');
for i=1:n
it=i-1;
x0=x2(i);
x=x0;
x1=x2(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