Public Member Functions | Protected Attributes | Private Member Functions
SerialCommS300 Class Reference

connects to a Sick S300 laserscanner More...

#include <serialcomm_s300.h>

List of all members.

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 ()

Detailed Description

connects to a Sick S300 laserscanner

Definition at line 60 of file serialcomm_s300.h.


Constructor & Destructor Documentation

Definition at line 63 of file serialcomm_s300.cpp.

Definition at line 69 of file serialcomm_s300.cpp.


Member Function Documentation

int SerialCommS300::baudRateToBaudCode ( int  baudCode) [private]

Definition at line 144 of file serialcomm_s300.cpp.

int SerialCommS300::connect ( const std::string &  deviceName,
unsigned int  baudRate = DEFAULT_BAUD_RATE 
)

Definition at line 74 of file serialcomm_s300.cpp.

unsigned short SerialCommS300::createCRC ( unsigned char *  data,
ssize_t  len 
) [private]

Definition at line 195 of file serialcomm_s300.cpp.

Definition at line 159 of file serialcomm_s300.cpp.

unsigned int SerialCommS300::getNumRanges ( ) [inline]

Definition at line 70 of file serialcomm_s300.h.

float* SerialCommS300::getRanges ( ) [inline]

Definition at line 74 of file serialcomm_s300.h.

Definition at line 210 of file serialcomm_s300.cpp.

int SerialCommS300::setBaudRate ( int  baudRate) [private]

Definition at line 118 of file serialcomm_s300.cpp.

void SerialCommS300::setFlags ( ) [private]

Definition at line 96 of file serialcomm_s300.cpp.


Member Data Documentation

int SerialCommS300::m_fd [protected]

Definition at line 95 of file serialcomm_s300.h.

float* SerialCommS300::m_ranges [protected]

Definition at line 99 of file serialcomm_s300.h.

unsigned int SerialCommS300::m_rangesCount [protected]

Definition at line 100 of file serialcomm_s300.h.

unsigned char SerialCommS300::m_rxBuffer[RX_BUFFER_SIZE] [protected]

Definition at line 93 of file serialcomm_s300.h.

int SerialCommS300::m_rxCount [protected]

Definition at line 97 of file serialcomm_s300.h.


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


sicks300
Author(s): Dimitri Bohlender
autogenerated on Mon Oct 6 2014 07:37:46