Skip to content

Commit

Permalink
add warning if checkerboard is symmetric (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeferguson authored Feb 26, 2023
1 parent 3238b60 commit cdbb44b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions robot_calibration/src/finders/checkerboard_finder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ bool CheckerboardFinder::init(const std::string& name,
nh.param<int>("points_x", points_x_, 5);
nh.param<int>("points_y", points_y_, 4);
nh.param<double>("size", square_size_, 0.0245);
if (points_x_ % 2 == 1 && points_y_ % 2 == 1)
{
ROS_ERROR("Checkerboard is symmetric - orientation estimate can be wrong");
}

// Should we include debug image/cloud in observations
nh.param<bool>("debug", output_debug_, false);
Expand Down

0 comments on commit cdbb44b

Please sign in to comment.