[−][src]Module velodyne::packet
Packet sources module
Example
// Listen for packets on default port with default timeout, // alternatively pcap files can be used use velodyne::packet::{PacketSource, UdpSource}; let mut listener = UdpSource::new()?; loop { // Callback will be called for each point in the acquired packet, // each packet contains 12*32=384 points in total let res = listener.next_packet()?; match res { Some((src_addr, packet)) => { // process packet }, // source is exhausted None => break, } }
Structs
PacketMeta | Meta information associated with the recieved packet |
PcapSource | Acquires and processes packets from pre-recorded pcap file |
RawPoint | Raw point data |
StatusBytes | Status id and value bytes incorporated into each packet |
UdpSource | Acquires and processes packets from the network |
Traits
PacketSource | Source of raw sensor packets and basic parser. |
Functions
get_status | Return status bytes from raw packet data |
parse_packet | Parse Velodyne UDP packet data |
Type Definitions
RawPacket | Raw UDP packet data |