Function ouster::sdk::pcap::guess_ports
Defined in File os_pcap.h
Function Documentation
-
std::vector<GuessedPorts> ouster::sdk::pcap::guess_ports(StreamInfo &info, int lidar_packet_size, int imu_packet_size, int expected_lidar_port, int expected_imu_port)
Return a guess of the correct ports located in a pcap file.
- Parameters:
info[in] – The stream_info structure generated from a specific pcap file
lidar_packet_size[in] – The size of the lidar packets
imu_packet_size[in] – The size of the imu packets
expected_lidar_port[in] – The expected lidar port from the metadata (pass 0 for unknown)
expected_imu_port[in] – The expected imu port from the metadata (pass 0 for unknown)
- Returns:
A vector (sorted by most likely to least likely) of the guessed ports