afrl-rq / OpenUxAS-SoI

Project for multi-UAV cooperative decision making
Other
75 stars 38 forks source link

Map data of OpenAMASE #65

Open kfu0115 opened 6 years ago

kfu0115 commented 6 years ago

Is there a way to improve the resolution of the map in AMASE? When I zoom in, each pixel seems to cover a wide area which makes the resolution not very good. Is there a way to import map data somewhere to improve the resolution?

derekkingston commented 6 years ago

You'll need to load background maps. To do this:

1) Install NASA Worldwind: mkdir -p NASA_Worldwind cd NASA_Worldwind wget https://github.com/NASAWorldWind/WorldWindJava/releases/download/v2.1.0/worldwind-v2.1.0.zip unzip worldwind-v2.1.0.zip bash ./run-demo.bash -- select Bing Imagery -- zoom into the desired area to cache the imagery

2) Edit the file: OpenAMASE/OpenAMASE/config/amase/Plugins.xml Add a new "WorldWindLayer"

<Plugin Class="avtas.amase.map.MapPlugin">
       <Map>
           <Layers>
               <Layer Class="avtas.map.layers.WorldWindLayer" >
                   <CacheDirectory>PATH_TO_HOME_DIRECTORY/var/cache/WorldWindData/Earth/Bing</CacheDirectory>
               </Layer>

On my Mac, this is what it looks like after adding maps:

               <Layer Class="avtas.map.layers.WorldWindLayer" >
                   <CacheDirectory>/Library/Caches/WorldWindData/Earth/EarthElevations2</CacheDirectory>
               </Layer>
               <Layer Class="avtas.map.layers.WorldWindLayer" >
                   <CacheDirectory>/Library/Caches/WorldWindData/Earth/BMNGWMS2/BMNG(Shaded + Bathymetry) Tiled - Version 1.1 - 5.2004</CacheDirectory>
               </Layer>
               <Layer Class="avtas.map.layers.WorldWindLayer" >
                   <CacheDirectory>/Library/Caches/WorldWindData/Earth/NASA LandSat I3 WMS 2</CacheDirectory>
               </Layer>
               <Layer Class="avtas.map.layers.WorldWindLayer" >
                   <CacheDirectory>/Library/Caches/WorldWindData/Earth/Bing</CacheDirectory>
               </Layer>
bhberthold1 commented 6 years ago

I was having the same issue. Thank you @derekkingston for providing this plugin help!

Is there a way to do this for the SetupTool available in OpenAMASE?

bhberthold1 commented 6 years ago

I found the solution to my previous comment! A similar plugin.xml file exists in OpenAMASE/OpenAMASE/config/setup/Plugins.xml.

Follow the same steps said by @derekkingston above in this file to produce the improved map in the SetupTool.