ArLMS2xxPacketReceiver Class Reference

#include <ArLMS2xxPacketReceiver.h>

List of all members.


Detailed Description

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


Public Member Functions

 ArLMS2xxPacketReceiver (ArDeviceConnection *deviceConnection, unsigned char receivingAddress=0, bool allocatePackets=false, bool useBase0Address=false)
 Constructor with assignment of a device connection.
 ArLMS2xxPacketReceiver (unsigned char receivingAddress=0, bool allocatePackets=false, bool useBase0Address=false)
 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.
ArLMS2xxPacketreceivePacket (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 ~ArLMS2xxPacketReceiver ()
 Destructor.

Protected Types

enum  { STATE_START, STATE_ADDR, STATE_START_COUNT, STATE_ACQUIRE_DATA }

Protected Attributes

bool myAllocatePackets
ArDeviceConnectionmyDeviceConn
ArLMS2xxPacket myPacket
unsigned char myReceivingAddress
bool myUseBase0Address


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