In the following, it is assumed that the openWNS source code is situated in the directory myOpenWNS.
Make sure that the following points are met within your openWNS installation:
Running ./playground.py from myOpenWNS should give no error or warning message, but the standard help output.
The installation of both the debug as well as the opt version of openWNS, from the source code to the myOpenWNS/sandbox directory, works without problems. Installation is started with the commands
$ ./playground.py install
$ ./playground.py install --flavour=opt
All system and unit tests should run without errors. Tests are started with the command
$ ./playground.py runtests
The command to create simulation campaigns, preparecampaign, is available when running ./playground.py.
The database to store simulation results is installed according to Installing the PostgreSQL database.
If all these steps succeed, you can create a new simulation campaign which is used for all the following experiments. A simulation campaign consists of
To create the simulation campaign, use the preparecampaign-command in the following way:
$ ./playground.py preparecampaign ../myFirstCampaign
Preparing simulation campaign. Please wait...
Note
The preparecampaign command will only be available if you have properly installed Wrowser and its plugins for playground.py. Please refer to Installing the Wrowser.
This will create the directory ../myFirstCampaign, including the neccessary sub-directories. After some moments, the script requests the following user input:
Please enter the name of the directory the simulations shall be stored in:
For each experiment, we suggest to use a different simulation directory (or “sub-campaign”). In this way, all experiments use the same version of the openWNS, but have different configuration files. Hence, the first experiment should get the name experiment1.
Please enter a name for the campaign:
This name will be used to identify and select the campaign in the openWNS Wrowser.
Please enter a short description of the campaign:
This description will also be shown in the openWNS Wrowser.
Then, the installation procedure will start. For the other experiments, it is suggested to create sub-campaigns. To do this, call the preparecampaign command again with a directory of an existing campaign:
$ ./playground.py preparecampaign ../myFirstCampaign
the script will ask (after the database-question):
Found simulation campaign in directory /home/wns/myFirstCampaign.
Shall I try to (U)pdate the sandbox or do you want to (C)reate a new sub campaign?
Type 'e' to exit (u/c/e) [e]:
Use c to create the sub-campaign and select a useful name for the directory.