Metadata-Version: 2.1
Name: pointcloud2
Version: 0.1.1
Summary: PointCloud2 lib for non ROS environments
Author-email: Marko Bausch <60338487+mrkbac@users.noreply.github.com>
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8
Requires-Dist: numpy>=1.24.4
Description-Content-Type: text/markdown

# PointCloud2

PointCloud2 lib for non ROS environment.

[![PyPI version](https://img.shields.io/pypi/v/pointcloud2.svg)](https://pypi.python.org/pypi/pointcloud2/)
[![PyPI license](https://img.shields.io/pypi/l/pointcloud2.svg)](https://pypi.python.org/pypi/pointcloud2/)
[![PyPI download month](https://img.shields.io/pypi/dm/pointcloud2.svg)](https://pypi.python.org/pypi/pointcloud2/)

## Usage

```python
from pointcloud2 import read_points

from mcap.reader import make_reader
from mcap_ros2.decoder import DecoderFactory

reader = make_reader("file.mcap", decoder_factories=[DecoderFactory()])

for msg in tqdm(reader.iter_decoded_messages(
    topics=["/cloud"],
)):
    cloud = read_points(msg.decoded_message)
    # do something with cloud
    print(cloud['x'])
```
