Note: I'll write a tutorial soon. Until then, feel free to email me if you have questions.
A library to manage OpenStreetMap (OSM) files in a new format: Lightweight OSM (LOSM) files. First, a python converter is included, which converts an OSM file to a collection of files in a very simple format. Also, C++ code is provided which loads the files as a weighted graph.
If you use this code for your research, then feel free to cite our IJCAI 2015 paper: Wray, Kyle H. and Zilberstein, Shlomo. "Multi-Objective POMDPs with Lexicographic Reward Preferences." In the Proceedings of the Twenty-Fourth International Joint Conference of Artificial Intelligence (IJCAI), Buenos Aires, Argentina, July 2015.
- Go to http://www.openstreetmap.org and center the desired location in the window.
- Click the "Export" button on the top left, then the "Export" button on the far left (once it appears).
- Save the "<name of file>.osm" file.
- Run the command "python losm_converter.py <name of file>.osm <output prefix>"
- Copy all "<output prefix>*.dat" files to a "resources" directory and backup the "<name of file>.osm" file.
- Write a script to run the LOSM visualizer in the form below. Then run the script.
- In the visualizer, you can determine the pair of nodes which form a LOSMState in the (PO)MDP by right clicking. The command line will display the UID of the node, which can be used in the design of (PO)MDPs. This structure is defined in my LMDP and LPOMDP papers.
#!/bin/bash
cd <path to LOSM visualizer scripts>
python losm_visualizer.py <window width (px)> <window height (px)> <0/1 - real-time render (vs cached texture)> <path to resources>/resources/<output prefix> <path and name of policy file>