Code Monkey home page Code Monkey logo

robo_algorithms's Introduction

Algorithms in Robotics

General software problems in robotics solved using fundamental algorithms

Rapidly exploring Random Trees (RRT) Algorithm:

RRT is one of most popular algorithms used for path planning for autonomous vehicles, mobile robots as well as robotic manipulators

Open the "RRT" Folder to find "rrt.py" script and "occupancyGrid.npy" array which resembles a map of room consisting of obstacles

Firstly clone this repository using:

git clone https://github.com/ritesh27gole/robo_algorithms.git

Dependencies:

Tested for:

  1. Python (version: 3.8.10)
  2. Numpy (version: 1.24.2)
  3. Matplotlib (version: 3.7.0)

You can download the dependencies by entering the following command in terminal

cd <-path to the RRT folder->
pip install -r requirements.txt

How to run:

Download the "RRT" folder and copy the path to this folder

In terminal:

cd <-path to the RRT folder->
python3 rrt.py

This is the pre-loaded occupancy grid: occupancy_grid

Enter the starting as goal point coordinates as shown below, don't put coordinates that would end up on obstacles terminal_screenshot

After running the script we get: RRT_Algorithm Here nodes highlighted by green and blue ring respectively are the start and goal, whereas the dotted green line gives the path found by the algorithm

Eight puzzle solver using A* algorithm:

Solvability

We first find the amount of moves required to move the blank from position in initial state to position in goal state. We the find if the number of moves are even or odd. This is called the "parity" of the puzzle. Then we find the sum of total number of inversions and find whether it is even or odd, this is said to be the parity of initial state. If both the puzzle parity and initial state parity are same, that means the puzzle is solvable, otherwise it is not solvable.

Comparison of different heuristics used:

Figure_1

robo_algorithms's People

Contributors

ritesh27gole avatar

Watchers

 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.