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.

Appen<strong>di</strong>ce 6<br />

Il programma “goalClient1.cpp”<br />

#include "Aria.h"<br />

#include "ArNetworking.h"<br />

void handlePathPlannerStatus(ArNetPacket *packet)<br />

{<br />

char buf[64];<br />

packet->bufToStr(buf, 63);<br />

printf(".. Path planner status: \"%s\"\n", buf);<br />

if(strcmp(buf,"Failed going to goal")==0 || strcmp(buf, "Failed to plan to 1")==0 || strcmp(buf,"Cannot find<br />

path")==0)<br />

}<br />

exit(0);<br />

void handleGoalName(ArNetPacket* packet)<br />

{<br />

}<br />

char buf[64];<br />

packet->bufToStr(buf, 63);<br />

printf(".. Current goal: \"%s\"\n", buf);<br />

78

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

Saved successfully!

Ooh no, something went wrong!