diff --git a/src/filtre.cpp b/src/filtre.cpp index 541ae03..ec01c19 100644 --- a/src/filtre.cpp +++ b/src/filtre.cpp @@ -61,7 +61,7 @@ class Callback { diff2 = std::fabs(360.0f + h - hue); else diff2 = std::fabs(360.0f + hue - h); - return std::max(diff1, diff2); + return std::min(diff1, diff2); } }; diff --git a/src/random_pcl_publisher.cpp b/src/random_pcl_publisher.cpp index 394f0d9..874a408 100644 --- a/src/random_pcl_publisher.cpp +++ b/src/random_pcl_publisher.cpp @@ -27,9 +27,9 @@ class Generator cgen.fill(length, length, *pcl); for (int i = 0; i < pcl->points.size(); ++i) { - pcl->points[i].r = (uint8_t) 255; - pcl->points[i].g = (uint8_t) 255; - pcl->points[i].b = (uint8_t) 0; + pcl->points[i].r = (uint8_t) 175; + pcl->points[i].g = (uint8_t) 120; + pcl->points[i].b = (uint8_t) 118; } ros::Time now = ros::Time::now(); pcl->header.stamp = now.toNSec() / 1000;