53 #ifndef VELODYNE_DRIVER_INPUT_H 54 #define VELODYNE_DRIVER_INPUT_H 59 #include <netinet/in.h> 63 #include <velodyne_msgs/VelodynePacket.h> 86 virtual int getPacket(velodyne_msgs::VelodynePacket *pkt,
87 const double time_offset) = 0;
101 uint16_t port = DATA_PORT_NUMBER);
104 virtual int getPacket(velodyne_msgs::VelodynePacket *pkt,
105 const double time_offset);
106 void setDeviceIP(
const std::string& ip);
123 uint16_t port = DATA_PORT_NUMBER,
124 double packet_rate = 0.0,
126 bool read_once =
false,
127 bool read_fast =
false,
128 double repeat_delay = 0.0);
131 virtual int getPacket(velodyne_msgs::VelodynePacket *pkt,
132 const double time_offset);
133 void setDeviceIP(
const std::string& ip);
140 char errbuf_[PCAP_ERRBUF_SIZE];
149 #endif // VELODYNE_DRIVER_INPUT_H
static uint16_t DATA_PORT_NUMBER
static uint16_t POSITION_PORT_NUMBER