Velodyne input from PCAP dump file. More...
#include <input.h>

Public Member Functions | |
| virtual int | getPacket (velodyne_msgs::VelodynePacket *pkt) |
| Get one velodyne packet. | |
| InputPCAP (ros::NodeHandle private_nh, double packet_rate, std::string filename="", bool read_once=false, bool read_fast=false, double repeat_delay=0.0) | |
| constructor | |
| ~InputPCAP () | |
Private Attributes | |
| bool | empty_ |
| char | errbuf_ [PCAP_ERRBUF_SIZE] |
| std::string | filename_ |
| FILE * | fp_ |
| ros::Rate | packet_rate_ |
| pcap_t * | pcap_ |
| bool | read_fast_ |
| bool | read_once_ |
| double | repeat_delay_ |
Velodyne input from PCAP dump file.
Dump files can be grabbed by libpcap, Velodyne's DSR software, ethereal, wireshark, tcpdump, or the Vdump Command.
| velodyne_driver::InputPCAP::InputPCAP | ( | ros::NodeHandle | private_nh, |
| double | packet_rate, | ||
| std::string | filename = "", |
||
| bool | read_once = false, |
||
| bool | read_fast = false, |
||
| double | repeat_delay = 0.0 |
||
| ) |
constructor
| private_nh | private node handle for driver |
| packet_rate | expected device packet frequency (Hz) |
| filename | PCAP dump file name |
| read_once | read PCAP in a loop, unless false |
| read_fast | read PCAP at device rate, unless false |
| repeat_delay | time to wait before repeating PCAP data |
| int velodyne_driver::InputPCAP::getPacket | ( | velodyne_msgs::VelodynePacket * | pkt | ) | [virtual] |
Get one velodyne packet.
Implements velodyne_driver::Input.
bool velodyne_driver::InputPCAP::empty_ [private] |
char velodyne_driver::InputPCAP::errbuf_[PCAP_ERRBUF_SIZE] [private] |
std::string velodyne_driver::InputPCAP::filename_ [private] |
FILE* velodyne_driver::InputPCAP::fp_ [private] |
pcap_t* velodyne_driver::InputPCAP::pcap_ [private] |
bool velodyne_driver::InputPCAP::read_fast_ [private] |
bool velodyne_driver::InputPCAP::read_once_ [private] |
double velodyne_driver::InputPCAP::repeat_delay_ [private] |