How can I create a custom indoor map using Mapping Toolbox? for GUI
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, I'm trying to create a custom indoor map for a robotics application using mapping toolbox. I already know what the map should look like so I tried to load a map using the imshow command but it ended up showing on top and not allowing me to show anything else on the map. (Is there a fix for this? Can I send it to the back or make it a background for my axes?)
If this is not possible is there a way to create a custom map from data I have using mapshow or geoshow or something? I only need to use Geoshow on top of it to add markers with sensor readings. Below is the create function I'm using for the axes in my GUI:
Omar=[10 10 9; 20 10 1; 30 10 10; 10 20 3; 20 20 1; 30 20 1; 10 30 2; 20 30 2; 30 30 4];
mapshow ([5 35],[5 35],'DisplayType','point') grid on hold on i=1; size =0;
while (i<=9) if (Omar(i,3)>0) if Omar(i,3)<3 Color='g'; elseif Omar(i,3)>2 && Omar(i,3)<7, Color='y'; elseif Omar(i,3)>6, Color='r'; end geoshow(Omar(i,1), Omar(i,2),... 'DisplayType', 'point',... 'Marker', 'o',... 'MarkerEdgeColor', Color,... 'MarkerFaceColor', Color,... 'MarkerSize', 10*(Omar(i,3))) %text(Omar(i,1),Omar(i,2),int2str(Omar(i,3))); end i=i+1; end
0 commentaires
Réponses (1)
Swathik Kurella Janardhan
le 16 Août 2016
You can refer to the documentation link that explains about an example 'Overlay Vector on Orthophoto' on how to show an image as a layer on an axes and how to display/highlight a portion of the image on the axes. You can also refer to the example 'Overlay Polygon and Lines on Orthophoto' in the same link.
0 commentaires
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!