diff --git a/ros2_numpy/point_cloud2.py b/ros2_numpy/point_cloud2.py index fa65c58..59ebb00 100644 --- a/ros2_numpy/point_cloud2.py +++ b/ros2_numpy/point_cloud2.py @@ -247,7 +247,7 @@ def split_rgb_field(cloud_arr): new_cloud_arr[field_name] = cloud_arr[field_name] return new_cloud_arr -def get_xyz_points(cloud_array, remove_nans=True, dtype=np.float): +def get_xyz_points(cloud_array, remove_nans=True, dtype=float): '''Pulls out x, y, and z columns from the cloud recordarray, and returns a 3xN matrix. '''