#ifndef ARSERVERSENSORINFO_H #define ARSERVERSENSORINFO_H #include "Aria.h" #include "ArServerBase.h" class ArServerClient; /** Service providing clients with data from range sensors. * This service accepts the following data requests: *
getSensorList
to get a list of all robot sensorsgetSensorCurrent
to get one range sensor's set of current readingsgetSensorCumulative
to get one range sensor's set of cumualtive readingsgetSensorList
request replies with the following data packet:
* getSensorCurrent
and getSensorCumulative
* requests must include the following data:
* getSensorCurrent
and getSensorCumulative
* requests reply with the following data packets:
* SensorInfo
group.
*/
class ArServerInfoSensor
{
public:
AREXPORT ArServerInfoSensor(ArServerBase *server, ArRobot *robot);
AREXPORT virtual ~ArServerInfoSensor();
AREXPORT void getSensorList(ArServerClient *client, ArNetPacket *packet);
AREXPORT void getSensorCurrent(ArServerClient *client, ArNetPacket *packet);
AREXPORT void getSensorCumulative(ArServerClient *client,
ArNetPacket *packet);
protected:
ArRobot *myRobot;
ArServerBase *myServer;
ArFunctor2C