Hi @saeedghsh
Thanks for sharing this package! Trying to give it a run.
I have both packages sitting under common directory:
ben@ben-Aspire:~/mesh-to-map$ ls
Mesh-To-Occupancy-Map Place-Categorization-2D
When running:
python mesh_to_ogm_v2.py -s -v --filename /home/ben/Documents/Wildcat/2022_08_31_00_07_24Z/output/global_wildcat_velodyne.ply
Result is:
Traceback (most recent call last):
File "mesh_to_ogm_v2.py", line 123, in
main (filename, slice_config, ogm_config, raycast_config)
File "mesh_to_ogm_v2.py", line 54, in main
ply_data, faces, [Vx, Vy, Vz, Vr, Vg, Vb, Va] = convert_mesh.load_ply_file ( file_name )
File "../lib/convert_mesh.py", line 78, in load_ply_file
Vr = ply_data['vertex'].data['red'] # u1 -> usigned int 8
File "/home/ben/.local/lib/python2.7/site-packages/numpy/core/memmap.py", line 331, in getitem
res = super(memmap, self).getitem(index)
ValueError: no field of name red
Is this because i have no data in the RGB fields in my ply? would you mind posting a demo .ply that i can test with?
Thanks heaps,
Ben