Skip to content

Commit 488ddcd

Browse files
committed
misc update (not important)
1 parent b1bc7ed commit 488ddcd

File tree

5 files changed

+43
-15
lines changed

5 files changed

+43
-15
lines changed

cpp/examples/3rdparty/download_datasets.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set(ZIP_DIR "${CMAKE_BINARY_DIR}/zip_files")
55

66
set(DROPBOX_FILES
77
"https://www.dropbox.com/scl/fi/1lsz6bxwan0sytj87ea9h/Vel16.zip?rlkey=g4jpze2j6iu6hk9ahq0m6t7o3&st=vrfpk4nv&dl=1"
8+
"https://www.dropbox.com/scl/fi/weqfi572gbi5z654d56ai/Vel64.zip?rlkey=l9upmgfjx7nhkbgl9du7igrfu&st=4q9gyous&dl=1"
89
"https://www.dropbox.com/scl/fi/lnsbaqmbgz0qi1r8ocesd/HeLiPR-KAIST05.zip?rlkey=50jyhl180qpmf1j5jn9ru37ru&st=q0kay7o3&dl=1"
910
"https://www.dropbox.com/scl/fi/c6c1jxrld17ywj7x2ok1q/VBR-Collosseo.zip?rlkey=b1sk0xvnntqy8kyw1apob37ob&st=5imrvvwo&dl=1"
1011
"https://www.dropbox.com/scl/fi/73l59cj5ypfvjrkrc23qx/KITTI00-to-KITTI360.zip?rlkey=pqukxxgpxaq1pugo6dhzq8xa4&st=yns7uolj&dl=1"
@@ -14,6 +15,7 @@ set(DROPBOX_FILES
1415

1516
set(DOWNLOADED_FILES
1617
"${ZIP_DIR}/Vel16.zip"
18+
"${ZIP_DIR}/Vel64.zip"
1719
"${ZIP_DIR}/HeLiPR-KAIST05.zip"
1820
"${ZIP_DIR}/VBR-Collosseo.zip"
1921
"${ZIP_DIR}/KITTI00-to-KITTI360.zip"

cpp/examples/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,25 @@ cmake .. -DCMAKE_BUILD_TYPE=Release && make -j 48
6464
<details>
6565
<summary><strong>Click to see our detailed example codes</a></strong></summary>
6666

67-
### Example B-1. Perform registration two point clouds from different viewpoints of Velodyne 16 at MIT campus
67+
### Example B-0. Perform registration two point clouds from different viewpoints of Velodyne 16 at MIT campus
6868

6969
```
70-
./run_kiss_matcher data/Vel16/src.pcd data/Vel16/tgt.pcd 0.3
70+
./run_kiss_matcher data/Vel16/src.pcd data/Vel16/tgt.pcd 0.2
7171
```
7272

7373
**Result**
7474

7575
![Image](https://github.com/user-attachments/assets/c7d57fd1-24e7-458e-84a8-9b3578cc12dd)
7676

77+
### Example B-1. Perform registration two point clouds from different viewpoints of Velodyne 64 in KITTI dataset
78+
79+
```
80+
./run_kiss_matcher data/Vel64/kitti_000540.pcd data/Vel64/kitti_001319.pcd 0.3
81+
```
82+
83+
**Result**
84+
85+
![Image](https://github.com/user-attachments/assets/2adfa6d8-d3cb-4bd3-9283-26926f171806)
7786

7887

7988
### Example B-2. Perform registration KITTI07 (Orange) and KITTI00 (Cyan) map clouds

python/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,8 @@
1515

1616
---
1717

18-
1918
# Installation
2019

21-
TBU
22-
2320
```
24-
python3 -m pip install --upgrade scikit_build_core setuptools wheel
25-
2621
pip3 install --upgrade pip setuptools wheel scikit-build-core ninja cmake build
2722
```

python/misc/bin2pcd.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import numpy as np
2+
import struct
3+
import sys
4+
import open3d as o3d
5+
6+
7+
def bin_to_pcd(binFileName):
8+
size_float = 4
9+
list_pcd = []
10+
with open(binFileName, "rb") as f:
11+
byte = f.read(size_float * 4)
12+
while byte:
13+
x, y, z, intensity = struct.unpack("ffff", byte)
14+
list_pcd.append([x, y, z])
15+
byte = f.read(size_float * 4)
16+
np_pcd = np.asarray(list_pcd)
17+
pcd = o3d.geometry.PointCloud()
18+
pcd.points = o3d.utility.Vector3dVector(np_pcd)
19+
return pcd
20+
21+
22+
def main(binFileName, pcdFileName):
23+
pcd = bin_to_pcd(binFileName)
24+
o3d.io.write_point_cloud(pcdFileName, pcd)
25+
26+
27+
if __name__ == "__main__":
28+
a = sys.argv[1]
29+
b = sys.argv[2]
30+
main(a, b)

python/pyproject.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,14 @@ classifiers = [
3636
dependencies = [
3737
"numpy",
3838
"plyfile",
39-
"pydantic>=2",
40-
"pydantic-settings",
41-
"pyquaternion",
42-
"rich",
4339
"tqdm",
4440
"typer[all]>=0.6.0",
4541
]
4642

4743
[project.optional-dependencies]
4844
all = [
4945
"open3d>=0.13",
50-
"polyscope>=2.2.1",
51-
"ouster-sdk>=0.11",
5246
"pyntcloud",
53-
"PyYAML",
54-
"trimesh",
5547
]
5648
test = [
5749
"pytest",

0 commit comments

Comments
 (0)