Function ouster::sdk::core::resolve_field_types

Function Documentation

std::vector<std::vector<FieldType>> ouster::sdk::core::resolve_field_types(const std::vector<std::shared_ptr<SensorInfo>> &sensor_infos, bool raw_headers, bool raw_fields, const nonstd::optional<std::vector<std::string>> &field_names)

Resolve list of field types for the given sensor infos.

Parameters:
  • sensor_infos[in] SensorInfos

  • raw_headers[in] if true, add raw headers

  • raw_fields[in] if true, add raw fields

  • field_names[in] names of fields to include from list of defaults, if empty all default fields are added

Throws:

std::runtime_error – if field name not in list of default fields

Returns:

resolved field types