Maciej Górka gr. 29
Dynamika Robotów
Manipulator 1
Określenie współrzędnych uogólnionych:
q1 = θ1
q2 = d1
q3 = d2
J2Z = J2 + m3l12
Energia kinetyczna:
$$E_{1} = \frac{1}{2}J_{1Z}{\dot{\theta}}_{1}^{2}$$
$$E_{2} = \frac{1}{2}J_{2Z}{\dot{\theta}}_{1}^{2} + \frac{1}{2}m_{2}{\dot{d}}_{1}^{2}$$
$$E_{3} = \frac{1}{2}{(J}_{3Z_{1}} + \ m_{3}d_{2}^{2}{)\dot{\theta}}_{1}^{2} + \frac{1}{2}m_{3}{\dot{d}}_{1}^{2} + \frac{1}{2}m_{3}{\dot{d}}_{2}^{2}$$
E = E1 + E2 + E3
Energia potencjalna:
V1 = m1gh1
V2 = m2gd1
V3 = m3g(d1 − h2)
V = V1 + V2 + V3
$$E\ = \ \frac{1}{2}J_{1Z}{\dot{\theta}}_{1}^{2} + \frac{1}{2}J_{2Z}{\dot{\theta}}_{1}^{2} + \frac{1}{2}m_{2}{\dot{d}}_{1}^{2} + \frac{1}{2}{(J}_{3Z_{1}} + \ m_{3}d_{2}^{2}{)\dot{\theta}}_{1}^{2} + \frac{1}{2}m_{3}{\dot{d}}_{1}^{2} + \frac{1}{2}m_{3}{\dot{d}}_{2}^{2}$$
V = m1gh1 + m2gd1 + m3g(d1 − h2)
$L\ = \ E\ \ V\ = \ \frac{1}{2}J_{1Z}{\dot{\theta}}_{1}^{2} + \frac{1}{2}J_{2Z}{\dot{\theta}}_{1}^{2} + \frac{1}{2}m_{2}{\dot{d}}_{1}^{2} + \frac{1}{2}{\dot{\theta}}_{1}^{2}{(J}_{3Z_{1}} + \ m_{3}d_{2}^{2}) + \frac{1}{2}m_{3}{\dot{d}}_{1}^{2} + \frac{1}{2}m_{3}{\dot{d}}_{2}^{2} - m_{1}gh_{1} - m_{2}gd_{1} - \ m_{3}g({d_{1} - h}_{2})$
$$\frac{\partial L}{\partial\theta_{1}} = 0$$
$$\frac{\partial L}{\partial\dot{\theta_{1}}} = \dot{\theta_{1}}(J_{1Z} + J_{2Z} + J_{3Z_{1}} + \ m_{3}d_{2}^{2})$$
$$\frac{\partial L}{\partial d_{1}} = - g(m_{2} + m_{3})$$
$$\frac{\partial L}{\partial\dot{d_{1}}} = \dot{d_{1}}(m_{2} + m_{3})$$
$$\frac{\partial L}{\partial d_{2}} = {{\dot{\theta}}_{1}^{2}m}_{3}d_{2}$$
$$\frac{\partial L}{\partial\dot{d_{2}}} = \dot{d_{2}}m_{3}$$
$$\frac{d}{\text{dt}}\left\lbrack \frac{\partial L}{\partial\dot{\theta_{1}}} \right\rbrack = \ddot{\theta_{1}}{(J}_{1Z} + J_{2Z} + J_{3Z_{1}} + \ m_{3}d_{2}^{2}) + \ 2\dot{\theta_{1}}\dot{d_{2}}{d_{2}m}_{3}$$
$$\frac{d}{\text{dt}}\left\lbrack \frac{\partial L}{\partial\dot{d_{1}}} \right\rbrack = \ddot{d_{1}}(m_{2} + m_{3})$$
$$\frac{d}{\text{dt}}\left\lbrack \frac{\partial L}{\partial\dot{d_{2}}} \right\rbrack = \ddot{d_{2}}m_{3}$$
Równania Lagrange’a
$$\mathbf{\tau}_{\mathbf{1}}\mathbf{\lbrack Nm\rbrack = \ }\ddot{\mathbf{\theta}_{\mathbf{1}}}\mathbf{(J}_{\mathbf{1}\mathbf{Z}}\mathbf{+}\mathbf{J}_{\mathbf{2}\mathbf{Z}}\mathbf{+}\mathbf{J}_{\mathbf{3}\mathbf{Z}_{\mathbf{1}}}\mathbf{+ \ }\mathbf{m}_{\mathbf{3}}\mathbf{d}_{\mathbf{2}}^{\mathbf{2}}\mathbf{) + \ 2}\dot{\mathbf{\theta}_{\mathbf{1}}}\dot{\mathbf{d}_{\mathbf{2}}}{\mathbf{d}_{\mathbf{2}}\mathbf{m}}_{\mathbf{3}}$$
$$\mathbf{\tau}_{\mathbf{2}}\mathbf{\lbrack N\rbrack =}\ddot{\mathbf{d}_{\mathbf{1}}}\mathbf{(}\mathbf{m}_{\mathbf{2}}\mathbf{+}\mathbf{m}_{\mathbf{3}}\mathbf{) + g(}\mathbf{m}_{\mathbf{2}}\mathbf{+}\mathbf{m}_{\mathbf{3}}\mathbf{)}$$
$$\mathbf{\tau}_{\mathbf{3}}\mathbf{\lbrack N\rbrack =}\ddot{\mathbf{d}_{\mathbf{2}}}\mathbf{m}_{\mathbf{3}}{\mathbf{\ }{\mathbf{- \ }\dot{\mathbf{\theta}}}_{\mathbf{1}}^{\mathbf{2}}\mathbf{m}}_{\mathbf{3}}\mathbf{d}_{\mathbf{2}}$$
Manipulator 2
Określenie współrzędnych uogólnionych:
q1 = θ1
q2 = d2
q3 = θ2
J2Z = J2 + m2l12
J4Z1 = J4 + m4l22
Energia kinetyczna:
E1 = 0
$$E_{2} = \frac{1}{2}J_{2Z}{\dot{\theta}}_{1}^{2}$$
$$E_{3} = \frac{1}{2}{\dot{\theta}}_{1}^{2}{(J}_{3Z_{1}} + \ m_{3}d_{2}^{2}) + \frac{1}{2}m_{3}{\dot{d}}_{2}^{2}$$
$$E_{4} = \frac{1}{2}{{\dot{\theta}}_{1}^{2}(J}_{4Z_{1}} + \ m_{4}d_{2}^{2}) + \frac{1}{2}m_{4}{\dot{d}}_{2}^{2} + \frac{1}{2}J_{4Z_{1}}{\dot{\theta}}_{2}^{2}$$
E = E1 + E2 + E3 + E4
Energia potencjalna:
V1 = m1gh1
V2 = m2gd1
V3 = m3gh2
V4 =m4g(d1 + d3)
V = V1 + V2 + V3 + V4
$$L\ = \ E\ \ V = \frac{1}{2}J_{2Z}{\dot{\theta}}_{1}^{2} + \frac{1}{2}{\dot{\theta}}_{1}^{2}{(J}_{3Z_{1}} + \ m_{3}d_{2}^{2}) + \frac{1}{2}m_{3}{\dot{d}}_{2}^{2} + \frac{1}{2}{{\dot{\theta}}_{1}^{2}(J}_{4Z_{1}} + \ m_{4}d_{2}^{2}) + \frac{1}{2}m_{4}{\dot{d}}_{2}^{2} + \frac{1}{2}J_{4Z_{1}}{\dot{\theta}}_{2}^{2} - m_{1}gh_{1} - m_{2}gd_{1} - m_{3}gh_{2} - m_{4}g(d_{1} + d_{3})$$
$$\frac{\partial L}{\partial\theta_{1}} = 0$$
$$\frac{\partial L}{\partial\dot{\theta_{1}}} = \dot{\theta_{1}}(J_{2Z} + J_{3Z_{1}} + \ m_{3}d_{2}^{2} + J_{4Z_{1}} + \ m_{4}d_{2}^{2})$$
$$\frac{\partial L}{\partial d_{2}} = d_{2}{{(\dot{\theta}}_{1}^{2}m}_{3} + {{\dot{\theta}}_{1}^{2}m}_{4})$$
$$\frac{\partial L}{\partial\dot{d_{2}}} = \dot{d_{2}}(m_{3} + m_{4})$$
$$\frac{\partial L}{\partial\theta_{2}} = 0$$
$$\frac{\partial L}{\partial\dot{\theta_{2}}} = \dot{\theta_{2}}J_{4Z_{1}}$$
$$\frac{d}{\text{dt}}\left\lbrack \frac{\partial L}{\partial\dot{\theta_{1}}} \right\rbrack = \ddot{\theta_{1}}(J_{2Z} + J_{3Z_{1}} + \ m_{3}d_{2}^{2} + J_{4Z_{1}} + \ m_{4}d_{2}^{2}) + \ 2\dot{\theta_{1}}(\dot{d_{2}}{d_{2}m}_{3} + \dot{d_{2}}{d_{2}m}_{4})$$
$$\frac{d}{\text{dt}}\left\lbrack \frac{\partial L}{\partial\dot{d_{2}}} \right\rbrack = \ddot{d_{2}}(m_{3} + m_{4})$$
$$\frac{d}{\text{dt}}\left\lbrack \frac{\partial L}{\partial\dot{\theta_{2}}} \right\rbrack = \ddot{\theta_{2}}J_{4Z_{1}}$$
Równania Lagrange’a
$$\mathbf{\tau}_{\mathbf{1}}\mathbf{\lbrack Nm\rbrack = \ }\ddot{\mathbf{\theta}_{\mathbf{1}}}\mathbf{(}\mathbf{J}_{\mathbf{2}\mathbf{Z}}\mathbf{+}\mathbf{J}_{\mathbf{3}\mathbf{Z}_{\mathbf{1}}}\mathbf{+ \ }\mathbf{m}_{\mathbf{3}}\mathbf{d}_{\mathbf{2}}^{\mathbf{2}}\mathbf{+}\mathbf{J}_{\mathbf{4}\mathbf{Z}_{\mathbf{1}}}\mathbf{+ \ }\mathbf{m}_{\mathbf{4}}\mathbf{d}_{\mathbf{2}}^{\mathbf{2}}\mathbf{) + \ 2}\dot{\mathbf{\theta}_{\mathbf{1}}}\mathbf{(}\dot{\mathbf{d}_{\mathbf{2}}}{\mathbf{d}_{\mathbf{2}}\mathbf{m}}_{\mathbf{3}}\mathbf{+}\dot{\mathbf{d}_{\mathbf{2}}}{\mathbf{d}_{\mathbf{2}}\mathbf{m}}_{\mathbf{4}}\mathbf{)}$$
$$\mathbf{\tau}_{\mathbf{2}}\mathbf{\lbrack N\rbrack =}\ddot{\mathbf{d}_{\mathbf{2}}}\left( \mathbf{m}_{\mathbf{3}}\mathbf{+}\mathbf{m}_{\mathbf{4}} \right)\mathbf{-}\mathbf{d}_{\mathbf{2}}{{\mathbf{(}\dot{\mathbf{\theta}}}_{\mathbf{1}}^{\mathbf{2}}\mathbf{m}}_{\mathbf{3}}\mathbf{+}{{\dot{\mathbf{\theta}}}_{\mathbf{1}}^{\mathbf{2}}\mathbf{m}}_{\mathbf{4}}\mathbf{)}$$
$$\mathbf{\tau}_{\mathbf{3}}\mathbf{\lbrack Nm\rbrack =}\ddot{\mathbf{\theta}_{\mathbf{2}}}\mathbf{J}_{\mathbf{4}\mathbf{Z}_{\mathbf{1}}}$$