facontidavide/cloudini
Pointcloud compression library
What it solves
Pointcloud data (e.g., from LiDAR sensors) is massive. Storing it in datasets like rosbags consumes huge amounts of disk space, and streaming it over a network eats bandwidth. In fact, ROS pointcloud messages can contain up to 50% useless padding, making them extremely inefficient to store. Cloudini shrinks this data significantly—often better than standard compressors like ZSTD or LZ4 alone—while also being faster, because it first encodes the data more efficiently before applying compression.
How it works
It works in two steps. First, it encodes the pointcloud channel by channel. For floating-point channels (like X, Y, Z coordinates), it applies a user-defined quantization (rounding to a set resolution, e.g., 1 mm), which is lossy but imperceptible given typical sensor noise. For integer and color channels, it is lossless. Second, it compresses the encoded result using standard LZ4 or ZSTD compression. The decoder automatically reads the encoding parameters from the data header, so no manual setup is needed.
Who it’s for
Developers and researchers working with 3D pointcloud data, particularly those using ROS (Robot Operating System) or PCL (Point Cloud Library). It's useful for anyone who records large rosbag datasets, streams pointclouds over networks, or wants to reduce storage costs. The core library can be used standalone, and there are tools for converting rosbags and topics, plus a WebAssembly module for web-based tools like Foxglove.
Highlights
- Achieves better compression than ZSTD or LZ4 alone, while being 1.3–2.6× faster to encode and 1.3–2× faster to decode in tests.
- Lossy quantization for coordinates (user-set resolution, e.g., 1 mm) and lossless for colors and integer channels.
- Works seamlessly with ROS and PCL, but the core library (
cloudini_lib) is standalone. - Includes ROS utilities: a topic converter, a rosbag converter (MCAP format, available as a pre-built AppImage), and point_cloud_transport plugins.
- Provides a WebAssembly module for a Foxglove extension and a Python decoder.
- Decoder automatically reads encoding parameters from the data header.
- Supports multiple encoding versions (V5 and V6) for backward compatibility.
Related
- Project
- Project
- Project
- Project
- Project