Académique Documents
Professionnel Documents
Culture Documents
Uso do mdulo
Robotic ToolBox
Prof. W E dos Santos
Dpto. de Eletrotcnica - UTFPR
UTFPR
Contedo
Introduo ao pacote de ferramentas para
robtica desenvolvido por Peter Corke para
o MatLab.
Onde obter: http://petercorke.com
Compatibilidade: MatLab 6 (ou+recente)
Referencia:
Author = {P.I. Corke},Journal = {IEEE Robotics and Automation
Magazine},Month = nov,Number = {4},Pages = {16-25},Title =
{Machine Vision Toolbox},Volume = {12},Year = {2005}
UTFPR
Instrues iniciais
Descompactar os arquivos numa pasta
Ao iniciar o MatLab inclua a pasta no path
Para obter ajuda no MatLab utilize os
comandos:
help <nome da funo>
helpdesk
Comandos e convenes
UTFPR
Comandos e funes
UTFPR
Comandos e funes
UTFPR
Comandos e funes
UTFPR
Comandos e funes
UTFPR
Exemplos de uso
rpy = tr2rpy(T)
obs. retorna sequncia de Rz+Ry+Rx (RPY)
diferente da vista nas aulas: Rx+Ry+Rz (YPR)
UTFPR
UTFPR
10
plot(p560, qr)
fkine(p560, qz)
q = [0 -pi/4 -pi/4 0 pi/8 0]
T = fkine(p560, q)
qi = ikine(p560, T)
drivebot(p560)
UTFPR
11
Cinemtica diferencial
12
Criando trajetrias
t = [0:.056:2]
q = jtraj(qz, qr, t)
Abaixo grfico do movimento de q2 e q3
subplot(2,1,1); plot(t,q(:,2))
subplot(2,1,2); plot(t,q(:,3))
[q,qd,qdd] = jtraj(qz, qr, t)
Ttg=fkine(p560, q)
subplot(3,1,1); plot(t, squeeze(Ttg(1,4,:)))
subplot(3,1,2); plot(t, squeeze(Ttg(2,4,:)))
subplot(3,1,3); plot(t, squeeze(Ttg(3,4,:)))
subplot(1,1,1); plot(squeeze(Ttg(1,4,:)), squeeze(Ttg(3,4,:)))
plot(p560, q)
UTFPR
13
UTFPR
14
Exerccio
Para o rob Stanford:
UTFPR
15
Itens do exerccio
1) Crie o modelo StanfRob no toolbox
2) Defina qz=(0 0 0 0 0 0)
Plote o rob em qz
UTFPR
16
Itens do exerccio
6) Defina um vetor de tempos
t=(0:0.05:2)
Repita o tem 7
17