Function cwipc_from_points
Defined in File api.h
Function Documentation
-
cwipc_pointcloud *cwipc_from_points(struct cwipc_point *points, size_t size, int npoint, uint64_t timestamp, 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:
points – Pointer to buffer with points.
size – Size of points in bytes.
npoint – Number of points (must match size).
timestamp – The timestamp to record in the cwipc object.
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.