Function ouster::sdk::osf::slice_and_cast

Function Documentation

ouster::sdk::core::LidarFrame ouster::sdk::osf::slice_and_cast(const ouster::sdk::core::LidarFrame &ls_src, const ouster::sdk::core::LidarFrameFieldTypes &field_types)

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

Throws:

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

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

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

Returns:

a copy of ls_src with transformed fields.