Aria  2.8.0
ArLMS1XXPacketReceiver Class Reference

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

#include <ArLMS1XX.h>

Public Member Functions

 ArLMS1XXPacketReceiver ()
 Constructor with assignment of a device connection.
 
ArDeviceConnectiongetDeviceConnection (void)
 Gets the device this instance receives packets from.
 
ArLMS1XXPacket * receivePacket (unsigned int msWait=0, bool shortcut=false, bool ignoreRemainders=false)
 Receives a packet from the robot if there is one available.
 
ArLMS1XXPacket * receiveTiMPacket (unsigned int msWait=0, bool shortcut=false, bool ignoreRemainders=false)
 
void setDeviceConnection (ArDeviceConnection *conn)
 Sets the device this instance receives packets from.
 
void setLaserModel (int laserModel)
 
void setmyInfoLogLevel (ArLog::LogLevel infoLogLevel)
 
void setmyName (const char *name)
 
void setReadTimeout (int timeout)
 
virtual ~ArLMS1XXPacketReceiver ()
 Destructor.
 

Protected Types

enum  State { STARTING, DATA, REMAINDER }
 

Protected Attributes

ArDeviceConnectionmyConn
 
ArLog::LogLevel myInfoLogLevel
 
int myLaserModel
 
char myName [1024]
 
unsigned int myNameLength
 
ArLMS1XXPacket myPacket
 
char myReadBuf [100000]
 
int myReadCount
 
int myReadTimeout
 
State myState
 

Detailed Description

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

Member Enumeration Documentation

◆ State

Enumerator
STARTING 

Looking for beginning.

DATA 

Read the data in a big whack.

REMAINDER 

Have extra data from reading in data.


The documentation for this class was generated from the following files: