Aria
2.8.0
|
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) |
ArDeviceConnection * | getDeviceConnection (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 | |
ArDeviceConnection * | myConn |
ArLog::LogLevel | myInfoLogLevel |
bool | myIsS300 |
char | myName [1024] |
unsigned int | myNameLength |
ArS3SeriesPacket | myPacket |
unsigned char | myReadBuf [100000] |
int | myReadCount |
Given a device connection it receives packets from the sick through it.
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