SMA-RobotInHostileEnv/
│
├── agents/
│ ├── robot_agents.py
│ └── object_agents.py
│
├── core/
│ ├── model.py
│ └── schedule.py
│
├── reports/
│ ├── .gitkeep
│
├── visualization/
│ └── server.py
│
├── README.md
├── requirements.txt
└── run.py
This project simulates a multi-agent system where robots collaborate to collect and transform dangerous waste in a hostile environment. The environment is divided into three zones with varying levels of radioactivity, and the robots have different capabilities based on their type.
-
Clone the repository:
git clone https://github.com/romain-mondelice/SMA-RobotInHostileEnv.git
-
Navigate to the project directory:
cd SMA-RobotInHostileEnv
-
Install the required dependencies:
pip install -r requirements.txt
To run the simulation, execute the following command:
python run.py
This will launch the simulation with the default configuration. You can modify the simulation parameters by editing the run.py
file.
OOP - To elaborate and Complete
The project is organized into the following directories and files:
-
agents/
: Contains the implementation of robot agents and object agents.robot_agents.py
: Defines the classes for green, yellow, and red robots, implementing their behaviors.object_agents.py
: Defines the classes for waste and radioactivity agents.
-
core/
: Contains the core components of the simulation.model.py
: Defines theRobotMission
model, which handles the simulation logic and environment.schedule.py
: Defines a custom scheduler for activating agents in a specific order.
-
visualization/
: Contains the code for visualizing the simulation.server.py
: Sets up the visualization server using Mesa's built-in visualization tools.
-
run.py
: The main entry point of the simulation. It creates an instance of theRobotMission
model and runs the simulation.
TODO