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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

% Translation vector :<br />

% position <strong>of</strong> chesboard in camera reference system<br />

Tc ext = [ 17.929188 −0.849442 64.715079 ];<br />

% Rotation matrix :<br />

Rc ext = [ −0.042070 −0.998317 −0.039914<br />

−0.614786 0.057357 −0.786605<br />

0.787571 −0.008554 −0.616165 ];<br />

%transformation <strong>of</strong> camera to chess board<br />

T cch=[Rc ext Tc ext ’];<br />

H0=[eye(3) [0 0 0] ’];<br />

% <strong>the</strong> position <strong>of</strong> <strong>the</strong> origin<br />

image point = [81 62 1] ’;<br />

%K −calibration matrix<br />

K=[191.71462 0 80.35911<br />

0 191.27299 61.27650<br />

0 0 1 ];<br />

% T rch indicates <strong>the</strong> transformation robot to chess board<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=0;<br />

z=0;<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 cw =[T cch;0 0 0 1];<br />

%world to camera<br />

T wc = inv(T cw);<br />

%world to robot<br />

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

% robot to world<br />

T rw = inv(T wr);

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

Saved successfully!

Ooh no, something went wrong!