Function cwipc_from_packet
Defined in File api.h
Function Documentation
-
cwipc_pointcloud *cwipc_from_packet(uint8_t *packet, size_t size, char **errorMessage, uint64_t apiVersion)
Create cwipc pointcloud from external representation.
If an error occurs and errorMessage is non-NULL it will receive a pointer to a string with the message.
- Parameters:
packet – Pointer to packet obtained from cwipc_pointcloud_copy_packet
size – Size of points in bytes.
errorMessage – Address of a char* where any error message is saved (or NULL).
apiVersion – Pass in CWIPC_API_VERSION to ensure dll compatibility.
- Returns:
the abstract point cloud, or NULL in case of errors.