Skip to content

Commit

Permalink
Updated the open3D dependency. (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
ICGog authored Sep 29, 2021
1 parent 288bcf9 commit ada0adc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pylot/perception/point_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ def save(self, timestamp: int, data_path: str, file_base: str):
import open3d as o3d
file_name = os.path.join(data_path,
'{}-{}.ply'.format(file_base, timestamp))
pcd = o3d.PointCloud()
pcd.points = o3d.Vector3dVector(self.points)
o3d.write_point_cloud(file_name, pcd)
pcd = o3d.geometry.PointCloud()
pcd.points = o3d.utility.Vector3dVector(self.points)
o3d.io.write_point_cloud(file_name, pcd)

def visualize(self, pygame_display, timestamp=None):
"""Visualizes the point cloud on a pygame display."""
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ erdos>=0.3.1
lapsolver
motmetrics
numpy<1.20
open3d-python==0.7.0.0
open3d==0.13.0
opencv-python>=4.1.0.25
opencv-contrib-python>=4.1.0.25
pillow>=6.2.2
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"lapsolver",
"motmetrics",
"numpy<1.20", # Update to newer numpy version once we switch to tf2
"open3d-python==0.7.0.0",
"open3d==0.13.0",
"opencv-python>=4.1.0.25",
"opencv-contrib-python>=4.1.0.25",
"pillow>=6.2.2",
Expand Down

0 comments on commit ada0adc

Please sign in to comment.