The goal of this project demonstrates randomized mapping in which a robot traverses through the map and obstacles from a given start position to a given goal position.
Everything is printed in the terminal. I added an additional manual mode just as a small "project" in case you wanted to play around in the given field. Several parameters are customizable. The parameters if you want to adjust are the variables:
These are used to determine how big your "maze" is going to be.
- Line 7: self.width
- Line 8: self.height
These are used to determine your robot starting point. 3. Line 9: self.robot_width 4. Line 10: self.robot_height
Faster or slower traversal time: 5. Line 98: time.sleep(0.3)
0.4 is the value at which the probability of "walls" generated 6. Line 28: if r < 0.4.
The A* file is added for further development of algorithms. In this file you can customize your values as well. In addition, I added a feature where you can customize your own map and run it to see your digital robot traverse through your own made course.
Note: '#' are walls and '.' are traversible spaces that the robot can move to.