Skip to content
Liverpool team code for the 2019 Multi-Agent Programming Contest.
Java Shell
Branch: master
Clone or download
Latest commit a1e35b3 Oct 31, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf
lib Fixed. Oct 16, 2019
log Forcing log folder. May 30, 2019
maps First commit with code from last year. May 12, 2019
planner bug fix in goal evaluation Oct 9, 2019
src Code used in the competition. Oct 17, 2019
test/liv/agentcontest2019 We can now reconnect with fresh start Oct 15, 2019
.classpath Updating server libs. Aug 19, 2019
.gitignore
.project Removing gradle references May 30, 2019
LICENSE Initial commit May 8, 2019
README.md
liv-mapc2019-contest1.jcm Adding connection files for the connection test. Sep 4, 2019
liv-mapc2019-contest2.jcm Adding connection files for the connection test. Sep 4, 2019
liv-mapc2019.jcm Small fixes for the evaluation part. Sep 11, 2019
liv-mapc2019TeamB.jcm Adding test file for scenario with two teams. Jul 9, 2019
logging.properties First commit with code from last year. May 12, 2019

README.md

LIV Team

Setup

First we need to install the tools for multi-agent programming, and then we can install the automated planner that our agents use.

MAS

Download Eclipse if you don't have it yet. Any version should be fine, although newer versions are advised.

To enable syntax highlight for JaCaMo, install the Eclipse plugin using this tutorial up to, and including, Step 10.

After restarting Eclipse, select the following menu option:

File > Import > Git > Projects from Git > Clone URI

Copy https://github.com/autonomy-and-verification-uol/mapc2019-liv.git and paste it on the URI field.

Proceed until the "select a wizard to use for importing projects" screen, then pick Import existing Eclipse projects and click next and then finish.

Planner

We used the Fast Downward (http://www.fast-downward.org/) planner. It should be possible to use another planner, as long as it supports the same subset of PDDL that FD does, but remember to modify the file planner/run2.sh accordingly with the command to run the new planner.

After installing FD (http://www.fast-downward.org/ObtainingAndRunningFastDownward), make sure the planner is working by itself by running it with a simple domain and problem file.

Finally, in the Eclipse project, navigate to planner/run2.sh and change the beginning of line 5 /home/angelo/git/planner/./fast-downward.py to the path where your fast-downward.py is installed.

How to run

We used JUnit to run both the server and our JaCaMo code at the same time.

To run the sample map, right-click test/liv/agentcontest2019/ScenarioRunSample.java file, "Run as", "jUnit Test". The server's output is shown on the Eclipse console. The JaCaMo output is loaded into a separate window. Press enter at the Eclipse console to start the simulation.

To run the sample map with two teams (team B only uses our exploration code), right-click test/liv/agentcontest2019/ScenarioRunSampleTwoTeamsTeamB.java file, "Run as", "jUnit Test". This will start only the code for team B. Then, right-click test/liv/agentcontest2019/ScenarioRunSampleTwoTeams.java file, "Run as", "jUnit Test". This will start the server and team B. Press enter at the Eclipse console to start the simulation.

The files ScenarioRunContest1.java and ScenarioRunContest2.java run only our code (without the server) and were used to connect to the contest servers server1 and server2 respectively.

How to watch the match live

Open this link

You can’t perform that action at this time.