[pcl_visualizer] "Allow custom definition of non-dense point cloud"

未关闭
#5,748 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
cpp

调研方向

首先跟踪 updatePointCloud() 和 addPointCloud() 到 convertPointCloudToVTKPolyData() 的调用路径,其中当前通过三次 std::isfinite 调用检查点的有效性。确定如何公开自定义的无效点定义,同时默认保留现有行为;完成标准是两条转换路径都支持所请求的自定义,并且不会破坏非密集点云的处理。

由索引模型根据 Issue 内容生成。

描述

kind: request status: triage

When profiling, it seems that quite some time is being used to test if each point in a point cloud is valid. Of course, this is necessary for non-dense point clouds. However, it could be done faster.

This happens when calling updatePointCloud() and addPointCloud() which both calls convertPointCloudToVTKPolyData().

Then function tests non-density with

     // Check if the point is invalid
      if (!std::isfinite ((*cloud)[i].x) ||
          !std::isfinite ((*cloud)[i].y) ||
          !std::isfinite ((*cloud)[i].z))
        continue;

Here it would be useful to be able to inject a custom definition:

    // Check if the point is invalid
      if ( isInvalidPoint((*cloud)[i]) )
        continue;

For example, it may be enough for certain applications to test if the x-component is NaN to determine this. Today we get 3 tests per point and each may results in a non-inlined function call.

The downside is that each of the above three functions needs an additional template parameter.

I hope it is something that you will consider in the future.

kind regards

Thorsten

主要语言
C++
星标
11.2k
派生
4.7k
平均合并
6 天 13 小时
30 天内合并 PR
10

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

PointCloudLibrary/pcl 的其他 Issue

查看 PointCloudLibrary/pcl 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。