-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from LimHyungTae/better_instructions
Better instructions
- Loading branch information
Showing
14 changed files
with
362 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
pyinstall: | ||
@python3 -m pip install --upgrade pip | ||
@pip install numpy | ||
@pip install --verbose ./python/ | ||
|
||
pyinstall_with_demo: pyinstall | ||
@pip install open3d==0.18.0 | ||
|
||
cppinstall: | ||
@cmake -Bcpp/build cpp/ | ||
@cmake --build cpp/build -j$(nproc --all) | ||
|
||
cppinstall_with_demo: | ||
@cmake -Bcpp/build cpp/ -DINCLUDE_CPP_EXAMPLES=ON | ||
@cmake --build cpp/build -j$(nproc --all) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<div align="center"> | ||
<h1>Patchwork++</h1> | ||
<a href="https://github.com/url-kaist/patchwork-plusplus/tree/master/patchworkpp"><img src="https://img.shields.io/badge/-C++-blue?logo=cplusplus" /></a> | ||
<a href="https://github.com/url-kaist/patchwork-plusplus/tree/master"><img src="https://img.shields.io/badge/Python-3670A0?logo=python&logoColor=ffdd54" /></a> | ||
<a href="https://github.com/url-kaist/patchwork-plusplus/tree/master/ros"><img src="https://img.shields.io/badge/ROS2-Humble-blue" /></a> | ||
<a href="https://github.com/url-kaist/patchwork-plusplus/tree/master"><img src="https://img.shields.io/badge/Linux-FCC624?logo=linux&logoColor=black" /></a> | ||
<a href="https://ieeexplore.ieee.org/document/9981561"><img src="https://img.shields.io/badge/DOI-10.1109/IROS47612.2022.9981561-004088.svg"/> | ||
<br /> | ||
<br /> | ||
<a href=https://www.youtube.com/watch?v=fogCM159GRk>Video</a> | ||
<span> • </span> | ||
<a href="https://github.com/url-kaist/patchwork-plusplus/tree/master/README.md###Python">Install</a> | ||
<span> • </span> | ||
<a href="https://github.com/url-kaist/patchwork-plusplus/tree/master/ros">ROS2</a> | ||
<span> • </span> | ||
<a href=https://www.youtube.com/watch?v=fogCM159GRk>Paper</a> | ||
<span> • </span> | ||
<a href=https://github.com/url-kaist/patchwork-plusplus/issues>Contact Us</a> | ||
<br /> | ||
<br /> | ||
<p align="center"><img src=../pictures/patchwork++.gif alt="animated" /></p> | ||
|
||
[Patchwork++][arXivlink], an extension of [Patchwork][patchworklink], is **a fast, robust, and self-adaptive ground segmentation algorithm** on 3D point cloud. | ||
</div> | ||
|
||
[arXivlink]: https://arxiv.org/abs/2207.11919 | ||
[patchworklink]: https://github.com/LimHyungTae/patchwork | ||
|
||
--- | ||
|
||
# Patchwork++ in C++ | ||
|
||
## Manual Installation Just in Case | ||
|
||
```commandline | ||
# in patchwork-plusplus directory | ||
$ cd cpp && mkdir build && cd build | ||
$ cmake -DCMAKE_BUILD_TYPE=Release .. | ||
$ make -j 16 | ||
``` | ||
|
||
If you want to run demo, just run | ||
|
||
```commandline | ||
make cppinstall_with_demo | ||
``` | ||
|
||
in the top-level directory, or | ||
|
||
```commandline | ||
# in patchwork-plusplus directory | ||
$ cd cpp && mkdir build && cd build | ||
$ cmake -DCMAKE_BUILD_TYPE=Release -DINCLUDE_CPP_EXAMPLES=ON .. | ||
$ make -j 16 | ||
``` | ||
|
||
> [!WARNING] | ||
> Please check your cmake version via `cmake --version`. | ||
> If it is lower than 3.20, it is automatically updated by `scripts/install_latest_cmake.bash` (see [here](https://github.com/url-kaist/patchwork-plusplus/blob/master/cpp/CMakeLists.txt#L31)). | ||
## :runner: To run the demo codes | ||
> There are some example codes for your convenience! | ||
> Please try using Patchwork++ to segment ground points in a 3D point cloud :smiley: | ||
|
||
* Example 1. Run patchwork++ and visualize ground points (green) and non-ground points (red) | ||
```commandline | ||
./cpp/build/examples/demo_visualize | ||
``` | ||
|
||
* Example 2. Run patchwork++ with sequential point cloud inputs | ||
```commandline | ||
./cpp/build/examples/demo_sequential | ||
``` | ||
|
||
* Example 3. Run patchwork++ with your point cloud file, example here | ||
```commandline | ||
./examples/demo_visualize ./data/000000.bin # specify file path | ||
``` | ||
|
||
### Demo Result | ||
If you execute Patchwork++ with given demo codes well, you can get the following result! | ||
|
||
It is a ground segmentation result of data/000000.bin file using Open3D visualization. (Ground : Green, Nonground : Red) | ||
|
||
 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.