velodyne::InputSocket Class Reference

Live Velodyne input from socket. More...

#include <input.h>

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

List of all members.

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_

Detailed Description

Live Velodyne input from socket.

Definition at line 95 of file input.h.


Constructor & Destructor Documentation

velodyne::InputSocket::InputSocket ( uint16_t  udp_port = UDP_PORT_NUMBER  )  [inline]

Definition at line 98 of file input.h.

velodyne::InputSocket::~InputSocket (  )  [inline]

Definition at line 104 of file input.h.


Member Function Documentation

int velodyne::InputSocket::getPackets ( uint8_t *  buffer,
int  npacks,
double *  data_time 
) [virtual]

Read velodyne packets.

Parameters:
buffer array to receive raw data packets
npacks number of packets to read
data_time[out] average time when data received
Returns:
number of packets not read, if any 0 if successful, -1 if end of file
Deprecated:
Use getPacket() instead

Implements velodyne::Input.

Definition at line 89 of file input.cc.

int velodyne::InputSocket::vclose ( void   )  [virtual]

Close the data socket or file.

Returns:
0, if successful errno value, for failure

Implements velodyne::Input.

Definition at line 166 of file input.cc.

int velodyne::InputSocket::vopen ( void   )  [virtual]

Open the data socket or file.

Returns:
: 0, if successful; -1 for failure
Todo:
return errno value for failure

Implements velodyne::Input.

Definition at line 54 of file input.cc.


Member Data Documentation

Definition at line 112 of file input.h.

Definition at line 111 of file input.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Defines


velodyne_common
Author(s): Jack O'Quin, Patrick Beeson, Michael Quinlan, Yaxin Liu
autogenerated on Fri Jan 11 10:05:58 2013