ifm3dpy.deserialize.deserialize

ifm3dpy.deserialize.deserialize(buffer: Buffer) ODSInfoV1 | TOFInfoV3 | TOFInfoV4 | RGBInfoV1 | ODSOccupancyGridV1 | ODSPolarOccupancyGridV1 | ODSExtrinsicCalibrationCorrectionV1 | IMUInfoV1 | None

Deserialize the given buffer and return the appropriate data structure.

The structure returned is selected based on the buffer_id of the provided buffer.

Parameters

buffer (ifm3dpy.Buffer) – A buffer as returned by ifm3dpy.framegrabber.Frame.get_buffer().

Returns

The deserialized structure, or None if the buffer could not be interpreted.

Return type

ODSInfoV1 or TOFInfoV3 or TOFInfoV4 or RGBInfoV1 or ODSOccupancyGridV1 or ODSPolarOccupancyGridV1 or ODSExtrinsicCalibrationCorrectionV1 or IMUInfoV1 or None