Open Jaeyoung-Lim opened 4 years ago
@chapulina Would you have any idea what is going on? How can we fix this?
I don't have much time to try to replicate this. Some ideas that may help:
Hi, @chapulina
I have the same problem. The problem for me was that my Google maps API key stopped working.
At the same time, StaticMapPlugin did not give any errors or warnings. I think it's worth adding a key validation check, if possible, of course.
@BaltashovIlia Did updating the keys solve the issue for you?
Yes
I think it's worth adding a key validation check
Sounds like a good idea, here's the plugin code.
@BaltashovIlia I don't think we have the same issue then. Otherwise, I wouldn't have been able to download the map tiles
@Jaeyoung-Lim
Actually, if you have invalid Static Map API key then StaticMapPlugin will download tiles and even create png files. The problem is that you revived text with error message from google maps not image. Not the most obvious behavior )=.
To check it please open .gazebo/models/mapsatellite/textures/.img. If you could not open the file, then there is a high probability it was in the api key.
To check the api key, put this https request with your api key in the browser:
I applied API restrictions to allow Maps Static API and it is working. Restrict key 1 API Selected APIs: Maps Static API
When using the
StaticMapPlugin
, the plugin is able to download the map tiles, but gazebo doesn't seem to disable it properly. Terminal output: