Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lgsvl gps data not aligned properly in autonomousStuff map #1597

Closed
asobhy-qnx opened this issue Jul 16, 2021 · 6 comments
Closed

lgsvl gps data not aligned properly in autonomousStuff map #1597

asobhy-qnx opened this issue Jul 16, 2021 · 6 comments
Labels
answered Waiting for response

Comments

@asobhy-qnx
Copy link

asobhy-qnx commented Jul 16, 2021

I am experiencing localization issues when using gps on LGSVL with autoware.auto.

I replaced ndt localization with gps and imu positioning.

I am using this map asset: https://assets.lgsvlsimulator.com/ec057870762b5a967a451c93444b67d0b64e9656/environment_AutonomouStuff

LGSVL version 2020.06

First thing I am seeing is that the altitude the gps is recording is -18.9m which does not seem right. I do not believe AutonomousStuff parking lot is 18.9 meters below surface of the ocean. From https://www.freemaptools.com/elevation-finder.htm it seems that the altitude is 14.0m at gps coordinates 37.38099,-121.90861

After offsetting for the -18.9m altitude, when I place the vehicle and on the origin on both the lanelet2 map and LGSVL map the two maps are aligned perfectly, then when I start moving the vehicle in the East direction I see the car position change in the East-South direction on the lanelet2 map. When driving East the latitude should stay constant but it does change which is not correct as seen on LGSVL GPS reading

@asobhy-qnx asobhy-qnx changed the title lgsvl gps data suspect lgsvl gps data not aligned properly in autonomousStuff map Jul 16, 2021
@EricBoiseLGSVL
Copy link
Contributor

Current version of autonomoustuff is rotated correctly. Thanks for the help on the offset, next release we will have it corrected to 14m.

@EricBoiseLGSVL EricBoiseLGSVL added answered Waiting for response bug Something isn't working labels Jul 16, 2021
@asobhy-qnx
Copy link
Author

How can I make sure I have the current version of the map?

@EricBoiseLGSVL
Copy link
Contributor

release 2021.2 tag. 2021.2 map will not work with 2020.06 simulator.

@asobhy-qnx
Copy link
Author

@EricBoiseLGSVL I tested using 2021.2 and the behaviour in 2020.06 is the same as in 2021.2.

Tested on LGSVL 2020.06 & 2021.02
The problem:
When driving on the map in East or West direction Lat value for GPS increase or decrease respectively. This indicate a misalignment in the gps data on LGSVL map.

How to reproduce:

1- Manually drive the vehicle until you get an orientation on the IMU equal to [0,0,0,1], heading of zero degrees, which puts the vehicle into a heading in the East direction, as confirmed with google maps. Don't know why the IMU has it's zero heading facing east, if it's frame of reference is matching with base_link, where x is front and y is left.

2- Once the vehicle is facing east, drive the car in straight line and observe the value for the latitude on LGSVL GPS reading, you will see that the value is changing. Shouldn't the Latitude be fixed if we are driving at a zero angle East?

@EricBoiseLGSVL
Copy link
Contributor

Hmm, @hadiTab it this expected behavior? I checked the map and it is rotated correctly. Would the MapOrigin be wrong? We'll look into it @asobhy-qnx

@asobhy-qnx
Copy link
Author

@EricBoiseLGSVL it seems that it was an incorrect calculation from my end. The data in LGSVL is good.

@EricBoiseLGSVL EricBoiseLGSVL removed the bug Something isn't working label Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered Waiting for response
Projects
None yet
Development

No branches or pull requests

2 participants