From 4bea6654b760982b57a7320eb58d1e36def8494d Mon Sep 17 00:00:00 2001
From: Tommy Persson <tommmy.persson@liu.se>
Date: Tue, 25 May 2021 12:13:26 +0200
Subject: [PATCH] Remove error print.

---
 src/geoconvert.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/geoconvert.cc b/src/geoconvert.cc
index 4222c75..bc305d0 100644
--- a/src/geoconvert.cc
+++ b/src/geoconvert.cc
@@ -333,15 +333,15 @@ geometry_msgs::PointStamped GeoConvert::to_utm(geometry_msgs::PointStamped pin)
   string utm_frame_id = get_utm_frame_id();
   if (is_wgs84(pin.header.frame_id))
   {
-    double easting;
-    double northing;
+    double easting = 0.0;
+    double northing = 0.0;
     if (gps_convert_longlat_utm(pin.point.x, pin.point.y, 
               easting, northing)) {
       res.header.frame_id = utm_frame_id;
       res.point.x = easting;
       res.point.y = northing;
     } else {
-      cerr << "FAILED CONVERSION PointStamped to_utm";
+      // ROS_ERROR("FAILED CONVERSION PointStamped to_utm");
     }
   } else if (is_world(pin.header.frame_id))
   {
-- 
GitLab