{"id":26578040,"url":"https://github.com/dadananjesha/obstacles-avoiding-robot-simulator-project","last_synced_at":"2026-04-26T16:31:28.640Z","repository":{"id":271249890,"uuid":"912545901","full_name":"DadaNanjesha/Obstacles-Avoiding-Robot-Simulator-Project","owner":"DadaNanjesha","description":"This project simulates a robot navigating through an environment using Pygame. The robot can move, avoid obstacles, and update its position and heading based on sensor inputs.","archived":false,"fork":false,"pushed_at":"2025-03-08T19:18:38.000Z","size":1975,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-30T00:19:27.531Z","etag":null,"topics":["navigation","obstacle-avoidance-robot","robot","robot-navigation","robots","sensor-inputs"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DadaNanjesha.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-05T21:41:51.000Z","updated_at":"2026-02-05T09:17:28.000Z","dependencies_parsed_at":"2025-01-06T15:26:03.415Z","dependency_job_id":"721792e5-af1e-44df-977a-d046a9f19bed","html_url":"https://github.com/DadaNanjesha/Obstacles-Avoiding-Robot-Simulator-Project","commit_stats":null,"previous_names":["dadananjesha/robotics","dadananjesha/obstacles-avoiding-robot-simulator-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DadaNanjesha/Obstacles-Avoiding-Robot-Simulator-Project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DadaNanjesha%2FObstacles-Avoiding-Robot-Simulator-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DadaNanjesha%2FObstacles-Avoiding-Robot-Simulator-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DadaNanjesha%2FObstacles-Avoiding-Robot-Simulator-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DadaNanjesha%2FObstacles-Avoiding-Robot-Simulator-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DadaNanjesha","download_url":"https://codeload.github.com/DadaNanjesha/Obstacles-Avoiding-Robot-Simulator-Project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DadaNanjesha%2FObstacles-Avoiding-Robot-Simulator-Project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32305033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["navigation","obstacle-avoidance-robot","robot","robot-navigation","robots","sensor-inputs"],"created_at":"2025-03-23T04:19:02.431Z","updated_at":"2026-04-26T16:31:28.624Z","avatar_url":"https://github.com/DadaNanjesha.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Obstacles Avoiding Robot Simulator Project\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n[![Contributions Welcome](https://img.shields.io/badge/Contributions-welcome-brightgreen.svg)](CONTRIBUTING.md)\n\nWelcome to the **Obstacles Avoiding Robot Simulator Project** :  an interactive simulation that brings robotics and AI to life! This project is designed to simulate a robot navigating through a dynamic environment filled with obstacles, using cutting-edge algorithms to avoid collisions.\n\n![Robot Simulation](robot_simulation.gif)\n\n## Table of Contents\n- [Introduction](#introduction)\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Classes and Functions](#classes-and-functions)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Overview\n\nThe Obstacles Avoiding Robot Simulator Project is a hands-on platform for enthusiasts and developers alike to experiment with robotics algorithms in a simulated environment. It is ideal for learning about:\n- Sensor integration and real-time data processing.\n- Path planning and obstacle avoidance techniques.\n- Simulation environments for robotics applications.\n\nThis simulator provides an excellent base to experiment with various AI techniques, making it a useful tool for both academic purposes and personal projects.\n\n## Features\n\n- **Real-Time Simulation:** Visualize your robot navigating through a dynamic obstacle course.\n- **Customizable Environment:** Easily modify the simulation parameters and add custom obstacles.\n- **Modular Design:** The project structure supports plug-and-play modules for different sensors and control algorithms.\n- **Interactive Controls:** Adjust simulation speed, sensor sensitivity, and robot behavior on the fly.\n- **Extensible Codebase:** Designed with open-source principles in mind, encouraging contributions and enhancements.\n\n\n## Installation\n\n### Prerequisites\n\nBefore you begin, ensure you have met the following requirements:\n- [Python 3.8+](https://www.python.org/downloads/) installed on your machine.\n- Basic knowledge of Python and simulation concepts.\n- Git installed to clone the repository.\n\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/DadaNanjesha/robotics.git\n    ```\n2. Navigate to the project directory:\n    ```sh\n    cd robotics_project\n    ```\n3. Install the required dependencies:\n    ```sh\n    pip install -r requirements.txt\n    ```\n\n## Usage\n\n1. Run the main simulation script:\n    ```sh\n    python main.py\n    ```\n2. The simulation window will open, showing the robot navigating through the environment.\n\n## Classes and Functions\n\n### [robot.py](http://_vscodecontentref_/1)\n\n- **`point_distance(p1, p2)`**: Calculates the Euclidean distance between two points.\n- **`Robot`**: Class representing the robot.\n  - **`__init__(self, start_pos, width)`**: Initializes the robot with a starting position and width.\n  - **`move(self, distance, angle)`**: Moves the robot by a certain distance and angle.\n  - **`get_position(self)`**: Returns the current position of the robot.\n  - **`get_heading(self)`**: Returns the current heading angle of the robot.\n  - **`set_speed(self, vl, vr)`**: Sets the speed of the robot's wheels.\n  - **`detect_obstacle(self, distance)`**: Detects if there is an obstacle within a certain distance.\n  - **`update_countdown(self, time_elapsed)`**: Updates the countdown timer.\n  - **`avoid_obstacles(self, obstacles, dt)`**: Avoids obstacles by moving backwards if an obstacle is detected.\n  - **`move_backwards(self)`**: Moves the robot backwards.\n  - **`move_forwards(self)`**: Moves the robot forwards.\n  - **`kinematics(self, dt)`**: Updates the robot's position based on its speed and heading.\n  - **`update(self, obstacles, dt)`**: Updates the robot's state, including position, speed, and obstacle avoidance.\n\n### [main.py](http://_vscodecontentref_/2)\n\n- Sets up the simulation environment and runs the main loop.\n- Initializes the robot and graphics.\n- Handles events and updates the robot state.\n- Renders the graphics and updates the display.\n\n## Contributing\n\nContributions are welcome! Please read our [Contributing Guidelines](CONTRIBUTING.md) to learn about our code of conduct, pull request process, and more.\n\nIf you want to report a bug or suggest a feature, please open an [Issue](https://github.com/DadaNanjesha/Obstacles-Avoiding-Robot-Simulator-Project/issues).\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\n*Happy Simulating!*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdadananjesha%2Fobstacles-avoiding-robot-simulator-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdadananjesha%2Fobstacles-avoiding-robot-simulator-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdadananjesha%2Fobstacles-avoiding-robot-simulator-project/lists"}