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

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

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

);<br />

(wasEStopTriggered ? "YES" : " "),<br />

(wasLeftMotorStalled?"YES":" "),<br />

(wasRightMotorStalled?"YES":" "),<br />

int_as_bitstring(cumulativeStallVal).c_str(),<br />

tobor.getMotorPacCo<strong>un</strong>t(),<br />

tobor.getSonarPacCo<strong>un</strong>t(),<br />

tobor.getLeftVel(),<br />

tobor.getRightVel(),<br />

byte_as_bitstring(tobor.getDigIn()).c_str(),<br />

byte_as_bitstring(tobor.getDigOut()).c_str(),<br />

tobor.getLeftEncoder(),<br />

tobor.getRightEncoder(),<br />

wasLeftIRTriggered?"YES": " ",<br />

wasRightIRTriggered?"YES":" "<br />

if (!(tobor.getDigIn()&32)){<br />

// prova a fare beep<br />

tobor.setVel(-200);<br />

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

tobor.lock();<br />

char t<strong>un</strong>e[]={5,2,5,3,5,4,5,5,5,6,5,7,15,8};<br />

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

ArUtil::sleep(2000);<br />

49

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

Saved successfully!

Ooh no, something went wrong!