Moving Robot is a simulation project developed in Python, designed to control a virtual robot navigating a map loaded from a text file while avoiding collisions with obstacles placed throughout the environment.
The simulation emphasizes interactive control, map validation, and real-time feedback to visualize the robot’s movement and spatial awareness.
- Load a map from a
.txtfile to initialize the simulation. - Use the W, A, S, D keys to manually control the robot’s movement.
- Navigate through the environment while avoiding obstacles.
- Observe real-time feedback of the robot’s position and movements in the console.
- The system automatically verifies the map structure before starting the simulation.
- 🧭 Main Menu: Offers multiple simulation options, including viewing the optimal solution path.
- 🗺️ Map Validation: Automatically checks the map’s structure and data integrity.
- 🔢 Obstacle Detection: Counts and locates all detected obstacles on the map.
- 🧱 Map Visualization: Displays an encoded view of the map showing obstacle positions.
- 🧩 Solution Display: Visualizes the correct or optimal path the robot should follow to complete the map.
- 🎮 Manual Control: Move the robot using W, A, S, D keys for real-time navigation.
- 🐍 Python 3
- 📄 File Parsing – for loading and validating text-based maps
- ⌨️ Keyboard Event Handling – for real-time user control
- 🧠 Algorithmic Logic – to handle collision detection, pathfinding, and solution visualization