Skip to content

Commit 9ffa011

Browse files
committed
Fix: add in-class default for robust_function_ after removing from init-list
Previously removed robust_function_ from constructor init-list along with nu_end_ratio_, but robust_function_ had no in-class initializer, leading to default-initialization of an enum class (indeterminate value). Add explicit in-class default to WELSCH to preserve correct behavior.
1 parent 2b6369d commit 9ffa011

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • registration/include/pcl/registration

registration/include/pcl/registration/fricp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class FastRobustIterativeClosestPoint
177177
Matrix4d
178178
matrixLog(const Matrix4d& transform) const;
179179

180-
RobustFunction robust_function_;
180+
RobustFunction robust_function_ = RobustFunction::WELSCH;
181181
bool use_anderson_ = false;
182182
std::size_t anderson_history_ = 5;
183183
double nu_begin_ratio_ = 3.0;

0 commit comments

Comments
 (0)