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 />

exit(1);<br />

printf("Connected to server.\n");<br />

client.addHandler("pathPlannerStatus", new<br />

ArGlobalF<strong>un</strong>ctor1(&handlePathPlannerStatus));<br />

client.addHandler("update", new<br />

ArGlobalF<strong>un</strong>ctor1(&handleRobotUpdate));<br />

client.addHandler("goalName", new<br />

ArGlobalF<strong>un</strong>ctor1(&handleGoalName));<br />

client.addHandler("getGoals", new<br />

ArGlobalF<strong>un</strong>ctor1(&handleGoalList));<br />

}<br />

client.r<strong>un</strong>Async();<br />

client.requestOnce("getGoals");<br />

client.request("pathPlannerStatus", 5000);<br />

client.request("goalName", 5000);<br />

client.request("update", 5000);<br />

printf("=> Sen<strong>di</strong>ng goal \"%s\" to server...\n", "1");<br />

client.requestOnceWithString("gotoGoal", "1");<br />

sleep(1000);<br />

printf("Server <strong>di</strong>sconnected.\n");<br />

Aria::shutdown();<br />

return 0;<br />

81

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

Saved successfully!

Ooh no, something went wrong!