PointCloudLibrary/pcl

Inconsistent handling of default seed in NormalGenerator & UniformGenerator

开放

#2,985 创建于 2019年4月9日

 (3 条评论) (1 个反应) (0 位负责人)C++ (4,506 个派生)batch import
effort: lowgood first issuekind: todoneeds: feedback

仓库指标

星标
 (9,023 个星标)
PR 合并指标
 (平均合并 8天 7小时) (30 天内合并 3 个 PR)

描述

As already discussed here default seed in random.h is not handled consistently.

https://github.com/PointCloudLibrary/pcl/blob/b4c785bf32b392b4570201e8fe9f97395bd98ba1/common/include/pcl/common/random.h#L163-L186

One constructor of NormalGenerator has as default seed -1 during the other one (via Parameters) has 1 as default seed.

Furthermore you get currently following warning:

common/include/pcl/common/impl/random.hpp:49:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(parameters_.seed != -1)

So we should discuss how to adjust code there.

贡献者指南