Giter VIP home page Giter VIP logo

astar-algorithm-for-a-mobile-robot's Introduction

Description

Implementation of A* Algorithm to find a path between start and end point on a given map for a robot (radius = user input; clearance = 10 mm). Checks the feasibility of all inputs/outputs (if user gives start and goal nodes that are in the obstacle space they will be informed by a message and they should try again). Code outputs an animation/video of optimal path generation between start and goal point on the map. It shows both the node exploration as well as the optimal path generated.

Dependencies

Plugin
heapq
numpy
cv2
math

Instructions to run

Clone or download the project repository and open the folder, Open terminal in the project folder and type below command:

python a_star_algo.py

or

python3 a_star_algo.py

Terminal asks for user input for step size, radius, start and goal location with orientation: Input step size as shown in below fashion, step_size

Enter the step size of the robot: 5

Input radius as shown in below fashion, radius

Enter the radius of the robot: 5

Input start location as shown in below fashion, x-coordinate space y-coordinate space theta

Enter start location point and orientation[x,y,theta](eg: if (10,10,30), then enter: 10 10 30): 10 10 60

Input goal location as shown in below fashion, x-coordinate space y-coordinate space theta

Enter goal location point and orientation[x,y,theta](eg: if (115,185,60), then enter: 350 220 60

Output

Test case 1: Step size: 5, Radius: 5, Start location: 10 10 60, Goal location: 350 220 60, Visualization video: Test case 1. Optimal_path_testcase1

Test case 2: Step size: 10, Radius: 5, Start location: 10 10 0, Goal location: 100 240 0, Visualization video: Test case 2. Optimal_path_testcase2

astar-algorithm-for-a-mobile-robot's People

Contributors

roniepatil 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.