Aria  2.8.0
ArS3SeriesPacketReceiver Class Reference

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

#include <ArS3Series.h>

Public Member Functions

 ArS3SeriesPacketReceiver ()
 Constructor with assignment of a device connection.
 
unsigned short CRC16 (unsigned char *, int)
 
ArDeviceConnectiongetDeviceConnection (void)
 Gets the device this instance receives packets from.
 
ArS3SeriesPacket * receivePacket (unsigned int msWait=0, bool shortcut=false)
 Receives a packet from the robot if there is one available. More...
 
void setDeviceConnection (ArDeviceConnection *conn)
 Sets the device this instance receives packets from.
 
void setInfoLogLevel (ArLog::LogLevel infoLogLevel)
 
void setIsS300 (bool isS300)
 
void setName (const char *name)
 
virtual ~ArS3SeriesPacketReceiver ()
 Destructor.
 

Protected Attributes

ArDeviceConnectionmyConn
 
ArLog::LogLevel myInfoLogLevel
 
bool myIsS300
 
char myName [1024]
 
unsigned int myNameLength
 
ArS3SeriesPacket myPacket
 
unsigned char myReadBuf [100000]
 
int myReadCount
 

Detailed Description

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

Member Function Documentation

◆ receivePacket()

ArS3SeriesPacket * ArS3SeriesPacketReceiver::receivePacket ( unsigned int  msWait = 0,
bool  shortcut = false 
)

Receives a packet from the robot if there is one available.

MPL this timeout was 5000, but I've made it 200 since the number of readings could be bogus and we don't want to go 5 seconds with no readings


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