JoaoPedroAssis / mission_control-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mission_control_demo

A exemplar project of how to use mission_control with pyDEEco to create simulation and generated mission plans.

Setup

This project uses 'poetry' for mananing dependencies

# install poetry [https://python-poetry.org/]
# then use poetry to install dependencies
~$ poetry install
# and configure a virtual environment in your shell
~$ poetry shell

[Optional] Importing hmrs_mission_control by code

For fixing bugs and debuging, run side by side with 'hmrs_mission_control' code

# path considering both projects are in the same folder
~$ pip install -e ./hmrs_mission_control

Run

Run one of the already configured missions from the root of the project (each line below is a different mission):

# within poetry shell
~$ python ./mission_control_demo/lab_samples/run.py
~$ python ./mutrose/lab_samples/run.py
~$ python ./mutrose/food_logistics/run_fld.py
~$ python ./mutrose/food_logistics/run_flp.py

[optional] The are already configured 'Launch' actions for vscode, which can be used for execution/debuging.

Result

After executing the demo, a folder will be generated in /executions:

/executions/exec_{}
|_logs/cf_request_x.log # a file for each coalition formation process for each received request
|_scenarios.json        # the initial configuration of the simulation
|_trial.json            # the end state of the simulation, with a plan assigned to a robot if the case a plan was found

About


Languages

Language:Python 100.0%