GithubHelp home page GithubHelp logo

inverse_kinematics's Introduction

Inverse Kinematics

  1. Introduction
  2. Algorithm
  3. The code
  4. Change log

Introduction

Kinematics is the study of motion without considering the cause of the motion, such as forces and torques. Inverse kinematics (IK) is the use of kinematic equations to determine the motion of a robot to reach a desired position. For example, to perform automated apple picking, a robotic arm needs precise motion from an initial position to a desired position between apples and manufacturing machines. The grasping end of a robot arm is designated as the end-effector. The robot configuration is a list of segments positions that are within the position limits of the robot model and do not violate any constraints the robot has.

Given the desired robot’s end-effector positions, inverse kinematics can determine an appropriate segment configuration for which the end-effectors move to the target pose.

Addapted from MathWorks

Algorithm

For each Segment of the Tentacle do :

  • make Segment point towards the target
  • set Point a so that Point b is on the target
  • set Point b based on Point a
  • set Point a to be the target for next segment

In the end, if there is a base, shift the hole Tentacle back to its base and proceed to the next frame of animation.

The code

All the code is written using the Engine library and a personnal Vector class. The Tentacle object is basically an array of Segment. The Ball object is just a fancy target for the tentacle class. As always, the main file contains the core draw loop.

Change log

  1. v0.1 : a first Segment follows the mouse
  2. v1.0 : Tentacle class
  3. v1.1 : implementation of a ball object
  4. v2.0 : use of the Engine renderer
  5. v2.1 : refractor
  6. v2.2 : use of the phoenyx lib to render

inverse_kinematics's People

Contributors

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