Class PacketSource
Defined in File packet_source.h
Inheritance Relationships
Derived Types
public ouster::sdk::core::AnyPacketSource(Class AnyPacketSource)public ouster::sdk::pcap::PcapPacketSource(Class PcapPacketSource)public ouster::sdk::sensor::SensorPacketSource(Class SensorPacketSource)
Class Documentation
-
class PacketSource
Provides a base API for classes that provide access to packets.
Subclassed by ouster::sdk::core::AnyPacketSource, ouster::sdk::pcap::PcapPacketSource, ouster::sdk::sensor::SensorPacketSource
Public Functions
-
virtual ~PacketSource() = default
-
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<SensorInfo>> &sensor_info() const = 0
Get the SensorInfo for each sensor in the source.
- Returns:
info about each sensor
-
virtual ~PacketSource() = default