Class InputPCAP
Defined in File input.hpp
Inheritance Relationships
Base Type
public velodyne_driver::Input
(Class Input)
Class Documentation
-
class InputPCAP : public velodyne_driver::Input
Velodyne input from PCAP dump file.
Dump files can be grabbed by libpcap, Velodyne’s DSR software, ethereal, wireshark, tcpdump, or the vdump_command.
Public Functions
-
explicit InputPCAP(rclcpp::Node *private_nh, const std::string &devip, uint16_t port, double packet_rate, const std::string &filename, bool read_once, bool read_fast, double repeat_delay)
-
~InputPCAP() override
-
virtual int getPacket(velodyne_msgs::msg::VelodynePacket *pkt, const double time_offset) override
Read one Velodyne packet.
- Parameters:
pkt – points to VelodynePacket message
- Returns:
0 if successful, -1 if end of file > 0 if incomplete packet (is this possible?)
-
void setDeviceIP(const std::string &ip)
-
explicit InputPCAP(rclcpp::Node *private_nh, const std::string &devip, uint16_t port, double packet_rate, const std::string &filename, bool read_once, bool read_fast, double repeat_delay)