Public Member Functions | Private Attributes
DevApplanixPCAP Class Reference

#include <applanix.h>

Inheritance diagram for DevApplanixPCAP:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual int connect_socket (void)
 DevApplanixPCAP (std::string filename="", bool read_once=false, bool read_fast=false, double repeat_delay=0.0)
virtual int read_packet (ros::Time *time)

Private Attributes

bool empty_
char errbuf_ [PCAP_ERRBUF_SIZE]
std::string filename_
FILE * fp_
bool got_data_
pcap_t * pcap_
bool read_fast_
bool read_once_
double repeat_delay_

Detailed Description

Applanix input from PCAP dump file.

Dump files can be grabbed by libpcap, Velodyne's DSR software, ethereal, wireshark, or tcpdump.

Definition at line 181 of file applanix.h.


Constructor & Destructor Documentation

DevApplanixPCAP::DevApplanixPCAP ( std::string  filename = "",
bool  read_once = false,
bool  read_fast = false,
double  repeat_delay = 0.0 
) [inline]

Definition at line 185 of file applanix.h.


Member Function Documentation

int DevApplanixPCAP::connect_socket ( void  ) [virtual]
Todo:
print error message, if pcap open fails

Reimplemented from DevApplanix.

Definition at line 229 of file applanix.cc.

int DevApplanixPCAP::read_packet ( ros::Time time) [virtual]

get packet from PCAP dump

Returns:
0 if any data received; EAGAIN if no data received; errno value if error

Reimplemented from DevApplanix.

Definition at line 249 of file applanix.cc.


Member Data Documentation

Definition at line 216 of file applanix.h.

char DevApplanixPCAP::errbuf_[PCAP_ERRBUF_SIZE] [private]

Definition at line 214 of file applanix.h.

std::string DevApplanixPCAP::filename_ [private]

Definition at line 211 of file applanix.h.

FILE* DevApplanixPCAP::fp_ [private]

Definition at line 212 of file applanix.h.

Definition at line 215 of file applanix.h.

pcap_t* DevApplanixPCAP::pcap_ [private]

Definition at line 213 of file applanix.h.

Definition at line 218 of file applanix.h.

Definition at line 217 of file applanix.h.

Definition at line 219 of file applanix.h.


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


applanix
Author(s): Jack O'Quin, Patrick Beeson, Alberto Alonso
autogenerated on Fri Jan 3 2014 11:09:02