Skip to content

Software

Cloudini

From github.com/facontidavide/cloudini (opens in a new tab)

  • Middleware
  • Library
  • Apache-2.0

Cloudini is a C++ library that compresses point cloud data, aiming for speed while still giving good compression ratios. It works with PCL and ROS or can be used standalone.

Facts

GitHub stars
571read on 27 Nov 2026
Last update
26 Nov 2026Newest commit on main
Maintenance
Activea commit in the last 90 days
Difficulty
Intermediate

Checked on GitHub on 28 Nov 2026.

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit 02984ec (opens in a new tab), on 28 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Encodes point clouds channel by channel, then compresses the result with LZ4 or ZSTD.
  • Floating point channels such as X, Y and Z are quantized with a user-given resolution, which makes them lossy.
  • RGBA and integer channels, including packed colors named rgb or rgba, are stored losslessly.
  • Main uses are reducing the size of datasets such as rosbags and lowering bandwidth when streaming point clouds.
  • Includes ROS 2 tools: a point_cloud_transport plugin, a topic converter and a rosbag converter for MCAP files.
  • Also builds to WebAssembly for the Foxglove extension and a Python decoder, and offers a benchmark tool for measuring ratio and speed on your own data.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
Apache-2.0. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Active, last commit on 26 Nov 2026.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 02984ec

Robotheca read the repository at two versions: the summary at 9b296ff and the facts and the README at 02984ec (read on 28 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by @facontidavide, at commit 02984ec, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

Cloudini

Cloudini (pronounced with Italian accent) is a pointcloud compression library.

Its main focus is speed, but it still achieves very good compression ratios.

Its main use cases are:

  • To improve the storage of datasets containing pointcloud data (being a notable example rosbags).

  • Decrease the bandwidth used when streaming pointclouds over a network.

It works seamlessly with PCL (opens in a new tab) and ROS (opens in a new tab), but the main library can be compiled and used independently, if needed.

What to expect

The compression ratio is hard to predict because it depends on the way the original data is encoded.

For example, ROS pointcloud messages are extremely inefficient, because they include some "padding" in the message that, in extreme cases, may reach up to 50%.

(Yes, you heard correctly, almost 50% of that 10 Gb rosbag is useless padding).

But, in general, you may expect considerably better compression, at a similar or higher speed, than ZSTD or LZ4 alone.

These are measurements on real-world clouds from 13 sensors (public datasets and the samples in this repository), with the 1.4.0 defaults: V6 at 1 mm resolution, refined to the data, followed by ZSTD. "ZSTD alone" is ZSTD level 1, the level Cloudini uses, on the same raw cloud.

Image: Compressed size per sensor (opens in a new tab)

Cloudini is faster than ZSTD alone, because ZSTD has much less data left to compress and decompress: encoding is 2.1–2.6× faster than ZSTD alone on the Ouster, Velodyne, PCD and stereo clouds, and 1.3× on Hesai; decoding is 1.3–2× faster on the same clouds, and as fast as ZSTD alone on Hesai.

Image: Encode and decode throughput per sensor (opens in a new tab)

Measured on one pinned core of an i7-13700H laptop, best of 5 runs.

You can measure the compression ratio and speed on your own data with mcap_codec_benchmark, built with cloudini_lib (no ROS needed), on any MCAP file containing sensor_msgs/msg/PointCloud2 topics:

./build/release/tools/mcap_codec_benchmark my_bag.mcap --mode V6 --zstd

How it works

The algorithm contains two steps:

  1. Encoding the pointcloud, channel by channel.
  2. Compression using either LZ4 (opens in a new tab) or ZSTD (opens in a new tab).

The encoding is lossy for floating point channels (typically the X, Y, Z channels) and lossless for RGBA and integer channels (packed colors stored in a FLOAT32 field named rgb/rgba are detected by name and never quantized).

Now, I know that when you read the word "lossy" you may think about grainy JPEGS images. Don't.

The encoder applies a quantization using a resolution provided by the user.

Typical LiDARs have an accuracy/noise in the order of +/- 1 cm. Therefore, using a resolution of 1 mm (+/- 0.5 mm max quantization error) is usually a very conservative option.

Compile instructions

Some dependencies are downloaded automatically using CPM (opens in a new tab). To avoid downloading them again when you rebuild your project, I suggest setting CPM_SOURCE_CACHE as described here (opens in a new tab).

To build the main library (cloudini_lib)

cmake -B build/release -S cloudini_lib -DCMAKE_BUILD_TYPE=Release
cmake --build build/release --parallel
ROS compilation

To compile it with ROS, just pull this repo into your ws/src folder and execute colcon build as usual.

ROS specific utilities

For more information, see the cloudini_ros/README.md (opens in a new tab)

  • point_cloud_transport plugins: see point_cloud_transport plugins (opens in a new tab) for reference about how they are used.

  • cloudini_topic_converter: a node that converts a sensor_msgs/PointCloud2 topic into a compressed point_cloud_interfaces/CompressedPointCloud2 (compressing:=true), or vice-versa (compressing:=false).

  • cloudini_rosbag_converter: a command line tool that, given a rosbag (limited to MCAP format), converts all sensor_msgs/PointCloud2 topics into compressed point_cloud_interfaces/CompressedPointCloud2 or vice-versa. It does not need a ROS installation: a pre-compiled Linux AppImage (opens in a new tab) can be downloaded from the release page (opens in a new tab).

Compiling the WASM module

The WebAssembly module is used by the Foxglove extension (opens in a new tab) and the Python decoder (opens in a new tab). The following instructions assume that you have Emscripten installed (opens in a new tab).

emcmake cmake -B build/wasm -S ./cloudini_lib -DCLOUDINI_BUILD_TOOLS=OFF
cd build/wasm
emmake make

Frequently Asked Questions

I want to record "raw data". Since Cloudini is "lossy", I think I should not use it...

I disagree: you are working with noisy data in the first place.

Furthermore, I am pretty sure that your pointcloud processing algorithm is applying some sort of Voxel-based downsampling larger than the quantization applied by this library.

If you keep the quantization error low enough, it will not affect your results in any meaningful way.

So, which resolution do you recommend?

Look at the specifications of your sensor and use that value as a reference.

Considering that LiDARs accuracy is usually in the order of +/- 1 cm and that the resolution used in Cloudini is in meters:

  • If the goal of the recorded pointcloud is to do visualization, use a resolution of 0.01 (1 cm).
  • If you want to record "raw data", a resolution of 0.001 (1 mm) is the perfect default value.
  • If you are stubborn and you don't believe a single word I said, you can go as low as 0.0001 (100 microns) and still see significant compression. But you are being paranoid...
How does it perform, compared to Draco?

Google Draco (opens in a new tab) has two main encoding methods: SEQUENTIAL and KD_TREE.

The latter could achieve excellent compression ratios, but it is very sloooow and it doesn't preserve the original order of the points in the point cloud.

Compared with the Draco sequential mode, Cloudini achieves approximately the same compression, but is considerably faster (about 3-4 times faster encoding).

Does the decoder need to know the parameters used while encoding?

No, that information is stored in the header of the compressed data, and the decoder will automatically select the right decompression algorithm.

Can older versions of Cloudini read the data I compress now?

Since 1.4.0, the encoders write the V6 format by default, and decoders from 1.3.1 and earlier cannot read it (they report an unsupported encoding version). If some of your readers are still on those versions, write V5 instead: --encoding-version 5 (rosbag converter), encoding_version:=5 (topic converter), cloudini_encoding_version: 5 (point_cloud_transport plugin), or EncodingInfo::version = 5 in C++. Newer decoders read every version.

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.