Skip to content

Commit 3291cc7

Browse files
committed
Merge pull request strawlab#55 from larsmans/fix-kdtree
Fix kdtree example
2 parents d3fb995 + cf94a8a commit 3291cc7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/kdtree.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
import numpy as np
44
import pcl
55

6-
pc_1 = pcl.PointCloud()
7-
pc_1.from_array(points_1)
8-
pc_2 = pcl.PointCloud()
9-
pc_2.from_array(points_2)
10-
kd = pcl.KdTreeFLANN(pc_1)
11-
126
points_1 = np.array([[0, 0, 0],
137
[1, 0, 0],
148
[0, 1, 0],
@@ -18,6 +12,12 @@
1812
[0, 1, 0],
1913
[1.1, 1, 0.5]], dtype=np.float32)
2014

15+
pc_1 = pcl.PointCloud()
16+
pc_1.from_array(points_1)
17+
pc_2 = pcl.PointCloud()
18+
pc_2.from_array(points_2)
19+
kd = pcl.KdTreeFLANN(pc_1)
20+
2121
print('pc_1:')
2222
print(points_1)
2323
print('\npc_2:')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy