ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Native spherical (WGS84) coordinates?

asked 2016-06-07 10:03:03 -0500

Laughlin gravatar image

(this is a cross post from )

I'm looking to build a simulation where I can accurately bookkeep my robots position in geodetic coordinates (WGS84 datum).

Unfortunately the ROS+Gazebo+Hector GPS plugin route isn't likely to work, exactly because I'm trying to simulate vehicles at high latitude (near the poles), and traveling large distances O(10 km), so the equirectangular projection used by the Hector GPS plugin can't be expected to yield accurate results.

Is it possible to run ROS+Gazebo to run a simulation natively in spherical coordinates? I haven't been able to find any resources to date on this.

If not, have any others found themselves in a similar situation? Outside of writing a dynamical model in MATLAB or similar, have others found an acceptable solution?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-06-07 15:05:12 -0500

Laughlin gravatar image

The Spherical Coordinate and GPS plugin classes in Gazebo implement WGS84<-->local XYZ coordinates via the intermediate Earth Centered Earth Fixed frame (here's one of many refs on this conversion). This is compared to the equirectangular projection implemented by the Hector GPS plugin.

The local XYZ origin is located at the lat/long specified in the Gazebo world file and has an ENU (East-North-Up) orientation.

edit flag offensive delete link more

Question Tools



Asked: 2016-06-07 10:03:03 -0500

Seen: 1,432 times

Last updated: Jun 07 '16