Skip to content

Commit eea13c2

Browse files
committed
USe correct mapping field
1 parent 79ddb7e commit eea13c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ros2_numpy/point_cloud2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def fields_to_dtype(fields, point_step):
7979
dtype = np.dtype((dtype, f.count))
8080

8181
np_dtype_list.append((f.name, dtype))
82-
offset += type_mappings[f.datatype].itemsize * f.count
82+
offset += pftype_to_nptype[f.datatype].itemsize * f.count
8383

8484
# might be extra padding between points
8585
while offset < point_step:

0 commit comments

Comments
 (0)