packet_source.h

Class

class PacketSource

Provides a base API for classes that provide access to packets.

Subclassed by ouster::core::AnyPacketSource, ouster::pcap::PcapPacketSource, ouster::sensor::SensorPacketSource

Public Functions

virtual PacketIterator begin() const = 0

Get begin iterator for container. Provides each scan from all sensors in time order

Returns:

iterator to first item in source

virtual PacketIterator end() const

Get end iterator for source.

Returns:

iterator to end of source

virtual bool is_live() const = 0

Indicates if the source is streaming from a device, such as a sensor

Returns:

if live or not

virtual const std::vector<std::shared_ptr<ouster::sensor::sensor_info>> &sensor_info() const = 0

Get the sensor_info for each sensor in the source

Returns:

info about each sensor