Public Member Functions | Private Attributes | List of all members
rslidar_driver::InputSocket Class Reference

Live rslidar input from socket. More...

#include <input.h>

Inheritance diagram for rslidar_driver::InputSocket:
Inheritance graph
[legend]

Public Member Functions

virtual int getPacket (rslidar_msgs::rslidarPacket *pkt, const double time_offset)
 Get one rslidar packet. More...
 
 InputSocket (ros::NodeHandle private_nh, uint16_t port=MSOP_DATA_PORT_NUMBER)
 constructor More...
 
virtual ~InputSocket ()
 destructor More...
 
- Public Member Functions inherited from rslidar_driver::Input
 Input (ros::NodeHandle private_nh, uint16_t port)
 constructor More...
 
virtual ~Input ()
 

Private Attributes

in_addr devip_
 
int len
 
int Ret
 
int sockfd_
 

Additional Inherited Members

- Protected Attributes inherited from rslidar_driver::Input
std::string devip_str_
 
uint16_t port_
 
ros::NodeHandle private_nh_
 

Detailed Description

Live rslidar input from socket.

Definition at line 113 of file input.h.

Constructor & Destructor Documentation

rslidar_driver::InputSocket::InputSocket ( ros::NodeHandle  private_nh,
uint16_t  port = MSOP_DATA_PORT_NUMBER 
)

constructor

Parameters
private_nhROS private handle for calling node.
portUDP port number

Definition at line 92 of file input.cc.

rslidar_driver::InputSocket::~InputSocket ( void  )
virtual

destructor

Definition at line 136 of file input.cc.

Member Function Documentation

int rslidar_driver::InputSocket::getPacket ( rslidar_msgs::rslidarPacket *  pkt,
const double  time_offset 
)
virtual

Get one rslidar packet.

Implements rslidar_driver::Input.

Definition at line 142 of file input.cc.

Member Data Documentation

in_addr rslidar_driver::InputSocket::devip_
private

Definition at line 125 of file input.h.

int rslidar_driver::InputSocket::len
private

Definition at line 128 of file input.h.

int rslidar_driver::InputSocket::Ret
private

Definition at line 127 of file input.h.

int rslidar_driver::InputSocket::sockfd_
private

Definition at line 124 of file input.h.


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


rslidar_driver
Author(s): Tony Zhang , Tony Zhang
autogenerated on Mon Jun 10 2019 14:41:07