44 uint8_t search_buffer[2] = {0};
45 uint8_t payload_length_buffer[2] = {0};
47 uint8_t checksum_buffer[2] = {0};
48 uint16_t payload_length, checksum;
54 throw SickIOException(
"SickLMS2xxBufferMonitor::GetNextMessageFromDataStream: tcdrain failed!");
58 unsigned int bytes_searched = 0;
62 search_buffer[0] = search_buffer[1];
69 throw SickTimeoutException(
"SickLMS2xxBufferMonitor::GetNextMessageFromDataStream: header timeout!");
81 memcpy(&payload_length,payload_length_buffer,2);
94 memcpy(&checksum,checksum_buffer,2);
101 if(sick_message.GetChecksum() != checksum) {
113 sick_message.Clear();
#define DEFAULT_SICK_LMS_2XX_SICK_BYTE_TIMEOUT
Max allowable time between consecutive bytes.
#define DEFAULT_SICK_LMS_2XX_HOST_ADDRESS
Client/host default serial address.
Contains some simple exception classes.
Defines simple utility functions for working with the Sick LMS 2xx laser range finder units...
Definition of class SickLMS2xxMessage.
Definition of class SickLMS2xx. Code by Jason C. Derenick and Thomas H. Miller. Contact derenick(at)l...
Defines a class for monitoring the receive buffer when interfacing w/ a Sick LMS 2xx laser range find...