Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
o3m151_driver::Input Class Referenceabstract

Pure virtual O3M151 input base class. More...

#include <input.h>

Inheritance diagram for o3m151_driver::Input:
Inheritance graph
[legend]

Public Member Functions

virtual int getPacket (pcl::PointCloud< pcl::PointXYZI > &pc)=0
 Read one O3M151 packet. More...
 
 Input ()
 

Protected Member Functions

int process (int8_t *udpPacketBuf, const ssize_t rc, pcl::PointCloud< pcl::PointXYZI > &pc)
 
void processChannel8 (int8_t *buf, uint32_t size, pcl::PointCloud< pcl::PointXYZI > &pc)
 
int processPacket (int8_t *currentPacketData, uint32_t currentPacketSize, int8_t *channelBuffer, uint32_t channelBufferSize, uint32_t *pos)
 
double slope (const std::vector< double > &x, const std::vector< double > &y)
 

Protected Attributes

uint32_t channel_buf_size_
 
int8_t * channelBuf
 
uint32_t pos_in_channel_
 
uint32_t previous_packet_counter_
 
bool previous_packet_counter_valid_
 
bool startOfChannelFound_
 

Detailed Description

Pure virtual O3M151 input base class.

Definition at line 44 of file input.h.

Constructor & Destructor Documentation

o3m151_driver::Input::Input ( )

Definition at line 71 of file input.cc.

Member Function Documentation

virtual int o3m151_driver::Input::getPacket ( pcl::PointCloud< pcl::PointXYZI > &  pc)
pure virtual

Read one O3M151 packet.

Parameters
pktpoints to O3M151Packet message
Returns
0 if successful, -1 if end of file > 0 if incomplete packet (is this possible?)

Implemented in o3m151_driver::InputPCAP, and o3m151_driver::InputSocket.

int o3m151_driver::Input::process ( int8_t *  udpPacketBuf,
const ssize_t  rc,
pcl::PointCloud< pcl::PointXYZI > &  pc 
)
protected

Definition at line 234 of file input.cc.

void o3m151_driver::Input::processChannel8 ( int8_t *  buf,
uint32_t  size,
pcl::PointCloud< pcl::PointXYZI > &  pc 
)
protected

Definition at line 135 of file input.cc.

int o3m151_driver::Input::processPacket ( int8_t *  currentPacketData,
uint32_t  currentPacketSize,
int8_t *  channelBuffer,
uint32_t  channelBufferSize,
uint32_t *  pos 
)
protected

Definition at line 82 of file input.cc.

double o3m151_driver::Input::slope ( const std::vector< double > &  x,
const std::vector< double > &  y 
)
protected

Definition at line 124 of file input.cc.

Member Data Documentation

uint32_t o3m151_driver::Input::channel_buf_size_
protected

Definition at line 71 of file input.h.

int8_t* o3m151_driver::Input::channelBuf
protected

Definition at line 72 of file input.h.

uint32_t o3m151_driver::Input::pos_in_channel_
protected

Definition at line 75 of file input.h.

uint32_t o3m151_driver::Input::previous_packet_counter_
protected

Definition at line 78 of file input.h.

bool o3m151_driver::Input::previous_packet_counter_valid_
protected

Definition at line 79 of file input.h.

bool o3m151_driver::Input::startOfChannelFound_
protected

Definition at line 81 of file input.h.


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


o3m151_driver
Author(s): Vincent Rousseau
autogenerated on Mon Jun 10 2019 14:07:55