Code Monkey home page Code Monkey logo

rrt_trees's Introduction

RRT_Trees

This is an original implementation of the rapidly expanding random trees algorithm.

NOTE:

  1. The obstacle detection and avoidance function needs work.
  2. Need to plot the final points.

A function by function summary of the code.

  • Defined a class named RRT:

execute- this function is used for compiling all the other functions of the algorithm together.

  1. Initialized all the important variables (will keep on doing so as and when I remember them)

  2. Sampled a random node between 10 and 90 of size1 and added it to the mock_list

  3. A function to evaluate the sampled node(s) and print a message that says if they are within the bounds or not.

  4. This is the collision avoidance function.

  5. This function is used to find the distance of the node with the designated start node(which changes to the next nearest node in the next iteration).

    • It appends the distance of the nodes in a list defined called dist-list
  6. The nearest_node function is used to find out the minimum distance in the list [ a secondary question is that whether I needed to implement an altogether different function for it.

  • I instantiated the class RRT and then used the rrt.execute function.

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.