Class AnyPacketSource¶
Defined in File frame_set_source_utils.h
Inheritance Relationships¶
Base Type¶
public ouster::sdk::core::PacketSourceClass PacketSource
Class Documentation¶
-
class AnyPacketSource : public ouster::sdk::core::PacketSource¶
Wraps a shared pointer to a FrameSetSource to allow easy use of it by value.
Public Functions
-
AnyPacketSource(std::unique_ptr<PacketSource> source)¶
Construct an AnyPacketSource from a provided source, taking ownership of it.
- Parameters:
source[in] the source to wrap and take ownership of
-
virtual PacketIterator begin() const override¶
Get begin iterator for container.
Provides each frame from all sensors in time order
- Returns:
iterator to first item in source
-
virtual PacketIterator end() const override¶
Get end iterator for source.
- Returns:
iterator to end of source
-
virtual const std::vector<std::shared_ptr<SensorInfo>> &sensor_info() const override¶
Get the SensorInfo for each sensor in the source.
- Returns:
info about each sensor
-
virtual bool is_live() const override¶
Indicates if the source is streaming from a device, such as a sensor.
- Returns:
if live or not
-
std::shared_ptr<PacketSource> child() const¶
Get the PacketSource wrapped by this PacketSource.
- Returns:
wrapped PacketSource
-
AnyPacketSource(std::unique_ptr<PacketSource> source)¶