Skip to content

Sminnitex/ASAProject

Repository files navigation

Install everything

You'll need node js, you can download it at https://nodejs.org/en/

Once everything is set up you need to go on terminal and run

git clone https://github.com/unitn-ASA/Deliveroo.js.git
cd Deliveroo.js
npm install
npm install @unitn-asa/deliveroo-js-client
git clone https://github.com/unitn-ASA/DeliverooAgent.js
cd DeliverooAgents.js
npm install
git clone https://github.com/Sminnitex/ASAProject
npm install @unitn-asa/pddl-client@0.0.37

Create a basic environment

Create a file called ".env" in the "./Deliveroo.js" directory and copy and paste

# Passphrase used to generate jwt token
SUPER_SECRET='default_token_private_key'
# Web server port; 8080 if not specified
PORT='8080'
# File in ./files to load a specific configuration
LEVEL='level_1'

Then on terminal run on the Deliveroo.js directory

npm run dev

To modify the level you can modify both the .env or the level_1 files

To run the agent

After you set the environment go on a terminal and run inside the ASAProject directory

node pizzaAgent
node strudelAgent

Run in local with pddl planner

To install the planner we used

https://github.com/AI-Planning/planning-as-a-service We will copy the basic commands to run the planner from the repository down here

sudo apt update
sudo apt install cmake g++ make python3 docker
git clone https://github.com/AI-Planning/planning-as-a-service
cd planning-as-a-service/server

Now in the folder you should create a .env file (Is present a .env.example file that can be used)

Once you created the .env file you can run

sudo make

To start the docker

docker compose up 

To shut down

docker compose down

About

University project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published