46 uint8_t search_buffer[2] = {0};
47 uint8_t payload_length_buffer[2] = {0};
49 uint8_t checksum_buffer[2] = {0};
50 uint16_t payload_length, checksum;
58 throw SickIOException(
"SickPLSBufferMonitor::GetNextMessageFromDataStream: tcdrain failed!");
62 unsigned int bytes_searched = 0;
67 search_buffer[0] = search_buffer[1];
76 throw SickTimeoutException(
"SickPLSBufferMonitor::GetNextMessageFromDataStream: header timeout!");
96 memcpy(&payload_length,payload_length_buffer,2);
110 memcpy(&checksum,checksum_buffer,2);
117 if(sick_message.GetChecksum() != checksum)
135 sick_message.Clear();
Defines simple utility functions for working with the Sick LMS 2xx laser range finder units...
Contains some simple exception classes.
Definition of class SickPLSMessage.
#define DEFAULT_SICK_PLS_HOST_ADDRESS
Client/host default serial address.
#define DEFAULT_SICK_PLS_SICK_BYTE_TIMEOUT
Max allowable time between consecutive bytes.
Defines a class for monitoring the receive buffer when interfacing w/ a Sick PLS laser range finder...
Definition of class SickPLS. Code by Jason C. Derenick and Thomas H. Miller. Contact derenick(at)lehi...