Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about import point Cloud file #987

Open
wisdom-bob opened this issue Sep 16, 2020 · 5 comments
Open

Question about import point Cloud file #987

wisdom-bob opened this issue Sep 16, 2020 · 5 comments
Labels
answered Waiting for response enhancement New feature or request

Comments

@wisdom-bob
Copy link

Recently, I'm trying to annotation map according to pointCloud. Now, I only realise to import pointcloud with intensity feature. I hope you can give a .pcd file that can be successufully imported with color feature!

@EricBoiseLGSVL
Copy link
Contributor

EricBoiseLGSVL commented Sep 16, 2020

@kamkolak Did the RGB field in PCD file fix get released in 06? I think this is referencing #921

@wisdom-bob
Copy link
Author

wisdom-bob commented Sep 17, 2020

The problem is that most .pcd file support PCL function library. However, this tool(lgsvl-simulator) does not support .pcd / .ply files that meet PCL function library requirements, whether there is color filed or not. This is the reason why I hope you can provide me with a point cloud file with color fileds, and I can parse it by myself.

or if you can give me some support how to create point cloud file the meets requirements of the lgsvl-simulator, I will be very very thanksful.

@EricBoiseLGSVL EricBoiseLGSVL assigned daviduhm and unassigned daviduhm Sep 18, 2020
@EricBoiseLGSVL EricBoiseLGSVL added the enhancement New feature or request label Sep 18, 2020
@EricBoiseLGSVL
Copy link
Contributor

@wisdom-bob We will need to discuss internally when we can add full PCL support to our roadmap.

@EricBoiseLGSVL EricBoiseLGSVL added the answered Waiting for response label Sep 18, 2020
@martins-mozeiko
Copy link
Contributor

martins-mozeiko commented Sep 18, 2020

PCL is just a library that loads, processes and outputs point cloud files. The format of files it supports can be almost anything. It supports loading & writing any format.

But the simulator requires specific fields to be set in point cloud for it to make sense - like xyz for position, color/intensity for coloring. But it won't use other attributes - pcd file can have any amount of extra info associated to each point.

To use pcd file with simulator, you need to prepare it to have this necessary information in pcd file. If you have custom data in there, then either you convert it to whatever simulator supports (xyz/intensity), or modify C# import code to use your custom data. Simulator cannot automatically support anything that pcd contains - it's a custom logic that you need to implement somewhere.

Here's code code for pcd import: PcdPointProcessor.cs. There's also Ply, Las and Laz format importers in same folder.

For example, here's an unmerged pull request that implements RGB color import from pcd files: #770

@wisdom-bob
Copy link
Author

PCL只是一个加载,处理和输出点云文件的库。它支持的文件格式几乎可以是任何格式。它支持加载和写入任何格式。

但是模拟器需要在点云中设置特定的字段才能使其有意义-例如xyz表示位置,颜色/强度表示着色。但是它不会使用其他属性-pcd文件可以具有与每个点关联的任意数量的额外信息。

要将pcd文件与模拟器一起使用,您需要准备使其在pcd文件中具有此必要信息。如果您有自定义数据,则可以将其转换为模拟器支持的任何格式(xyz / intensity),或修改C#导入代码以使用您的自定义数据。Simulator无法自动支持pcd包含的任何内容-这是您需要在某个地方实现的自定义逻辑。

这是pcd导入的代码:PcdPointProcessor.cs。同一文件夹中还有Ply,Las和Laz格式的导入器。

例如,这是一个未合并的拉取请求,可实现从pcd文件导入RGB颜色:#770

just as you says, I know the simulator can not support all pcl format. I will try the #770. I hope this will help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered Waiting for response enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants