heremaps / pptk

The Point Processing Toolkit (pptk) is a Python package for visualizing and processing 2-d/3-d point clouds.
https://heremaps.github.io/pptk
MIT License
614 stars 113 forks source link

when loading custom ply using the steps from tanks it doesn't get color #48

Open AndreV84 opened 3 years ago

AndreV84 commented 3 years ago

`python3 Python 3.6.9 (default, Oct 8 2020, 12:12:24) [GCC 8.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import numpy as np import pptk import plyfile data = plyfile.PlyData.read('cloud.ply')['vertex'] xyz = np.c[data['x'], data['y'], data['z']] rgb = np.c[data['red'], data['green'], data['blue']] n = np.c_[data['nx'], data['ny'], data['nz']] Traceback (most recent call last): File "", line 1, in File "/home/nvidia/.local/lib/python3.6/site-packages/plyfile.py", line 770, in getitem return self.data[key] File "/home/nvidia/.local/lib/python3.6/site-packages/numpy/core/memmap.py", line 331, in getitem res = super(memmap, self).getitem(index) ValueError: no field of name nx`

AndreV84 commented 3 years ago

could you also extend on the installation issuees, please? https://forums.developer.nvidia.com/t/building-pptk-on-xavier-how-to-get-through/160079