ArRobotPacketReceiver Class Reference

#include <ArRobotPacketReceiver.h>

List of all members.


Detailed Description

Given a device connection it receives packets from the robot through it.


Public Member Functions

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

Protected Types

enum  { STATE_SYNC1, STATE_SYNC2, STATE_ACQUIRE_DATA }

Protected Attributes

bool myAllocatePackets
ArDeviceConnectionmyDeviceConn
ArRobotPacket myPacket
unsigned char mySync1
unsigned char mySync2


The documentation for this class was generated from the following file:
Generated on Thu Aug 6 09:39:37 2009 for Aria by  doxygen 1.5.1