Class LidarFrameEncoder¶
Defined in File lidarframe_encoder.h
Inheritance Relationships¶
Derived Types¶
public ouster::sdk::osf::PngLidarFrameEncoderClass PngLidarFrameEncoderpublic ouster::sdk::osf::ZPngLidarFrameEncoderClass ZPngLidarFrameEncoder
Class Documentation¶
-
class LidarFrameEncoder¶
Interface for encoding lidar frame fields.
This interface defines a method to encode a field of a lidar frame, optionally destaggering it based on pixel offsets.
Subclassed by ouster::sdk::osf::PngLidarFrameEncoder, ouster::sdk::osf::ZPngLidarFrameEncoder
Public Functions
-
virtual ~LidarFrameEncoder() = default¶
-
virtual FrameChannelData encode_field(const ouster::sdk::core::Field &field, const std::vector<int> &px_offset = {}) const = 0¶
This method encodes a field, if px_offset is provided it is destaggered before encoding.
- Parameters:
field[in] The field to encode (e.g., RANGE, SIGNAL).
px_offset[in] Optional pixel offsets for destaggering the data.
- Throws:
std::runtime_error – If encoding fails (e.g., invalid field shape, unsupported field type, or backend encoding errors).
- Returns:
Encoded binary data representing the field.
-
virtual ~LidarFrameEncoder() = default¶