This project is implemented as part of the Robotics Course in my masters degree. The project simulates the shortest path problem in the setting of a maze where several issues of mobile robots encounters:
- Obstacle Avoidance
- Find the path leading out of the maze
- Finding the shortest route
The purpose of this project is simulating the path finding algorithm embedded into Unity Game Engine, by creating a NavMesh agent. Unity engine renders the game area to define walkable and non-walkable areas for the agent then find the shortest path to the target location as in the official unity documentation. I developed an algorithm that optimizes the shorest path by:
- defines the obstacles to avoid
- Find the soltuion to the maze
- finds the shortest route using
A star search algorithm
The player is indicated by the red cylinder, and the target location (out of the maze) is represented by the blue sphere. The floor of the maze is composed of small cube unit that is color coded as the following :
- 🟥 -> collision area
- ◻️ -> walkable area
- 🟦 -> agent initial location
- ⬛ -> shortest route out of the maze, which is computed using
A star search algorithm
To try the project, clone the repository and run the A star algo scene.
For comparision purposes the NavMesh Agent in simple maze scene.