ros-geographic-info / geographic_info

ROS packages for geographic information
http://ros.org/wiki/geographic_info
60 stars 61 forks source link

Force a GeoPoint and GeoPose coordinate to be converted in a specific zonal frame c++ #42

Closed PeterQFR closed 4 years ago

PeterQFR commented 4 years ago

Theres been a similar request #20 to do this in the python code. This pr does it for cpp. Basically it addresses the issue of smoothness when a vehicle transitions space that straddles two utm zones. Without this change, a jump across zones can cause a euclidean distance to be several hunreds of thousands of meters apart. This change ensures that the transition is as smooth as possible.

It gives the user the ability to force the conversion to use a specific zone and band. Test case is provided, but it is noted that forcing a specific band actually doesn't do anything or change the calculation done.

SteveMacenski commented 4 years ago

Given the default behavior stays the same, I'm inclined to merge this. However I also need you to cherry pick these updates to ROS2 branch as well to keep them synced.