Giter VIP home page Giter VIP logo

Comments (2)

tomstewart89 avatar tomstewart89 commented on July 1, 2024

Hey @yaxu, thanks for your interest in my library! I'd be happy to give you some pointers.

Firstly, what you're looking for is indeed inverse kinematics which unfortunately is a little bit trickier than inverse dynamics. You might be able to come up with an closed form solution but that really depends on the way you set up your mechanism and how many servos you're using.

Failing that, you can use a numeric solution where you use the Newton-Raphson method (or something similar) to solve for a set of joint angles that minimise the distance between the end effector position and your target position. I actually had some code for that in this repo a while ago, you can find it here - it's pretty inefficient and it won't compile with the latest version of this library but it might be a handy example. This medium article seems to describe the same thing so you can check that out for a more detailed explanation.

On the other hand if you want to go full-commit then I'd really recommend reading chapter 6 of this book: Modern Robotics
Mechanics, Planning, and Control
, it involves a bit of math but it's a great read.

Hope that helps!

from geometry.

yaxu avatar yaxu commented on July 1, 2024

Thanks for the pointers @tomstewart89, I'll see what I can wrap my head around!

from geometry.

Related Issues (12)

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.