dimatura / pypcd

PCL pcd fileformat i/o in Python
Other
274 stars 197 forks source link

Error happens when reading pcd file #15

Open CassieMai opened 5 years ago

CassieMai commented 5 years ago
pcd = pypcd.PointCloud.from_path(pcd_path)

  File "/exercises/py35_env/lib/python3.5/site-packages/pypcd/pypcd.py", line 743, in from_path
    return point_cloud_from_path(fname)
  File "/exercises/py35_env/lib/python3.5/site-packages/pypcd/pypcd.py", line 309, in point_cloud_from_path
    pc = point_cloud_from_fileobj(f)
  File "/exercises/py35_env/lib/python3.5/site-packages/pypcd/pypcd.py", line 290, in point_cloud_from_fileobj
    dtype = _build_dtype(metadata)
  File "/exercises/py35_env/lib/python3.5/site-packages/pypcd/pypcd.py", line 215, in _build_dtype
    dtype = np.dtype(zip(fieldnames, typenames))
TypeError: data type not understood