diff --git a/sciurus17_examples/src/point_cloud_detection.cpp b/sciurus17_examples/src/point_cloud_detection.cpp index 5217704..5a82277 100644 --- a/sciurus17_examples/src/point_cloud_detection.cpp +++ b/sciurus17_examples/src/point_cloud_detection.cpp @@ -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; }