GithubHelp home page GithubHelp logo

twobarlinkage's Introduction

Two Bar Linkage Kinematics and Path Planning

The repository contains c++ implementation of a two bar linkage with 2 DOF.

Overview

A two bar linkage is an interesting starting point for understanding forward and inverse kinematics. The chain has two degress of freedom which is aldo evident from the fact that you can independentl control both the joint angles for this planar assembly.

I have also added the path planning feature to this chain. The path planner (taken from daancode) implmenets A* search algorithm which I use to find the path the chain should take to move from a given starting poition to given target position.

There is also an option to add obstacles and the path planner should plan a path aroound those obstacles. Please see src/main.cpp for usage examples.

The Path Planning can be done in two ways:

  • Configuration space i.e. [0, 2 Pi] for each of the angles
  • Euclidian Space i.e [-(L1 + l2), L1 + l2] for both X and Y coordinate of the end effector

The TwoBarLinkage class implements both these approaches. One could visualize the outputs from both these approaches to understand the difference.

Next Scope:

  • Add visualizations
  • Allow other obstacle shapes
  • Implement a custom planner optimized for C Space path planning
  • Add a Command Line Interface

Native

Requrements: g++ (build essentials), cmake, git

To build:

    mkdir build
    cd build && cmake ..
    make
    cd ..

To run the example:

    cd bin
    ./TwoBarLinkage

Docker

To build:

    docker build -t two-bar-linkage . 

To run the example:

    docker run -t two-bar-linkage > output.txt 

Please look at src/main.cpp to understand how to use the TwoBarLinkage functions

Acknowledgements

twobarlinkage's People

Watchers

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