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_idof the provided buffer.- Parameters
buffer (
ifm3dpy.Buffer) – A buffer as returned byifm3dpy.framegrabber.Frame.get_buffer().- Returns
The deserialized structure, or
Noneif the buffer could not be interpreted.- Return type
ODSInfoV1orTOFInfoV3orTOFInfoV4orRGBInfoV1orODSOccupancyGridV1orODSPolarOccupancyGridV1orODSExtrinsicCalibrationCorrectionV1orIMUInfoV1orNone