Live Velodyne input from socket. More...
#include <input.h>

Public Member Functions | |
| virtual int | getPackets (uint8_t *buffer, int npacks, double *data_time) |
| Read velodyne packets. | |
| InputSocket (uint16_t udp_port=UDP_PORT_NUMBER) | |
| virtual int | vclose (void) |
| Close the data socket or file. | |
| virtual int | vopen (void) |
| Open the data socket or file. | |
| ~InputSocket () | |
Private Attributes | |
| int | sockfd_ |
| uint16_t | udp_port_ |
Live Velodyne input from socket.
Definition at line 95 of file input.h.
| velodyne::InputSocket::InputSocket | ( | uint16_t | udp_port = UDP_PORT_NUMBER |
) | [inline] |
| int velodyne::InputSocket::getPackets | ( | uint8_t * | buffer, | |
| int | npacks, | |||
| double * | data_time | |||
| ) | [virtual] |
Read velodyne packets.
| buffer | array to receive raw data packets | |
| npacks | number of packets to read | |
| data_time[out] | average time when data received |
Implements velodyne::Input.
| int velodyne::InputSocket::vclose | ( | void | ) | [virtual] |
Close the data socket or file.
Implements velodyne::Input.
| int velodyne::InputSocket::vopen | ( | void | ) | [virtual] |
Open the data socket or file.
Implements velodyne::Input.
int velodyne::InputSocket::sockfd_ [private] |
uint16_t velodyne::InputSocket::udp_port_ [private] |