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

オープン
#5,748 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp

調査の方向性

まず updatePointCloud() と addPointCloud() を convertPointCloudToVTKPolyData() まで追跡してください。ここでは現在、3つの 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時間
マージ済み PR(30日)
10

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PointCloudLibrary/pcl のほかの issue

PointCloudLibrary/pcl の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。