Skip to main content

PointCloud2

PointCloud2 lib for non ROS environment.

PyPI version PyPI license PyPI download month

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')])

Metadata

Release files for pointcloud2 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pointcloud2 0.6.0
File Size Uploaded Provenance Actions
pointcloud2-0.6.0.tar.gz 6.7 kB Without provenance Details for pointcloud2-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pointcloud2 0.6.0
File Interpreter ABI Platform Actions
pointcloud2-0.6.0-py3-none-any.whl Python 3 none any Details for pointcloud2-0.6.0-py3-none-any.whl

Total release size: 14.7 kB

Release files / pointcloud2-0.6.0.tar.gz

Download URL pointcloud2-0.6.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
20a457b2409bd7e8191c23ff1824d51ac1bd4d3b209b2942ee3900c6f06997f6
BLAKE2b-256 checksum
How to use checksums
bd75b5e69dffec932fb721ae9731bec1d7670cea3b4cdd914ca61badab580ac1
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / pointcloud2-0.6.0-py3-none-any.whl

Download URL pointcloud2-0.6.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03c7b0832bbac855fcef73c7403fcad49858ada0279d28c5818cdcbc125778ae
BLAKE2b-256 checksum
How to use checksums
a96ac2bb15597119fad6e5cc09cb5ea84a28bada7b02bb0ba557086b87fa97ed
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for pointcloud2 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page