connects to a Sick S300 laserscanner More...
#include <serialcomm_s300.h>
Public Member Functions | |
int | connect (const std::string &deviceName, unsigned int baudRate=DEFAULT_BAUD_RATE) |
int | disconnect () |
unsigned int | getNumRanges () |
float * | getRanges () |
int | readData () |
SerialCommS300 () | |
~SerialCommS300 () | |
Protected Attributes | |
int | m_fd |
float * | m_ranges |
unsigned int | m_rangesCount |
unsigned char | m_rxBuffer [RX_BUFFER_SIZE] |
int | m_rxCount |
Private Member Functions | |
int | baudRateToBaudCode (int baudCode) |
unsigned short | createCRC (unsigned char *data, ssize_t len) |
int | setBaudRate (int baudRate) |
void | setFlags () |
connects to a Sick S300 laserscanner
Definition at line 53 of file serialcomm_s300.h.
Definition at line 58 of file serialcomm_s300.cpp.
Definition at line 64 of file serialcomm_s300.cpp.
int SerialCommS300::baudRateToBaudCode | ( | int | baudCode | ) | [private] |
Definition at line 139 of file serialcomm_s300.cpp.
int SerialCommS300::connect | ( | const std::string & | deviceName, |
unsigned int | baudRate = DEFAULT_BAUD_RATE |
||
) |
Definition at line 69 of file serialcomm_s300.cpp.
unsigned short SerialCommS300::createCRC | ( | unsigned char * | data, |
ssize_t | len | ||
) | [private] |
Definition at line 190 of file serialcomm_s300.cpp.
int SerialCommS300::disconnect | ( | ) |
Definition at line 154 of file serialcomm_s300.cpp.
unsigned int SerialCommS300::getNumRanges | ( | ) | [inline] |
Definition at line 63 of file serialcomm_s300.h.
float* SerialCommS300::getRanges | ( | ) | [inline] |
Definition at line 67 of file serialcomm_s300.h.
int SerialCommS300::readData | ( | ) |
Definition at line 205 of file serialcomm_s300.cpp.
int SerialCommS300::setBaudRate | ( | int | baudRate | ) | [private] |
Definition at line 113 of file serialcomm_s300.cpp.
void SerialCommS300::setFlags | ( | ) | [private] |
Definition at line 91 of file serialcomm_s300.cpp.
int SerialCommS300::m_fd [protected] |
Definition at line 88 of file serialcomm_s300.h.
float* SerialCommS300::m_ranges [protected] |
Definition at line 92 of file serialcomm_s300.h.
unsigned int SerialCommS300::m_rangesCount [protected] |
Definition at line 93 of file serialcomm_s300.h.
unsigned char SerialCommS300::m_rxBuffer[RX_BUFFER_SIZE] [protected] |
Definition at line 86 of file serialcomm_s300.h.
int SerialCommS300::m_rxCount [protected] |
Definition at line 90 of file serialcomm_s300.h.