You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In sensor_msgs_py/sensor_msgs_py/point_cloud2.py is missing handling of point_step value from PointCloud2 message when reading the PC2 points (read_points()). Numpy dtype is automatically generated based on PointFields including the itemsize value. The end of the point (point_step) is expected just after the last item in the array. When the point_step is actually greater, the dtype is incorrectly aligned with the data array.
Bug report
In sensor_msgs_py/sensor_msgs_py/point_cloud2.py is missing handling of point_step value from PointCloud2 message when reading the PC2 points (read_points()). Numpy dtype is automatically generated based on PointFields including the itemsize value. The end of the point (point_step) is expected just after the last item in the array. When the point_step is actually greater, the dtype is incorrectly aligned with the data array.
Example:
PointCloud2 message:
Resulting dtype:
Correct dtype:
The text was updated successfully, but these errors were encountered: