Skip to content
Snippets Groups Projects
Commit 0286b321 authored by Tommy Persson's avatar Tommy Persson
Browse files

Remove error print.

parent 71add4f6
Branches
No related tags found
No related merge requests found
Pipeline #46615 passed
...@@ -242,15 +242,15 @@ geometry_msgs::PoseStamped GeoConvert::to_utm(geometry_msgs::PoseStamped posein) ...@@ -242,15 +242,15 @@ geometry_msgs::PoseStamped GeoConvert::to_utm(geometry_msgs::PoseStamped posein)
string utm_frame_id = get_utm_frame_id(); string utm_frame_id = get_utm_frame_id();
// cerr << "to_utm entered"; // cerr << "to_utm entered";
if (is_wgs84(posein.header.frame_id)) { if (is_wgs84(posein.header.frame_id)) {
double easting; double easting = 0.0;
double northing; double northing = 0.0;
//cerr << "to_utm is wgs84"; //cerr << "to_utm is wgs84";
if (gps_convert_longlat_utm(posein.pose.position.x, posein.pose.position.y, easting, northing)) { if (gps_convert_longlat_utm(posein.pose.position.x, posein.pose.position.y, easting, northing)) {
res.header.frame_id = utm_frame_id; res.header.frame_id = utm_frame_id;
res.pose.position.x = easting; res.pose.position.x = easting;
res.pose.position.y = northing; res.pose.position.y = northing;
} else { } else {
cerr << "FAILED CONVERSION PoseStamped to_utm"; // ROS_INFO("FAILED CONVERSION PoseStamped to_utm");
} }
} else if (posein.header.frame_id == "/world") { } else if (posein.header.frame_id == "/world") {
double easting; double easting;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment