Airsim GPS projection #3728
Unanswered
icisneros
asked this question in
Support Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What projection (i.e. EPSG XXXX) does Airsim use to convert from Unreal Engine coordinates (or NED) to GPS?
For example I can use
drone_state = client.getMultirotorState()gps = drone_state.gps_locationprint(gps)to print out a {alt, lat, lon} triplet of the drone's GPS position in the Airsim environment (assuming also that I have edited the "OriginGeopoint" in the settings.json). But how does the plugin go from NED -> GPS ? And does the projection method change based on the "OriginGeopoint" that we set? Knowledge of this projection would help me write a function similar to
moveToPositionAsync()such that I can give it GPS coordinates from a real-world trajectory and the simulated drone would fly to those converted coordinates in the Airsim environment that I have constructed (assume here that I have constructed a scale replica of some real-world place such that when I print the GPS coordinates as detailed above they do correspond to the correct google maps position). Easiest way would be essentially a wrapper function that takes in a GPS coordinate, projects it into NED that Airsim uses, and then just callmoveToPositionAsync()ormoveOnPathAsync()with these projected NED coordinates.Beta Was this translation helpful? Give feedback.
All reactions