Skip to content

Commit ada0adc

Browse files
authored
Updated the open3D dependency. (#219)
1 parent 288bcf9 commit ada0adc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pylot/perception/point_cloud.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ def save(self, timestamp: int, data_path: str, file_base: str):
180180
import open3d as o3d
181181
file_name = os.path.join(data_path,
182182
'{}-{}.ply'.format(file_base, timestamp))
183-
pcd = o3d.PointCloud()
184-
pcd.points = o3d.Vector3dVector(self.points)
185-
o3d.write_point_cloud(file_name, pcd)
183+
pcd = o3d.geometry.PointCloud()
184+
pcd.points = o3d.utility.Vector3dVector(self.points)
185+
o3d.io.write_point_cloud(file_name, pcd)
186186

187187
def visualize(self, pygame_display, timestamp=None):
188188
"""Visualizes the point cloud on a pygame display."""

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ erdos>=0.3.1
44
lapsolver
55
motmetrics
66
numpy<1.20
7-
open3d-python==0.7.0.0
7+
open3d==0.13.0
88
opencv-python>=4.1.0.25
99
opencv-contrib-python>=4.1.0.25
1010
pillow>=6.2.2

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"lapsolver",
1818
"motmetrics",
1919
"numpy<1.20", # Update to newer numpy version once we switch to tf2
20-
"open3d-python==0.7.0.0",
20+
"open3d==0.13.0",
2121
"opencv-python>=4.1.0.25",
2222
"opencv-contrib-python>=4.1.0.25",
2323
"pillow>=6.2.2",

0 commit comments

Comments
 (0)