2_link_kinematics
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
2_link_kinematics [2018/09/27 00:39] – [Numerical Simulation - MatLab] ntorresreyes | 2_link_kinematics [2018/09/27 01:12] (current) – [Graphical Simulation] ntorresreyes | ||
---|---|---|---|
Line 293: | Line 293: | ||
==== Graphical Simulation ==== | ==== Graphical Simulation ==== | ||
\\ | \\ | ||
- | Matlab can be used to produce a graphical simulation of the 2-link arm mechanism for a given angle. | + | Matlab can be used to produce a graphical simulation of the 2-link arm mechanism for a given angle. Many of these simulations are based on the [[http:// |
+ | \\ | ||
+ | \\ | ||
+ | The following code can be used to model a planar 2-link arm. Many of the functions behind the arm use the same theory and math covered previously in the tutorial. | ||
\\ | \\ | ||
\\ | \\ | ||
< | < | ||
+ | >> | ||
+ | >> | ||
</ | </ | ||
+ | Which results in the following image: | ||
+ | \\ | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | Next, a translation can be made and inverse kinematics applied: | ||
+ | \\ | ||
+ | \\ | ||
+ | < | ||
+ | >> T = transl(1.5, | ||
+ | T = | ||
+ | 1.0000 | ||
+ | | ||
+ | | ||
+ | | ||
+ | >> q = p2.ikine(T,' | ||
+ | q = | ||
+ | | ||
+ | >> p2.plot(q) | ||
+ | </ | ||
+ | Which will plot the arm with the joint angles that will result in the end-effector having a position of (1.5, 0.5) | ||
+ | \\ | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
\\ | \\ | ||
+ | By changing the T matrix with different values of transl(x, | ||
==== Final Words ==== | ==== Final Words ==== | ||
\\ | \\ | ||
- | TBA | + | Hopefully, the information presented in this tutorial is enough for the reader to gain a good understanding of the background, theory, and practical knowledge required to apply this to a 2-link planar robot arm and possibly a 3-link planar arm. |
\\ | \\ | ||
\\ | \\ |
2_link_kinematics.1538033947.txt.gz · Last modified: 2018/09/27 00:39 by ntorresreyes