Code Monkey home page Code Monkey logo

planar_arm's Introduction

planar_arm

C++ library for 3-link planar arm. Implements kinematics, inverse kinematics, collision detection, and path planning (bidirectional RRT with shortcutting).

Build and run on Linux

Install SFML

sudo apt-get install libsfml-dev

Clone repository

git clone https://github.com/rsandzimier/planar_arm.git
cd planar_arm

Build with cmake (3.16.3 or later. Note: Earlier versions may work, but have not been tested. Change version in CMakeLists.txt)

cmake -B build
cmake --build build

Run demo

./build/demo

Demo

Demo options

There are 3 demos provided: RRT demo, sinusoid demo, and circle demo. By default, ./build/demo only runs the RRT demo. Optionally use command line arguments --rrt, --sinusoid, and --circle to run the respective demo. For example, ./build/demo --sinusoid to run the sinusoid demo.

RRT Demo

Creates an environment with a 3-link planar arm and obstacles and plans a collision-free path between two arm configurations using bidirectional RRT (with shortcutting). The planned path is then displayed in an animation. Use option --rrt when running ./build/demo.

Sinusoid Demo

Moves each joint of a planar arm as a sinusoid and displays an animation of the trajectory. Use option --sinusoid when running ./build/demo.

Circle Demo

Moves the end effector on a circular trajectory and displays an animation of the trajectory. Uses inverse kinematics to calculate joint positions at each time step. Use option --circle when running ./build/demo.

Examples from RRT demo

planar_arm's People

Contributors

rsandzimier avatar

Watchers

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