Skip to content
Merged
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion cpp/map_closures/AlignRansac2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Eigen::Isometry2d KabschUmeyamaAlignment2D(
static constexpr double inliers_distance_threshold = 3.0;

// RANSAC Parameters
static constexpr double inliers_ratio = 0.3;
static constexpr double inliers_ratio = 0.1;
static constexpr double probability_success = 0.999;
static constexpr int min_points = 2;
static int __RANSAC_TRIALS__ = std::ceil(std::log(1.0 - probability_success) /

Copilot AI Apr 10, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

__RANSAC_TRIALS__ uses a double-underscore identifier, which is reserved for the implementation in C++ and can lead to undefined behavior or toolchain-specific issues. Please rename this variable to a non-reserved identifier (e.g., ransac_trials / kRansacTrials) while touching these parameters.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed __RANSAC_TRIALS__ to kRansacTrials in commit 11d8c5f.

Expand Down
Loading