14.11.2012 Views

Submitted version of the thesis - Airlab, the Artificial Intelligence ...

Submitted version of the thesis - Airlab, the Artificial Intelligence ...

Submitted version of the thesis - Airlab, the Artificial Intelligence ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

B.3. Object’s Position Calculator 125<br />

y=−150;<br />

z=0;<br />

% T rch indicates <strong>the</strong> transformation robot to chess board<br />

T rch =[1 0 0 x<br />

0 1 0 y<br />

0 0 1 z ];<br />

%transformation are rewritten for clarification<br />

% camera to world<br />

T cch1 =[T cch;0 0 0 1];<br />

%world to camera<br />

T chc = inv(T cch1 );<br />

%world to robot<br />

T rch1 =[T rch;0 0 0 1];<br />

% robot to world<br />

T chr = inv(T rch1 );<br />

T rc=T rch1∗T chc;<br />

T cr = inv(T rc );<br />

T cr = T cr (1:3 ,:);<br />

ROBOT(1 ,: ,: ,:) =T cr (1 ,: ,: ,:);<br />

ROBOT(2 ,: ,: ,:) =T cr (2 ,: ,: ,:);<br />

ROBOT(3 ,: ,: ,:) =T cr (3 ,: ,: ,:);<br />

t =[1 0 0<br />

0 1 0<br />

0 0 0<br />

0 0 1];<br />

H= K∗T cr∗t ;<br />

Hinv=inv(H);<br />

point = Hinv∗[72 119 1] ’;<br />

result= point/point (3);<br />

result<br />

%% 3−) Calibration for servo top position at ground<br />

%tranlastion m<br />

Tc ext = [ 100.613176 95.664945 539.117313 ];

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!