Function ouster::sdk::osf::slice_with_cast

Function Documentation

ouster::sdk::core::LidarScan ouster::sdk::osf::slice_with_cast(const ouster::sdk::core::LidarScan &ls_src, const ouster::sdk::core::LidarScanFieldTypes &field_types)

Cast ls_src LidarScan to a subset of fields with possible different underlying ChanFieldTypes.

Throws:

std::logic_error – Exception on trying to slice a scan with only a subset of the requested scans

Parameters:
  • ls_src[in] The LidarScan to cast.

  • field_types[in] The field types to cast the LidarScan to.

Returns:

a copy of ls_src with transformed fields.