This project is a pipeline that connects a Matlab simulation (Simulink) to an OpenAI Gym wrapper for PyTorch Reinforcement Learning using the DQN algorithm.
Matlab simulations offer an excellent way to model real-world scenarios. This project aims to establish a connection between Matlab simulations and third-party libraries and open-source AI solutions. As such, we have chosen to develop an interface that bridges a Matlab simulation with Python AI libraries
The simulation that we used to test the interface is based on a Robot (Thymio) navigating through a maze, the robot has multiple sensors to measure the distance to nearby walls with the goal of learning how to efficiently navigate throught the maze and exit it safely.
What things you need to install the software and how to install them:
- Matlab
- Simulink
- OpenAI Gym
- PyTorch
- Clone the repo
- Navigate to the project directory
- Run the main.py script
- Matlab based on the amazing implementation of The Pledge Algorithm - Thymio Robot Model on a Maze
- OpenAI Gym - The reinforcement learning wrapper
- TorchRL and DQN - The deep learning library used
Initial work - Spinkoo
see the LICENSE.md file for details
- Hat tip to anyone whose code was used