Function ouster::sdk::open_source(const std::vector<std::string>&, const std::function<void(ScanSourceOptions&)>&, bool, int)

Function Documentation

ouster::sdk::core::AnyScanSource ouster::sdk::open_source(const std::vector<std::string> &source, const std::function<void(ScanSourceOptions&)> &options = {}, bool collate = true, int sensor_idx = -1)

Construct a PacketSource for the given file with the specified 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

Parameters:
  • source[in] source filename(s)

  • options[in] source options

  • collate[in] whether to collate the source or not

  • sensor_idx[in] sensor index to access in the data source

Returns:

constructed source