Function ouster::sdk::osf::slice_and_cast¶
Defined in File stream_lidar_frame.h
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_srcLidarFrame 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_srcwith transformed fields.