{"id":28881884,"url":"https://github.com/devparihar5/less-intelligent-vacuum-cleaner","last_synced_at":"2026-04-18T10:36:59.820Z","repository":{"id":292892701,"uuid":"764694358","full_name":"Devparihar5/Less-Intelligent-Vacuum-Cleaner","owner":"Devparihar5","description":"A simulation of a vacuum cleaning robot with various AI algorithms for path planning and coverage optimization. This project features a modern web interface built with Flask and Socket.IO.","archived":false,"fork":false,"pushed_at":"2025-05-12T16:56:37.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T08:52:18.081Z","etag":null,"topics":["ai","automation","flask","python"],"latest_commit_sha":null,"homepage":"https://less-intelligent-vacuum-cleaner.onrender.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Devparihar5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-28T14:47:14.000Z","updated_at":"2025-05-13T10:03:16.000Z","dependencies_parsed_at":"2025-05-12T18:09:47.945Z","dependency_job_id":null,"html_url":"https://github.com/Devparihar5/Less-Intelligent-Vacuum-Cleaner","commit_stats":null,"previous_names":["devparihar5/less-intelligent-vacuum-cleaner"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Devparihar5/Less-Intelligent-Vacuum-Cleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devparihar5%2FLess-Intelligent-Vacuum-Cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devparihar5%2FLess-Intelligent-Vacuum-Cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devparihar5%2FLess-Intelligent-Vacuum-Cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devparihar5%2FLess-Intelligent-Vacuum-Cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Devparihar5","download_url":"https://codeload.github.com/Devparihar5/Less-Intelligent-Vacuum-Cleaner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devparihar5%2FLess-Intelligent-Vacuum-Cleaner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31966206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","automation","flask","python"],"created_at":"2025-06-20T20:30:43.244Z","updated_at":"2026-04-18T10:36:59.800Z","avatar_url":"https://github.com/Devparihar5.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Less Intelligent Vacuum Cleaner\n\nA simulation of a vacuum cleaning robot with various AI algorithms for path planning and coverage optimization. This project features a modern web interface built with Flask and Socket.IO, as well as a traditional command-line interface using Pygame.\n\n![Intelligent Vacuum Cleaner](https://github.com/devparihar5/Less-Intelligent-Vacuum-Cleaner/raw/main/screenshots/demo.png)\n\n## Features\n\n- **Multiple AI Algorithms**: Choose between different cleaning strategies:\n  * `random` - Uses a random bounce walk strategy that changes direction upon collision\n  * `spiral` - Uses a spiral walk strategy with adaptive rotation speed, switches to random walk when hitting obstacles\n  * `swalk` - Uses the \"meander\" walk strategy (S-pattern) for systematic coverage\n\n- **Modern Web Interface**: \n  * Intuitive UI built with Bootstrap and Socket.IO\n  * Real-time simulation updates and statistics\n  * Interactive drawing tools for creating custom environments\n  * Responsive design that works on desktop and mobile devices\n\n- **Interactive Environment Builder**:\n  * Draw obstacles by clicking and dragging with the mouse\n  * Place the robot anywhere in the environment\n  * Choose from predefined room layouts or create your own\n  * Clear obstacles with a single click\n\n- **Real-time Simulation Statistics**:\n  * Coverage percentage tracking\n  * Full coverage percentage tracking\n  * Time/ticks counter with formatted display\n  * Animated statistics updates\n\n- **Dual Interfaces**:\n  * Modern web interface with intuitive controls (Flask + Socket.IO)\n  * Traditional command-line interface with Pygame for scripting\n\n- **Event-Driven Architecture**:\n  * Modular design with event system\n  * Separation of environment, visualization, and algorithms\n  * Extensible framework for adding new algorithms\n\n## Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/devparihar5/Less-Intelligent-Vacuum-Cleaner.git\ncd Less-Intelligent-Vacuum-Cleaner\n\n# Install dependencies\npip install -r requirements.txt\n```\n\n## Running the Simulation\n\n### Web Interface (Recommended)\n\nThe web interface provides an intuitive way to interact with the simulation:\n\n```bash\npython app.py\n```\n\nThen open your browser and navigate to:\n```\nhttp://localhost:5000\n```\n\n#### Using the Web Interface\n\n1. **Setup Phase**:\n   - Select an algorithm (`random`, `spiral`, or `swalk`) from the dropdown menu\n   - Choose an environment from the predefined layouts or use the default empty room\n   - Use the drawing tools to:\n     * Draw obstacles by right-clicking and dragging with the mouse\n     * Place the robot by selecting the robot tool and left-clicking on the canvas\n     * Clear obstacles with the clear button\n\n2. **Simulation Phase**:\n   - Click the \"Start Simulation\" button to begin\n   - Monitor the simulation statistics in real-time:\n     * Coverage percentage\n     * Full coverage percentage\n     * Time elapsed (formatted as HH:MM:SS)\n   - Stop the simulation at any time with the \"Stop Simulation\" button\n\n## Configuration\n\nThe simulation is highly configurable through the `config_manager.py` file:\n\n- **Robot Parameters**: Speed, radius, and other physical properties\n- **Environment Settings**: Room dimensions, tile size, and predefined layouts\n- **Simulation Parameters**: FPS, dirt level, stopping conditions\n- **Debug Options**: Display FPS, coverage statistics, and time\n\n## Project Structure\n\n- `app.py` - Web interface and server using Flask and Socket.IO\n- `RoomEnvironment.py` - Environment simulation and physics\n- `Visualizer.py` - Rendering and visualization components\n- `algorithm/` - AI algorithms for robot movement:\n  * `AbstractCleaningAlgorithm.py` - Base class for all algorithms\n  * `RandomBounceWalkAlgorithm.py` - Random bounce strategy\n  * `SpiralWalkAlgorithm.py` - Spiral movement pattern\n  * `SWalkAlgorithm.py` - Systematic S-pattern coverage\n- `sprite/` - Game objects (Robot, Obstacles, Tiles, etc.)\n- `events/` - Event system for simulation communication\n- `utils/` - Utility functions and helper classes\n- `config_manager.py` - Configuration management\n- `static/` - Web assets (CSS, JavaScript)\n- `templates/` - HTML templates for web interface\n\n## Web Interface Features\n\nThe web interface is built with modern web technologies:\n\n- **Real-time Communication**: Uses Socket.IO for bidirectional communication between client and server\n- **Responsive Design**: Built with Bootstrap for a mobile-friendly experience\n- **Interactive Drawing**: Custom drawing tools for creating obstacles and placing the robot\n- **Animated Statistics**: Smooth animations for statistics updates\n- **Error Handling**: Comprehensive error handling with user-friendly messages\n\n## Adding New Algorithms\n\nTo add a new cleaning algorithm:\n\n1. Create a new class in the `algorithm/` directory that extends `AbstractCleaningAlgorithm`\n2. Implement the required `update()` method\n3. Register the algorithm in `app.py`\n\nExample:\n\n```python\nfrom algorithm.AbstractCleaningAlgorithm import AbstractCleaningAlgorithm\nfrom events.ConfigurationChanged import ConfigurationChanged\nfrom sprite.Robot import RobotState\n\nclass MyNewAlgorithm(AbstractCleaningAlgorithm):\n    def __init__(self):\n        super().__init__()\n        # Initialize your algorithm's state\n\n    def update(self, obstacles, robot):\n        super().update(obstacles, robot)\n        configuration_events = []\n        \n        # Your algorithm logic here\n        # Create and append ConfigurationChanged events as needed\n        \n        return configuration_events\n```\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## Acknowledgments\n\n- Built with Python, Pygame, Flask, and Socket.IO\n- Frontend built with Bootstrap and modern JavaScript\n- Inspired by research in robotic vacuum cleaning algorithms\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevparihar5%2Fless-intelligent-vacuum-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevparihar5%2Fless-intelligent-vacuum-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevparihar5%2Fless-intelligent-vacuum-cleaner/lists"}