A Robot path planning Genetic algorithm implemented in Python
Generate a grid with obstacles. Specify start and goal points. Visualize the pathfinding process. Displays the best fitness score and current generation.
Make sure you have Python installed on your machine. You also need to install the following libraries:
NumPy You can install NumPy using pip:
pip install numpyClone the repository to your local machine:
git clone https://github.com/AhmedReda85/RobotPathGA.gitcd path-planningpython main.pyInput the grid size, start point, goal point, and obstacle ratio.
- Grid Size: Set the size of the grid (e.g., 10 for a 10x10 grid).
- Start Position: Enter the starting coordinates (x, y).
- Goal Position: Enter the goal coordinates (x, y).
- Obstacle Ratio: Set the ratio of obstacles in the grid (between 0 and 1).
Feel free to contribute! Open an issue or submit a pull request if you have suggestions or improvements.