Function ouster::sdk::open_packet_source(const std::string&, const std::function<void(PacketSourceOptions&)>&)¶
Defined in File open_source.h
Function Documentation¶
-
ouster::sdk::core::AnyPacketSource ouster::sdk::open_packet_source(const std::string &source, const std::function<void(PacketSourceOptions&)> &options = {})¶
Construct a PacketSource for the given file with the specified options.
- Parameters:
source[in] source file name(s)
options[in] source options
- Throws:
std::runtime_error – if source type is not detected or not supported
std::runtime_error – if provided option is not supported by source type
- Returns:
constructed source