Skip to content

Commit e3d72ff

Browse files
committed
relaxing open3d version requirement
1 parent 1636b72 commit e3d72ff

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

client/python/projectairsim/src/projectairsim/lidar_utils.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from argparse import ArgumentError
22
import multiprocessing as mp
3+
import time
34

45
import numpy as np
56
import open3d as o3d
@@ -367,9 +368,15 @@ def display_loop(self):
367368

368369
# Do Open3D processing
369370
if self.window_created:
370-
self.o3d_vis.poll_events()
371+
# check if window is still open
372+
if not self.o3d_vis.poll_events():
373+
self.running = False
374+
break
371375
self.o3d_vis.update_renderer()
372376

377+
# Cap frame rate to reduce CPU usage and avoid issues with DWM/WGL on Windows
378+
time.sleep(0.01)
379+
373380
except KeyboardInterrupt:
374381
pass # Just exit normally
375382

0 commit comments

Comments
 (0)