#include <ArServerInfoRobot.h>
update
physicalInfo
batteryInfo
activityTimeInfo
For bandwidth savings you should use updateNumbers
and updateStrings
instead of update
.
The update
request returns data regarding the current state of the robot. It replies with the following data packet:
The updateNumbers
request returns data regarding the current state of the robot. It replies with the following data packet:
The updateStrings
request broadcasts data regarding the current state of the robot. Request this at -1 to get the broadcasts and an initial packet with the inital data. It replies with the following data packet:
The physicalInfo
request returns data regarding the physical characteristics of the robot. This information does not change during the robot execution. It replies with the following data packet:
The batteryInfo
request replies with the following data packet:
The activityTimeInfo
request replies with the following data packet:
These requests are in the RobotInfo
command group.
Public Member Functions | |
void | activityTimeInfo (ArServerClient *client, ArNetPacket *packet) |
The function that sends information about the time that the server mode was last active. | |
ArServerInfoRobot (ArServerBase *server, ArRobot *robot) | |
Constructor. | |
void | batteryInfo (ArServerClient *client, ArNetPacket *packet) |
The function that sends battery info about the robot off to the client. | |
void | physicalInfo (ArServerClient *client, ArNetPacket *packet) |
The function that sends information about the physical robot. | |
void | update (ArServerClient *client, ArNetPacket *packet) |
The function that sends updates about the robot off to the client. | |
void | updateNumbers (ArServerClient *client, ArNetPacket *packet) |
The function that sends updates about the robot off to the client. | |
void | updateStrings (ArServerClient *client, ArNetPacket *packet) |
The function that sends updates about the robot off to the client. | |
virtual | ~ArServerInfoRobot () |
Destructor. | |
Protected Member Functions | |
void | userTask (void) |
Protected Attributes | |
ArFunctor2C< ArServerInfoRobot, ArServerClient *, ArNetPacket * > | myActivityTimeInfoCB |
ArFunctor2C< ArServerInfoRobot, ArServerClient *, ArNetPacket * > | myBatteryInfoCB |
std::string | myMode |
std::string | myOldMode |
std::string | myOldStatus |
ArFunctor2C< ArServerInfoRobot, ArServerClient *, ArNetPacket * > | myPhysicalInfoCB |
ArRobot * | myRobot |
ArServerBase * | myServer |
std::string | myStatus |
ArFunctor2C< ArServerInfoRobot, ArServerClient *, ArNetPacket * > | myUpdateCB |
ArFunctor2C< ArServerInfoRobot, ArServerClient *, ArNetPacket * > | myUpdateNumbersCB |
ArFunctor2C< ArServerInfoRobot, ArServerClient *, ArNetPacket * > | myUpdateStringsCB |
ArFunctorC< ArServerInfoRobot > | myUserTaskCB |