ArServerInfoSensor Class Reference

#include <ArServerInfoSensor.h>

List of all members.


Detailed Description

Service providing clients with data from range sensors.

This service accepts the following data requests:

The getSensorList request replies with the following data packet:

  1. Number of sensors (2-byte integer)
  2. For each sensor:
    1. sensor name (Null-terminated string)

The getSensorCurrent and getSensorCumulative requests must include the following data:

  1. Sensor name (Null-terminated string)

The getSensorCurrent and getSensorCumulative requests reply with the following data packets:

  1. Number of readings, or -1 for invalid sensor name error (2-byte integer)
  2. Sensor name (null-terminated string)
  3. For each reading:
    1. X coordinate of reading (4-byte integer)
    2. Y coordinate of reading (4-byte integer)

This service's requests are all in the SensorInfo group.

Examples:

drawingsExampleWithRobot.cpp, and serverDemo.cpp.


Public Member Functions

 ArServerInfoSensor (ArServerBase *server, ArRobot *robot)
void getSensorCumulative (ArServerClient *client, ArNetPacket *packet)
void getSensorCurrent (ArServerClient *client, ArNetPacket *packet)
void getSensorList (ArServerClient *client, ArNetPacket *packet)
virtual ~ArServerInfoSensor ()

Protected Attributes

ArFunctor2C< ArServerInfoSensor,
ArServerClient *, ArNetPacket * > 
myGetSensorCumulativeCB
ArFunctor2C< ArServerInfoSensor,
ArServerClient *, ArNetPacket * > 
myGetSensorCurrentCB
ArFunctor2C< ArServerInfoSensor,
ArServerClient *, ArNetPacket * > 
myGetSensorListCB
ArRobotmyRobot
ArServerBasemyServer


Constructor & Destructor Documentation

ArServerInfoSensor::ArServerInfoSensor ( ArServerBase server,
ArRobot robot 
)

ArServerInfoSensor::~ArServerInfoSensor (  )  [virtual]


Member Function Documentation

void ArServerInfoSensor::getSensorCumulative ( ArServerClient client,
ArNetPacket packet 
)

void ArServerInfoSensor::getSensorCurrent ( ArServerClient client,
ArNetPacket packet 
)

void ArServerInfoSensor::getSensorList ( ArServerClient client,
ArNetPacket packet 
)


Member Data Documentation

ArFunctor2C<ArServerInfoSensor, ArServerClient *, ArNetPacket *> ArServerInfoSensor::myGetSensorCumulativeCB [protected]

ArFunctor2C<ArServerInfoSensor, ArServerClient *, ArNetPacket *> ArServerInfoSensor::myGetSensorCurrentCB [protected]

ArFunctor2C<ArServerInfoSensor, ArServerClient *, ArNetPacket *> ArServerInfoSensor::myGetSensorListCB [protected]

ArRobot* ArServerInfoSensor::myRobot [protected]

ArServerBase* ArServerInfoSensor::myServer [protected]


The documentation for this class was generated from the following files:
Generated on Fri Jul 31 12:37:29 2009 for ArNetworking by  doxygen 1.4.7