Comments (2)
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.
Thanks for the pointers @tomstewart89, I'll see what I can wrap my head around!
from geometry.
Related Issues (12)
- compile error : expected template-name before '<' token HOT 3
- ReadMe Images
- Code error in Geometry? HOT 8
- Graph example doesn't compile HOT 1
- Compatibility with Basic LinearAlgebra 4.x HOT 1
- to Euler Angles HOT 2
- Is it LHS or RHS coordinate system? HOT 1
- Missing license HOT 2
- Compiling Geometry gives template errors with Matrix HOT 2
- Transformation print method does not print Point HOT 1
- Issues with DUE HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geometry.