Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

PilotTypes.h

Go to the documentation of this file.
00001 #ifndef DEFINED_PilotTypes_h_
00002 #define DEFINED_PilotTypes_h_
00003 
00004 namespace DualCoding{
00005   namespace PilotTypes {
00006 
00007   //! What we're asking the Pilot to do
00008   enum RequestType_t {
00009     localize, //!< Localize using the available landmarks
00010     walk, //!< Walk the distance specified by @a dx / @a dy / @a da
00011     waypointWalk, //!< Execute the trajectory in @a waypointlist
00012     setVelocity, //!< Set velocity for continuous walking
00013     goToShape, //!< Plan a path to @a targetShape
00014     pushObject, //!< Push @a objectSjape to @a targetShape
00015     visualSearch, //!< Turn until search predicate returns true
00016     noRequest, //!< Dummy case
00017     numRequestTypes
00018   };
00019 
00020   extern const char* RequestTypeNames[numRequestTypes];
00021 
00022   //! What error the Pilot is going to return
00023   enum ErrorType_t {
00024     noError = 0,        //!< Request completed without error
00025     someError,          //!< Generic error will match anything but noError in a PiotTrans
00026     invalidRequest,     //!< Ill-formed PilotRequest, such as mssing parameters
00027     abort,              //!< Request was aborted
00028     cantLocalize,       //!< Localization failed
00029     startCollides,      //!< Start state would be in collision
00030     endCollides,        //!< End state would be in collision
00031     noPath,             //!< Path planning failed
00032     collisionDetected,  //!< The robot hit something
00033     searchFailed,       //!< Visual search gave up
00034     numErrorTypes
00035   };
00036 
00037   extern const char* ErrorTypeNames[numErrorTypes];
00038 
00039   //! Options for handling collisions
00040   enum CollisionAction_t {
00041     collisionIgnore = 0,     //!< Don't check for collisions
00042     collisionReport,         //!< Report the collision in a PilotEvent, but continue
00043     collisionStop,           //!< Stop the robot and terminate the request
00044     collisionReplan          //!< Try to recover and proceed
00045   };
00046 
00047   static const unsigned int invalid_Pilot_ID = -1U;
00048 
00049 } } // end of namespaces
00050 
00051 #endif

Tekkotsu v5.1CVS
Generated Fri Mar 16 05:26:46 2012 by Doxygen 1.6.3