資源簡介
底層的UVA 代碼,適合與robocup的初學(xué)者,基本上是接觸robocup的必學(xué)代碼!

代碼片段和文件信息
/*
Copyright?(c)?2000-2003?Jelle?Kok?University?of?Amsterdam
All?rights?reserved.
Redistribution?and?use?in?source?and?binary?forms?with?or?without
modification?are?permitted?provided?that?the?following?conditions?are?met:
1.?Redistributions?of?source?code?must?retain?the?above?copyright?notice?this
list?of?conditions?and?the?following?disclaimer.
2.?Redistributions?in?binary?form?must?reproduce?the?above?copyright?notice
this?list?of?conditions?and?the?following?disclaimer?in?the?documentation
and/or?other?materials?provided?with?the?distribution.
3.?Neither?the?name?of?the?University?of?Amsterdam?nor?the?names?of?its
contributors?may?be?used?to?endorse?or?promote?products?derived?from?this
software?without?specific?prior?written?permission.
THIS?SOFTWARE?IS?PROVIDED?BY?THE?COPYRIGHT?HOLDERS?AND?CONTRIBUTORS?“AS?IS“
AND?ANY?EXPRESS?OR?IMPLIED?WARRANTIES?INCLUDING?BUT?NOT?LIMITED?TO?THE
IMPLIED?WARRANTIES?OF?MERCHANTABILITY?AND?FITNESS?FOR?A?PARTICULAR?PURPOSE?ARE
DISCLAIMED.?IN?NO?EVENT?SHALL?THE?COPYRIGHT?OWNER?OR?CONTRIBUTORS?BE?LIABLE
FOR?ANY?DIRECT?INDIRECT?INCIDENTAL?SPECIAL?EXEMPLARY?OR?CONSEQUENTIAL
DAMAGES?(INCLUDING?BUT?NOT?LIMITED?TO?PROCUREMENT?OF?SUBSTITUTE?GOODS?OR
SERVICES;?LOSS?OF?USE?DATA?OR?PROFITS;?OR?BUSINESS?INTERRUPTION)?HOWEVER
CAUSED?AND?ON?ANY?THEORY?OF?LIABILITY?WHETHER?IN?CONTRACT?STRICT?LIABILITY
OR?TORT?(INCLUDING?NEGLIGENCE?OR?OTHERWISE)?ARISING?IN?ANY?WAY?OUT?OF?THE?USE
OF?THIS?SOFTWARE?EVEN?IF?ADVISED?OF?THE?POSSIBILITY?OF?SUCH?DAMAGE.
*/
/*!?\file?ActHandler.cpp
File:??????????ActHandler.cpp
Project:???????Robocup?Soccer?Simulation?Team:?UvA?Trilearn
Authors:???????Jelle?Kok
Created:???????28/11/2000
Last?Revision:?$ID$
Contents:??????This?file?contains?the?class?definitions?for?the
???????????????ActHandler?that?handles?the?outgoing?messages?to?the
???????????????server.
Changes
Date?????????????Author??????????Comment
28/11/2000???????Jelle?Kok???????Initial?version?created
*/
#include?“ActHandler.h“
#ifndef?WIN32
??#include??????//?poll
??#include??//?poll
#endif
#include??????//?SIGALARM
ActHandler*?ACT;?/*!
/*!?This?function?is?executed?when?a?SIGALARM?singal?arrives.?The?time?this
????signal?comes?is?defined?by?the?SenseHandler?(depending?on?incoming
????sense_body?messages).?When?the?signal?arrives?the?commands?currently
????stored?in?the?queue?of?the?ActHandler?are?send?to?the?server?(using?the
????method?sendCommands).
????\param?i?is?ignored?*/
#ifdef?WIN32
extern?void?CALLBACK?sigalarmHandler(UINT??UINT??DWORD??DWORD??DWORD?)
#else
extern?void?sigalarmHandler(?int?i?)
#endif
{
??Log.logFromSignal(?2?“alarm?handler!!“?);
??ACT->sendCommands(?);
}
/*!?This?is?the?constructor?for?the?ActHandler?class.?All?the?variables?are
????initialized.
????\param?c?Connection?that?is?connected
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2009-05-04?22:07??trilearn_ba
?????文件??????236159??2003-10-30?20:55??trilearn_ba
?????文件?????????660??2003-10-29?20:36??trilearn_ba
?????文件?????????126??2008-12-22?19:31??trilearn_ba
?????文件???????41362??2003-06-03?04:54??trilearn_ba
?????文件????????4046??2008-12-22?18:30??trilearn_ba
?????文件????????3690??2003-10-30?20:56??trilearn_ba
?????文件???????46513??2008-12-22?18:40??trilearn_ba
?????文件???????39342??2008-12-22?18:40??trilearn_ba
?????文件???????29973??2003-06-03?04:54??trilearn_ba
?????文件??????659879??2003-10-30?20:55??trilearn_ba
?????文件?????????818??2003-10-30?20:55??trilearn_ba
?????文件???????17992??2003-06-03?04:36??trilearn_ba
?????文件???????13303??2003-06-03?04:36??trilearn_ba
?????文件????????9240??2003-06-03?04:36??trilearn_ba
?????文件????????7122??2003-06-03?04:36??trilearn_ba
?????文件??????200304??2008-12-22?18:39??trilearn_ba
?????文件??????180182??2003-06-03?04:54??trilearn_ba
?????文件???????17354??2008-12-22?18:40??trilearn_ba
?????文件?????????499??2003-10-30?20:21??trilearn_ba
?????文件???????17200??2003-10-30?20:55??trilearn_ba
?????文件???????10270??2003-06-03?04:36??trilearn_ba
?????文件????????1988??2003-06-03?04:36??trilearn_ba
?????文件?????????105??2008-12-22?19:32??trilearn_ba
?????文件???????21256??2008-12-22?19:37??trilearn_ba
?????目錄???????????0??2009-05-04?22:07??trilearn_ba
?????目錄???????????0??2009-05-04?22:07??trilearn_ba
?????文件???????13474??2008-12-22?19:54??trilearn_ba
?????文件???????12976??2008-12-22?19:54??trilearn_ba
?????文件???????12875??2008-12-22?19:54??trilearn_ba
?????文件???????12158??2008-12-22?19:54??trilearn_ba
............此處省略70個(gè)文件信息
評(píng)論
共有 條評(píng)論