Function ouster::sdk::osf::slice_with_cast
Defined in File stream_lidar_scan.h
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_srcLidarScan 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_srcwith transformed fields.