Skip to content

Commit

Permalink
平面検出時の判定条件を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuwamai committed Oct 16, 2024
1 parent 3ea7866 commit 95bd86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sciurus17_examples/src/point_cloud_detection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class PointCloudSubscriber : public rclcpp::Node
seg.segment(*inliers, *coefficients);

// 平面が検出できなかった場合
if (inliers->indices.size() <= 0) {
if (inliers->indices.empty()) {
RCLCPP_INFO(this->get_logger(), "Could not estimate a planar model for the given dataset.");
return false;
}
Expand Down

0 comments on commit 95bd86e

Please sign in to comment.