Giter VIP home page Giter VIP logo

itaqiz / wall_following_robot Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 78 KB

This repository consist of our Robotics semester project for the 5th semester of BS Artificial Intelligence at Bahria University. The project focuses on creating a wall-following robot controller using the Webots simulation environment. The robot will navigate along a wall while avoiding obstacles.

Python 100.00%

wall_following_robot's Introduction

ROBOTICS-PROJECT-SEM05 ๐Ÿค–๐Ÿš€

Introduction

This project, serves as our Robotics semester project for the 5th semester of BS Artificial Intelligence at Bahria University. The project focuses on creating a wall-following robot controller using the Webots simulation environment. The robot will navigate along a wall while avoiding obstacles.

Table of Contents

Program

๐Ÿ“˜ This project is part of the BS Artificial Intelligence program at Bahria University.

University

๐Ÿซ Bahria University

Instructor

๐ŸŽ“ Professor Adil Khan

Implementation Details

Robot Configuration

๐Ÿค– - The robot consists of two wheels: a left wheel and a right wheel.

  • Eight proximity sensors (ps0 to ps7) detect obstacles around the robot.

Controller Logic

  1. Initialization:

    • Set the time step for simulation.
    • Define the maximum speed for the robot.
  2. Motor Configuration:

    • Enable the left and right motors.
    • Set the initial motor positions and velocities.
  3. Sensor Setup:

    • Enable the proximity sensors.
    • Read sensor values during each simulation step.
  4. Main Loop:

    • While the simulation is running:
      • Read sensor data from all eight proximity sensors.
      • Determine if there's a wall on the left, a corner on the left, or an obstacle in front.
      • Adjust the left and right motor speeds accordingly:
        • If there's a front wall, turn right in place.
        • If there's a left wall, drive forward.
        • If there's a left corner, steer right to avoid collision.
  5. Actuator Commands:

    • Set the left and right motor velocities based on the calculated speeds.
  6. Exit Cleanup:

    • Perform any necessary cleanup before exiting the simulation.

Getting Started

๐Ÿš€ To get started with this project, follow these steps:

  1. Clone this repository to your local machine.
  2. Open the Webots environment.
  3. Load the robot model and the corresponding file.
  4. Run the simulation and observe the robot's behavior.

Contributing

๐Ÿ™Œ Contributions are welcome! If you'd like to improve this project, please:

  • Fork the repository.
  • Create a new branch (git checkout -b feature/improvement).
  • Make your changes.
  • Commit your changes (git commit -am 'Add new feature').
  • Push to the branch (git push origin feature/improvement).
  • Create a new Pull Request.

Other Group Members

๐Ÿ‘ฅ

  • Babar Ali
  • Zain ul Abadeen

wall_following_robot's People

Contributors

itaqiz avatar

Stargazers

 avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.