Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1.  
  2. import copy
  3. import numpy as np
  4. import open3d as o3d
  5. from plyfile import PlyData, PlyElement
  6. import time
  7. import openpylivox as opl
  8.  
  9. sensor = opl.openpylivox(True)
  10. sensor.auto_connect()
  11.  
  12. for i in range(0,4):
  13.  
  14. sensor.dataStart()
  15. sensor.saveDataToCSV('/home/user/FFF/points'+str(i).zfill(2) ,0,4.0) #collect exactly 4.0 seconds of data
  16.  
  17.  
  18.  
  19.  
  20. while True:
  21. if sensor.doneCapturing():
  22. print("File capture complete move sensor #########")
  23. #time.sleep(4)
  24. sensor.closeCSV()
  25. sensor.dataStop()
  26. break
  27.  
  28.  
  29. sensor.disconnect()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement