Coder Social home page Coder Social logo

motionapp's Introduction

MotionApp

This is a pythonized version of the Java MotionApplet version 1.3. The original Java applet version was created by Michael Gauland. Later additions have been made by Jing YE, and Tom Brown. It illustrates different algorithms for computing the path of a small wheeled robot.

From the MotionApplet documentation:

The first method models its true path which is shown as a set of parallel lines (green, blue, and red). A series of blue triangles shows intermediate positions. The second method computes an an approximated path using a simplified technique. The results of the approximation method are shown in the gray area that shadows the true path. In the text area in the panel on the right of the display, columns marked "DR" and "DR2" show the results of two slightly different ways of performing the approximations.

Working on a positioning algorithm for a two-wheeled robot, I came across the MotionApplet. Although outdated, I liked the simplicity and demonstrative power of it. As often in life, one action led to another. Hence this conversion into Python code.

Code Conversion

The Java code has been refactored into Python with the aid of java2python.

For reference, the variable names used in the original applet have not been changed. Having a great preference for underscore names, this results in a mixed naming style of camel case and underscores.

The Tkinter GUI has been created with PAGE.

Screenshot

Dependencies

  • python3
  • pypubsub
  • tkinter

Run

$ cd MotionApp
$ python3 motionapp.py

Related links

motionapp's People

Contributors

blokkendoos avatar

Stargazers

Gary Lucas avatar

Watchers

 avatar James Cloos 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.