-
Notifications
You must be signed in to change notification settings - Fork 3
Changing The Simulator's Map
Some of you might wanna do some changes to the Simulator's Map for testing purposes, our group in particular needed to do that, we managed to successfully alter the map, and we figured we'd share this info at Christian's request.
The files responsible for manipulating the map reside inside Hesperia-Light in a folder named "Scenarios".
- Go to the folder that contains the map's scripts:
cd 2015-CaroloCup/sources/OpenDaVINCI-msv/hesperia/Scenarios
-
You'll find many .SCNX files, each of them hold a name based on the part that you need out of the map.
-
Unpack any of these files, and do the changes as you see fit (coordinate changes can be quite tedious and requires a lot of trial and error, i would suggest you go for the Graphical way).
-
Save your files and compile hesperia by running its build file.
-
Run the Simulator's Monitor and you'll see the changes on its map.
Instead of changing the files manually and testing everytime, Christian suggested a tool that was written by one of his students, which is the SCUI, however it only works on 32-bit systems, or using the Virtual Box, the following are the step to installing and using it:
- Install Java Runtime Machine, if you don't have it (The tool can't run with the JRE):
sudo apt-get install openjdk-7-jre
- Install GTK's and Glib's libraries, if you don't have them ( GLib's might cause in error in some Ubuntu versions, if so, just delete the second command libglib2.0-dev):
sudo apt-get install ia32-libs-gtk libglib2.0-dev
-
Download the zip file that contains the script for the U.I, and unpack it:
-
run the ScUI script:
sudo ./ScUI
-
The graphical editor should now be opened, otherwise you've done something wrong so far.
-
Using the (Open) tap, select any of the .SCNX that are located inside the (hesperia-light/Scenarios), and the map will appear on the editor.
-
The editor has many tools that you can use to edit and change the map, you can even build a fully new map, however the tool is a bit slow and takes some time to get used to.
-
Save your changes when you're done, then run the build command for hesperia-light, and then run the Simulator's monitor and you should see your changes on the map.