Skip to content

Commit d498133

Browse files
authored
fix: Add required empty keypoint check to matcher (#3)
1 parent 658b26d commit d498133

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

form/optimization/matcher.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ template <typename Point> class Matcher {
6969
const std::function<gtsam::Pose3(size_t)> &estimates,
7070
tsl::robin_map<size_t, std::tuple<PlanePoint::Ptr, PointPoint::Ptr>>
7171
&scan_constraints) {
72+
if (keypoints.empty()) {
73+
return;
74+
}
75+
7276
// Set everything up
7377
matches.clear();
7478
for (auto it = scan_constraints.begin(); it != scan_constraints.end(); ++it) {

0 commit comments

Comments
 (0)