12.06.2013 Views

"Applicazione di un laser range scanner a un robot mobile", 2010

"Applicazione di un laser range scanner a un robot mobile", 2010

"Applicazione di un laser range scanner a un robot mobile", 2010

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

}<br />

tobor.<strong>un</strong>lock();<br />

tobor.lock();<br />

tobor.setVel(100);<br />

if ((tobor.getDigIn()&128)&&pinzagiu){<br />

// prova a fare beep<br />

}<br />

char t<strong>un</strong>e[6]={5,20,25,62,25,64};<br />

tobor.comStrN(ArCommands::SAY,t<strong>un</strong>e,2);<br />

if ((tobor.getDigIn()&64)&&pinzagiu){<br />

pinza.gripOpen(); //che invece la chiude<br />

// prova a fare beep<br />

}<br />

char t<strong>un</strong>e[6]={100,30,25,62,25,64};<br />

tobor.comStrN(ArCommands::SAY,t<strong>un</strong>e,2);<br />

pinzagiu=false;<br />

// list in<strong>di</strong>ces of bumpers flaged in stallval<br />

// skip the last bit which is a motor stall flag<br />

ArTypes::UByte2 bumpmask = ArUtil::BIT15;<br />

int bump = 0;<br />

for(int bit = 16; bit > 0; bit--)<br />

50

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

Saved successfully!

Ooh no, something went wrong!