Main Page | Modules | Class Hierarchy | Class List | Class Members | Examples

ArCentralMultiRobot::Info Class Reference

#include <ArCentralMultiRobot.h>

List of all members.


Detailed Description

This class holds the information from the client robot and also holds the pointers to the functors to delete when this item is deleted.


Public Member Functions

 Info (const char *robotName, unsigned int precedenceBase, ArFunctor2< ArNetPacket *, ArCentralForwarder * > *multiRobotToServerCB, ArFunctor2< ArNetPacket *, ArCentralForwarder * > *multiRobotInfoCB)
 Constructor.
virtual ~Info ()
 Destructor.
const char * getRobotName (void)
 Gets the robot's name.
long getPrecedence (void)
 Gets the robot's precedence.
int getPrecedenceClass (void)
 Gets the robot's precedence class.
long getPrecedenceBase (void)
 Gets the robot's precedence base.
bool isDataGood (void)
ArPose getPose (void)
 Gets our current pose.
const char * getMapName (void)
 Gets our map.
std::list< ArPose > * getPath (void)
 Gets the pointer to our path.
int getShortPathNumPoints (void)
 Gets the number of points in the short path.
int getRobotRadius (void)
 Gets the robot's radius.
int getPathRadius (void)
 Gets the robot's path radius.
void setData (ArNetPacket *packet)
 Sets the data from the packet.


Constructor & Destructor Documentation

ArCentralMultiRobot::Info::Info const char *  robotName,
unsigned int  precedenceBase,
ArFunctor2< ArNetPacket *, ArCentralForwarder * > *  multiRobotToServerCB,
ArFunctor2< ArNetPacket *, ArCentralForwarder * > *  multiRobotInfoCB
[inline]
 

Constructor.

Parameters:
robotName the robot's unique name
precedence the robot's unique precedence
multiRobotToServerCB the functor the ArCentralMultiRobot will use to parse the data, its just here so that it can all be cleaned up at once


Member Function Documentation

bool ArCentralMultiRobot::Info::isDataGood void   )  [inline]
 

Checks all the things and just tells us if we want to use this robot or not


Generated on Tue Feb 20 10:56:29 2007 for Arnl by  doxygen 1.4.0