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 ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
126 Appendix B. Documentation <strong>of</strong> <strong>the</strong> programming<br />
%rotation matrix<br />
Rc ext = [ 0.025851 −0.998468 0.048927<br />
−0.364120 −0.054986 −0.929727<br />
0.930993 0.006219 −0.364984 ];<br />
%transformation <strong>of</strong> camera to chess board<br />
T cch=[Rc ext Tc ext ’];<br />
% K internal camera parameters−from image toolbox<br />
K=[191.71462 0 80.35911<br />
0 191.27299 61.27650<br />
0 0 1 ];<br />
% x,y,z <strong>the</strong> distance <strong>of</strong> <strong>the</strong> chess board from <strong>the</strong> robots center in mm.<br />
x=600;<br />
y=−100;<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