Giter VIP home page Giter VIP logo

arm's Introduction

Goal

have a robotic arm you can hold and move around and it will keep the end of the arm still.

Uses a raspberry pi, a realsense t265 camera and pwm servo's.

Libraries

Dev

Install on Raspberry Pi

ended up just compiling on pi, ill leave the info on cross compilation here anyway for future me

https://deardevices.com/2019/04/18/how-to-crosscompile-raspi/

cmake for crosscompiling the pi cmake -D CMAKE_C_COMPILER=/opt/pi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -D CMAKE_CXX_COMPILER=/opt/pi/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ ..

cmake -DBUILD_EXAMPLES=false -DBUILD_GRAPHICAL_EXAMPLES=false ..

TODO: find good power supply, all phone chargers I tried result in undervoltage. can be checked with vcgencmd get_throttled. portable charger battery seems to be better but still reports undervoltages

compiling with -pg causes gpioInitalize to error with `sigHandler: Unhandled signal 27, terminating'

https://elinux.org/RPi_Low-level_peripherals

Modules:

  • kinematics: Initially used orocos kdl for the kinematics but decided to write it myself to learn. The forward kinematics work by calculating and then multiplying the transformation matricies of each joint. The inverse kinematics works by first getting a rough solution geometrically (rough beacuse it dosent support joint displacments in more than one axis) using a bit of trigonometry and the refining it iteratively with the forwards kinematics.

  • vision: Use an intel realsense T265 and apriltags to work out where it is and where the goal position is. Runs a seperate thread for reading from the realsense camera and for running the apriltags stuff.

  • arm: Does motion planning to smooth the servo's motion and then send the positions to the servo with pwm on the Pi's gpio pins.

  • bringup: tests arm and kinematics

arm's People

Contributors

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