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

[registration] Don't move, or copy ICP #4167

Merged
merged 3 commits into from
Aug 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions registration/include/pcl/registration/icp.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,19 @@ namespace pcl
convergence_criteria_.reset(new pcl::registration::DefaultConvergenceCriteria<Scalar> (nr_iterations_, transformation_, *correspondences_));
};

/**
* \brief Due to `convergence_criteria_` holding references to the class members,
* it is tricky to correctly implement its copy and move operations correctly. This
* can result in subtle bugs and to prevent them, these operations for ICP have
* been disabled.
*
* \todo: remove deleted ctors and assignments operations after resolving the issue
*/
IterativeClosestPoint(const IterativeClosestPoint&) = delete;
kunaltyagi marked this conversation as resolved.
Show resolved Hide resolved
IterativeClosestPoint(IterativeClosestPoint&&) = delete;
IterativeClosestPoint& operator=(const IterativeClosestPoint&) = delete;
IterativeClosestPoint& operator=(IterativeClosestPoint&&) = delete;

/** \brief Empty destructor */
~IterativeClosestPoint () {}

Expand Down