PointCloud2
PointCloud2 lib for non ROS environment.
Usage
>>> import numpy as np
>>> from pointcloud2 import create_cloud, read_points, PointField
>>> fields = [
... PointField('x', 0, PointField.FLOAT32, 1),
... PointField('y', 4, PointField.FLOAT32, 1),
... PointField('z', 8, PointField.FLOAT32, 1),
... PointField('rgb', 12, PointField.UINT32, 1),
... ]
>>> points = np.array([
... [1, 0, 0, 255],
... [0, 1, 0, 255],
... [0, 0, 1, 255],
... ], dtype=np.float32)
>>> cloud = create_cloud(header=None, fields=fields, points=points)
>>> cloud.height, cloud.width, cloud.point_step, cloud.row_step, len(cloud.data)
(1, 3, 16, 48, 48)
>>> read_points(cloud)
array([(1., 0., 0., 255), (0., 1., 0., 255), (0., 0., 1., 255)],
dtype=[('x', '<f4'), ('y', '<f4'), ('z', '<f4'), ('rgb', '<u4')])
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pointcloud2-0.6.0.tar.gz
(6.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pointcloud2-0.6.0.tar.gz.
File metadata
- Download URL: pointcloud2-0.6.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20a457b2409bd7e8191c23ff1824d51ac1bd4d3b209b2942ee3900c6f06997f6
|
|
| MD5 |
51a8fdf9d89a2db2c8e984bdfb06dee4
|
|
| BLAKE2b-256 |
bd75b5e69dffec932fb721ae9731bec1d7670cea3b4cdd914ca61badab580ac1
|
File details
Details for the file pointcloud2-0.6.0-py3-none-any.whl.
File metadata
- Download URL: pointcloud2-0.6.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03c7b0832bbac855fcef73c7403fcad49858ada0279d28c5818cdcbc125778ae
|
|
| MD5 |
c78cb36f84db1bd1a37025b5bcea3f4a
|
|
| BLAKE2b-256 |
a96ac2bb15597119fad6e5cc09cb5ea84a28bada7b02bb0ba557086b87fa97ed
|