Commit 4dd5652
Add a part of the new rigid registration method [FRICP] (#6199)
* add a part of the FRICP (robust transformation estimation)
* update
* Correct format
* add Anderson acceleration fricp.hpp etc.UPdate cmakelist
* fix bug
* fix bug
* fix bug in test
* fix the bug of parameter
* Update test
* repush
* fix bug in clang-tidy,merge the new update in pcl
* fix bug in clang-tidy,merge the new update in pcl
* fix bug in clang-tidy again
* fix bug in clang-tidy again
* fix bug in clang-tidy again
* fix bug in clang-tidy again
* Address all review comments in PR 6199
* Fix FRICP KdTree/Search mismatch in test_registration_api
* Update registration/include/pcl/registration/fricp.h
Co-authored-by: Markus Vieth <39675748+mvieth@users.noreply.github.com>
* Apply PR6199 review fixes without build artifacts
* Update registration/include/pcl/registration/fricp.h
Co-authored-by: Markus Vieth <39675748+mvieth@users.noreply.github.com>
* Address review comments: use #pragma once, pcl::index_t, squared residuals, Eigen::Index
* Fix clang-tidy: use range-based for loop in findKNearestMedian
* Use pcl::uindex_t for source indices per review feedback
* Address reviewer feedback: add Ptr/ConstPtr, NaN asserts, and class documentation
- Add Ptr/ConstPtr type aliases to FRICP class header
- Add assert for finite source/target points (no NaN/Inf)
- Document that FRICP ignores maxCorrespondenceDistance,
correspondence estimators/rejectors, and that
maxIterations controls inner-loop iterations only
- Fix setDynamicWelschDecay() doc to note 0 maps to 0.5
- Remove redundant ctor init-list values (robust_function_,
nu_end_ratio_ already have in-class defaults)
* Apply clang-format to fricp.h
* Fix file encoding: convert fricp.h from UTF-16 LE to UTF-8
* 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.
* Integrate DefaultConvergenceCriteria into FRICP
- Add ConvergenceTrigger enum to track why FRICP stopped
- Add getLastConvergenceTrigger() for diagnostic queries
- Integrate DefaultConvergenceCriteria as an additional
convergence check alongside the existing transform delta
- Populate pcl::Correspondences in updateCorrespondences
so getFitnessScore() works correctly
- Set transformation_ delta each iteration for criteria checks
- Track convergence state on all error/early-return paths
Based on larshg's proposal in PR discussion.
* Use DefaultConvergenceCriteria per larshg review
- Remove ConvergenceTrigger enum and getLastConvergenceTrigger()
(larshg's test code, not needed for production)
- Replace FRICP's own matrix delta check with DefaultConvergenceCriteria
- Move delta_transform calculation after Anderson acceleration step
- Use CONVERGENCE_CRITERIA_NO_CORRESPONDENCES on error paths
- Populate correspondences_ so getFitnessScore() works
---------
Co-authored-by: Guanghao Li <1909631936@qq.com>
Co-authored-by: Markus Vieth <39675748+mvieth@users.noreply.github.com>
Co-authored-by: yaoyx689 <yaoyx689@users.noreply.github.com>1 parent 7972cba commit 4dd5652
7 files changed
Lines changed: 1492 additions & 0 deletions
File tree
- registration
- include/pcl/registration
- impl
- test/registration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
| 119 | + | |
115 | 120 | | |
116 | 121 | | |
117 | 122 | | |
| |||
Lines changed: 186 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
0 commit comments