We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e1cad2c + eae292d commit d003f01Copy full SHA for d003f01
polygon_coverage_ros/include/polygon_coverage_ros/coverage_planner.h
@@ -215,7 +215,13 @@ class CoveragePlanner : public PolygonPlannerBase {
215
break;
216
}
217
if (!altitude_.has_value()) {
218
- ROS_WARN("No altitude specified. Creating default altitude 1m.");
+ ROS_WARN("No altitude specified. Creating default altitude of 1m.");
219
+ altitude_ = std::make_optional(1.0);
220
+ } else if (altitude_.value() < std::numeric_limits<double>::epsilon()) {
221
+ ROS_WARN(
222
+ "Altitude to small %.3fm. Please set altitude through first "
223
+ "z-value of polygon. Setting default altitude of 1m.",
224
+ altitude_.value());
225
altitude_ = std::make_optional(1.0);
226
227
sensor_model_ = std::make_shared<Frustum>(
0 commit comments