Skip to content

Commit

Permalink
add warning if checkerboard is symmetric (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeferguson authored Feb 26, 2023
1 parent d39fd12 commit 12608c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion robot_calibration/src/finders/checkerboard_finder.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 Michael Ferguson
* Copyright (C) 2022-2023 Michael Ferguson
* Copyright (C) 2015 Fetch Robotics Inc.
* Copyright (C) 2013-2014 Unbounded Robotics Inc.
*
Expand Down Expand Up @@ -59,6 +59,10 @@ bool CheckerboardFinder::init(const std::string& name,
points_x_ = node->declare_parameter<int>("points_x", 5);
points_y_ = node->declare_parameter<int>("points_y", 4);
square_size_ = node->declare_parameter<double>("size", 0.0245);
if (points_x_ % 2 == 1 && points_y_ % 2 == 1)
{
RCLCPP_WARN(LOGGER, "Checkerboard is symmetric - orientation estimate can be wrong");
}

// Should we include debug image/cloud in observations
output_debug_ = node->declare_parameter<bool>("debug", false);
Expand Down

0 comments on commit 12608c6

Please sign in to comment.