Skip to content

Conversation

xndcn
Copy link

@xndcn xndcn commented Sep 9, 2025

When points is a structured NumPy array and point_step is not provided, create_cloud now defaults point_step to points.dtype.itemsize for convenience

See also #223

@xndcn
Copy link
Author

xndcn commented Sep 9, 2025

When points is structured NumPy array, the point_step of final PointCloud2 is directly derived from points.dtype.itemsize.
So in this condition, we need only to check fields if point_step is not provided, and that is why we can use points.dtype.itemsize by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant