Gazebo | Ignition | Community
Ask Your Question

Native spherical (WGS84) coordinates?

asked 2016-06-07 09:45:56 -0500

laughlin gravatar image

Hello all,

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).

Is it possible for 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 09:58:03 -0500

nkoenig gravatar image
edit flag offensive delete link more


Thanks @nkoenig. So if I understand correctly, underlying cord sys is still XYZ, but Spherical Coord. class implements proper WGS84<-->local XYZ (via intermediate ECEF frame), with local XYZ origin at the lat/long specified in world file (as defined here: Local XYZ is in an ENU orientation. Does this sound correct?

laughlin gravatar imagelaughlin ( 2016-06-07 13:52:34 -0500 )edit

That is correct.

nkoenig gravatar imagenkoenig ( 2016-06-07 17:05:59 -0500 )edit

Thank you.

laughlin gravatar imagelaughlin ( 2016-06-08 09:03:41 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-06-07 09:40:37 -0500

Seen: 1,829 times

Last updated: Jun 07 '16