Coder Social home page Coder Social logo

robot-collision's Introduction

2D Reactive Navigation

Worcester Polytechnic Institute
RBE 595: Advanced Robot Navigaton
Professor Carlos Morato
Spring 2016

Joseph McMahon
January 27, 2016

This is a 2D simulation of a robot randomly exploring a map. It has a collision threshold for the edge of the map and the three obstacles. Use the buttons below to toggle the robot's path, pause, reset, or record a video. To view streaming values, open your browser's JavaScript console.

The simluation is hosted on GitHub pages here: https://jmcmahon443.github.io/robot-collision. The code can be viewed on my public GitHub page: https://github.com/jmcmahon443/robot-collision.

The EaselJS framework was used to draw on the canvas, and create timed events. An open source Javascript script framework was used to record the screen https://github.com/spite/ccapture.js/.

The random walk adjusts the robot's angular acceleration and moves the robot forward. You can see this by resetin the simulation and using the path tracking - the robot takes different paths.

This program has the following main sections:

1.) CONSTANTS

2.) GLOBAL VARIABLES

3.) INITIALIZATIONS

4.) FUNCTIONS

5.) UPDATE EVENT

6.) BUTTONS

Future work

  • Different types of simple navigation: straight line, random turns (cw, ccw, both)
  • Scoreboard for map exploration percentage
  • Path planning
  • SLAM algorithms

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.