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

#include <sicks3000.h>

List of all members.

Public Member Functions

int Close ()
 Close the port.
int Open ()
 Open the port.
void ReadLaser (sensor_msgs::LaserScan &scan_msg, bool &bValidData)
 Read and process data.
 SickS3000 (std::string port)
 Public constructor.
 ~SickS3000 ()

Protected Attributes

int max_angle
int min_angle
int mirror
bool recognisedScanner
uint8_t * rx_buffer
unsigned int rx_buffer_size
unsigned int rx_count
int scan_max_segment
int scan_min_segment
int scan_res
int scan_width
SerialDeviceserial

Private Member Functions

unsigned short CreateCRC (uint8_t *data, ssize_t len)
int64_t GetTime ()
int ProcessLaserData (sensor_msgs::LaserScan &scan_msg, bool &bValidData)
void SetScannerParams (sensor_msgs::LaserScan &scan, int data_count)

Detailed Description

Definition at line 47 of file sicks3000.h.


Constructor & Destructor Documentation

SickS3000::SickS3000 ( std::string  port)

Public constructor.

Definition at line 51 of file sicks3000.cc.

Definition at line 68 of file sicks3000.cc.


Member Function Documentation

Close the port.

Closes serial port.

Returns:
ERROR
OK

Definition at line 101 of file sicks3000.cc.

unsigned short SickS3000::CreateCRC ( uint8_t *  data,
ssize_t  len 
) [private]

Definition at line 303 of file sicks3000.cc.

int64_t SickS3000::GetTime ( ) [private]
int SickS3000::Open ( )

Open the port.

Open serial port.

Returns:
-1 Error
0 Ok

Definition at line 84 of file sicks3000.cc.

int SickS3000::ProcessLaserData ( sensor_msgs::LaserScan &  scan_msg,
bool &  bValidData 
) [private]

Definition at line 150 of file sicks3000.cc.

void SickS3000::ReadLaser ( sensor_msgs::LaserScan &  scan_msg,
bool &  bValidData 
)

Read and process data.

Definition at line 126 of file sicks3000.cc.

void SickS3000::SetScannerParams ( sensor_msgs::LaserScan &  scan,
int  data_count 
) [private]

Definition at line 109 of file sicks3000.cc.


Member Data Documentation

int SickS3000::max_angle [protected]

Definition at line 93 of file sicks3000.h.

int SickS3000::min_angle [protected]

Definition at line 93 of file sicks3000.h.

int SickS3000::mirror [protected]

Definition at line 86 of file sicks3000.h.

bool SickS3000::recognisedScanner [protected]

Definition at line 99 of file sicks3000.h.

uint8_t* SickS3000::rx_buffer [protected]

Definition at line 102 of file sicks3000.h.

unsigned int SickS3000::rx_buffer_size [protected]

Definition at line 103 of file sicks3000.h.

unsigned int SickS3000::rx_count [protected]

Definition at line 104 of file sicks3000.h.

int SickS3000::scan_max_segment [protected]

Definition at line 97 of file sicks3000.h.

int SickS3000::scan_min_segment [protected]

Definition at line 97 of file sicks3000.h.

int SickS3000::scan_res [protected]

Definition at line 89 of file sicks3000.h.

int SickS3000::scan_width [protected]

Definition at line 89 of file sicks3000.h.

Definition at line 83 of file sicks3000.h.


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


s3000_laser
Author(s): Román Navarro
autogenerated on Mon Oct 6 2014 07:26:44