Software
Patchwork++
By Urban Robotics Lab. @ KAIST, South Korea (checked on github.com/url-kaist (opens in a new tab)), from github.com/url-kaist/patchwork-plusplus (opens in a new tab)
- Navigation and mapping
- Library
- BSD-2-Clause
Patchwork++ is a fast, robust, self-adaptive algorithm that segments the ground from 3D point clouds, available as C++, Python, and ROS2 packages.
Facts
- GitHub stars
- 1,149read on 28 Nov 2026
- Last update
- 23 May 2026Newest commit on master
- Maintenance
- Maintaineda commit in the last 12 months
- Difficulty
- Intermediate
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- BSD-2-Clause (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (BSD-2-Clause) at commit 3e6903a (opens in a new tab), on 16 Oct 2026.
- Commercial use
- Yes
At a glance
- What it is
- Separates ground points from 3D point cloud data using adaptive elevation and flatness thresholds.
- Extends the earlier Patchwork method with reflected noise removal, vertical structure suppression, and probability-based ground revert.
- Ships a C++ library, a Python binding installable from PyPI as pypatchworkpp, and a ROS2 node.
- Also includes the classic Patchwork algorithm, selectable in the Python API and the ROS2 launch file.
- Provides a SemanticKITTI evaluation script for reproducible comparison of Patchwork and Patchwork++.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- BSD-2-Clause. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Maintained, last commit on 23 May 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
- Repository on GitHubgithub.com/url-kaist/patchwork-plusplus (opens in a new tab)
- The version Robotheca read3e6903a (opens in a new tab)
- Latest releasev1.4.1 — Kill per-patch heap traffic in Patchwork++ (+14.8% Hz) (23 May 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 Urban Robotics Lab. @ KAIST, at commit 3e6903a, under BSD-2-Clause (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
Patchwork++
(opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab)
(opens in a new tab) (opens in a new tab)
<a href=https://www.youtube.com/watch?v=fogCM159GRk>Video</a>
<span> • </span>
Install (opens in a new tab) • ROS2 (opens in a new tab) • <a href=https://www.youtube.com/watch?v=fogCM159GRk%3EPaper (opens in a new tab) • <a href=https://github.com/url-kaist/patchwork-plusplus/issues%3EContact (opens in a new tab) Us
<strong>(May 19, 2026)</strong> pip installation is now live:
Image: pip install pypatchworkpp (opens in a new tab) (opens in a new tab)
Patchwork++ (opens in a new tab), an extension of Patchwork (opens in a new tab), is a fast, robust, and self-adaptive ground segmentation algorithm on 3D point cloud.
:open_file_folder: What's in this repo
- C++ source code of Patchwork++ (patchworkpp (opens in a new tab))
- Python binding of Patchwork++ using pybind11 (python_wrapper (opens in a new tab))
- Examples codes of C++ (opens in a new tab), Python (opens in a new tab), and ROS2 (opens in a new tab) :thumbsup:
- Full suppor of a reproducible SemanticKITTI evaluation harness for both Patchwork and Patchwork++ (
python/examples/evaluate_semantickitti.py(opens in a new tab)). In the papers of Patchwork and Patchwork++, we use different evaluation protocols — seeUSAGE.md(opens in a new tab) §1 for why and §4 for per-sequence numbers.
If you are familiar with ROS1, you can also visit here (opens in a new tab) and try executing ROS1-based Patchwork++!
:package: Prerequisite packages
What we need are just minimal dependencies.
Ubuntu / Debian:
sudo apt-get install g++ build-essential libeigen3-dev python3-pip python3-dev cmake -y
macOS (Apple Silicon or Intel):
brew install cmake
Eigen is fetched automatically by CMake, so no extra system package is required on macOS. The build works with the bundled AppleClang toolchain.
:gear: How to build & Run
Python
The released library is on PyPI:
pip install pypatchworkpp # core library
pip install 'pypatchworkpp[demo]' # + Open3D for the visual demos
Then import pypatchworkpp in your script — see the Python examples (opens in a new tab).
make pyinstall # equivalent to `pip install ./python/`
make pyinstall_with_demo # also installs Open3D >= 0.17.0
C++
Pure installation
make cppinstall
Installation with demo
Only Open3D (> 0.17.0) is additionally installed for visualization purposes.
make cppinstall_with_demo
How to run the C++ demos is explained here (opens in a new tab).
ROS2
You should not need any extra dependency, just clone and build:
mkdir -p ~/ros2_ws/src
cd ~/ros2_ws/src
git clone https://github.com/url-kaist/patchwork-plusplus.git
cd ~/ros2_ws
colcon build --packages-select patchworkpp
source ./install/setup.bash
How to launch ROS2 nodes is explained here (opens in a new tab).
:compass: Choosing an algorithm
This repository ships two ground segmentation algorithms with the same input/output API. Pick the one that fits your data:
- Patchwork++ (default): adaptive elevation/flatness thresholds, RNR (intensity-based reflected noise removal), RVPF (vertical structure suppression), and TGR (probability-based ground revert). Best when the LiDAR has reflection artefacts or you want self-tuning thresholds.
- Patchwork (classic, since 1.1.0): fixed elevation/flatness thresholds with explicit
z < -sensor_height - 2.0mcutoff and few-points reject, plus optional ATAT for unknown sensor heights. Often more aggressive on ground-plane noise in heavily cluttered scenes.
Python:
import pypatchworkpp as p
pp_default = p.patchworkpp(p.Parameters()) # Patchwork++
pp_classic = p.patchwork(p.PatchworkParams()) # Patchwork (classic)
ROS2: Patchwork++ is the default; pass algorithm:=patchwork to switch to the classic Patchwork.
# Default — runs Patchwork++
ros2 launch patchworkpp patchworkpp.launch.py
# Override to the classic Patchwork
ros2 launch patchworkpp patchworkpp.launch.py algorithm:=patchwork
:pencil: Citation
If you use our codes, please cite our paper (arXiv (opens in a new tab), IEEE Xplore (opens in a new tab))
@inproceedings{lee2022patchworkpp,
title={{Patchwork++: Fast and robust ground segmentation solving partial under-segmentation using 3D point cloud}},
author={Lee, Seungjae and Lim, Hyungtae and Myung, Hyun},
booktitle={Proc. IEEE/RSJ Int. Conf. Intell. Robots Syst.},
year={2022},
pages={13276-13283}
}
In addition, you can also check the paper of our baseline, Patchwork. (arXiv (opens in a new tab), IEEE Xplore (opens in a new tab))
@article{lim2021patchwork,
title={Patchwork: Concentric Zone-based Region-wise Ground Segmentation with Ground Likelihood Estimation Using a 3D LiDAR Sensor},
author={Lim, Hyungtae and Minho, Oh and Myung, Hyun},
journal={IEEE Robotics and Automation Letters},
year={2021}
}
:triangular_flag_on_post: Tested Environment
- Ubuntu
18.04 and20.04, 22.04, and 24.04 - macOS 14+ (Apple Silicon)
- CMake 3.25.1 (>=3.20, min. Required to install Open3D)
- In
scripts/install_open3d.bash, the installation of the higher version of CMake is already implemented.
- In
- Open3D
0.15.20.18.0 - pybind11 v2.2.3
- Eigen 3.3.7
:mailbox: Contact Information
If you have any questions, please do not hesitate to contact us
- Seungjae Lee (opens in a new tab) :envelope: sj98lee
atkaistackr - Hyungtae Lim (opens in a new tab) :envelope: shapelim
atkaistackr
Todo List
- [ ] Support intensity for RNR in
masterbranch - [ ] Support
Patchworkmode for users who use this repository for baseline comparison purposes - [ ] Integrate TBB and optimize the performance
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.