#include <ArRobotPacketReceiver.h>
Public Methods | |
ArRobotPacketReceiver (bool allocatePackets=false, unsigned char sync1=0xfa, unsigned char sync2=0xfb) | |
Constructor without an already assigned device connection. More... | |
ArRobotPacketReceiver (ArDeviceConnection *deviceConnection, bool allocatePackets=false, unsigned char sync1=0xfa, unsigned char sync2=0xfb) | |
Constructor with assignment of a device connection. More... | |
virtual | ~ArRobotPacketReceiver (void) |
Destructor. | |
ArRobotPacket * | receivePacket (unsigned int msWait=0) |
Receives a packet from the robot if there is one available. More... | |
void | setDeviceConnection (ArDeviceConnection *deviceConnection) |
Sets the device this instance receives packets from. | |
ArDeviceConnection * | getDeviceConnection (void) |
Gets the device this instance receives packets from. | |
bool | isAllocatingPackets (void) |
Gets whether or not the receiver is allocating packets. |
|
Constructor without an already assigned device connection.
|
|
Constructor with assignment of a device connection.
|
|
Receives a packet from the robot if there is one available.
|