Get global coordinates of player start (sync arsim coordinates with unreal environment) #4757
Unanswered
TheNevim
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
-
Hi,
Im just wondering if there is a way to get UE4 global coordinates of player start through python airsim client. I was looking for a solution for a while but I couldn't find any and I refuse to believe that it is not possible.
I know that airsim has its "own" coordinate system that is different from UE environment. I also know that I can change geo origin and XYZ position in settings.json, but it is related to player start and to me it is impractical.
Imagine having UE environment 50x50(environment start at 0,0 and has max 50 in both x,y axis) and path planner that plan routes in that environment. Path planner is working with coordinates 0,0 to 50,50. When I want to align airsim and UE environment I would need to place player start to 0,0 and specify desired vehicle position via XYZ in setting.json. I need vehicle position to be changeable and its annoying to constantly measure coordinates in UE and then changing them in settings.json. I just want to place player start whenever I want and it shoud work. I could easily do it if I knew the player's/vehicles global starting position - calculate offset to 0,0 and then add/subtract it to planner points. So how can I get vehicle/player start global position ?
UE environment is rotated and placed correctly to match path planner model. Path planner is ROS node that has model of environment and is like ok this is environment Im working with, want path there it is. Then there is second node that tell first one - give me path, ok now I have got path(still in 0,0 to 50,50 coordinates), vehicle where we are ? (getting gps or pose from vehicle, PROBLEMATIC AREA TO SYNC ENVIRONMENTS ) Oh there, now vehicle move over there.
So how to deal with aligning with UE environment with changeable start ?
Beta Was this translation helpful? Give feedback.
All reactions