RAS455 9 16
Overview
The class derives forward and inverse kinematics for a three-joint R-perpendicular-R-parallel-R robot, using coordinate-frame rules, homogeneous transformations, and MATLAB symbolic computation. It also applies the workflow to a two-revolute-joint robot, demonstrates how link lengths and joint angles determine end-effector position, and assigns a prior R-perpendicular-P robot as a MATLAB quiz problem.
Key takeaways
- For the R-perpendicular-R-parallel-R example, forward kinematics give Px = cos(θ1)[a2 cos(θ2) + a3 cos(θ2 + θ3)], Py = sin(θ1)[a2 cos(θ2) + a3 cos(θ2 + θ3)], and Pz = a1 + a2 sin(θ2) + a3 sin(θ2 + θ3).
- Coordinate-frame placement determines each homogeneous transform: joint axes define Z, each subsequent X intersects and is perpendicular to the preceding Z, and aligned neighboring frames use an identity projection matrix.
- A homogeneous transformation's upper-left 3×3 block describes orientation, while the first three entries of its final column give position in the reference frame.
- MATLAB's syms, simplify, subs, and vpa functions support symbolic forward-kinematics derivation and numeric evaluation without hand-expanding long matrix products.
- Forward kinematics gives a position for specified joint angles, whereas inverse kinematics can yield multiple candidates or no solution; candidates must be checked against physical reachability, collisions, and joint limits.
- For a1 = 135 mm, a2 = 165 mm, a3 = 170 mm and angles (0°, 35°, −60°), the demonstrated end-effector position is approximately (289.23, 0, 157.7) mm.
Chapters
- The class focuses on forward and inverse kinematics for a robot with three revolute joints.
- The example is labeled R-perpendicular-R-parallel-R: joint 1 is perpendicular to joint 2, while joints 2 and 3 are parallel.
- A kinematic diagram represents a robot as joints connected by links, simplifying its physical construction.
- The end effector is attached at the last frame and may hold a gripper, pen holder, or soft gripper.
- The first coordinate-frame rule places each Z-axis along its corresponding joint axis.
- The example labels the joint axes Z0, Z1, and Z2, with Z3 assigned to the end-effector frame despite there being no fourth joint.
- For each frame after the base, Xn must intersect and be perpendicular to Z(n−1).
- Because no preceding joint axis exists for frame 0, X0 can be chosen conveniently; the class selects one direction for the diagram.
- X1, X2, and X3 are selected to satisfy the perpendicular-and-intersecting rule for the preceding Z-axis.
- The right-hand rule determines each remaining Y-axis; the selected frames 1, 2, and 3 are aligned with one another.
- The diagram assigns link distances a1, a2, and a3 between successive frame origins.
- A rotation matrix must be combined with a projection matrix; aligned frames produce an identity projection matrix, while frames 0 and 1 require a non-identity projection.
- The joint variables are θ1, θ2, and θ3, with positive directions established using the right-hand rule.
- Because revolute-joint rotation occurs about Z, each local rotation uses the standard Z-axis sine-and-cosine matrix.
- The projection of frame 1 onto frame 0 accounts for their differing axis directions before forming R₀₁.
- The homogeneous transformation H₀₁ combines that rotation with translation [0, 0, a1], placing frame 1 a1 units along Z0.
- Frames 1 and 2 are aligned, so their projection matrix is the identity and the rotation remains the standard Z-axis rotation by θ2.
- The link offset resolves into a2 cos(θ2) along X1 and a2 sin(θ2) along Y1, with zero offset along Z1.
- Frames 2 and 3 are also aligned, making their projection matrix an identity matrix.
- The final link offset is expressed as a3 cos(θ3) along X2 and a3 sin(θ3) along Y2, with no Z2 displacement.
- The end effector is located at the origin of frame 3, so its pose relative to the base is H₀₃.
- The forward-kinematics transform is the product H₀₁H₁₂H₂₃; the class begins multiplying these 4×4 matrices by hand.
- The class switches to MATLAB because manually multiplying the three 4×4 transformations becomes cumbersome.
- The code defines H₀₁, H₁₂, and H₂₃ using symbolic angles θ1–θ3 and link lengths a1–a3.
- MATLAB's syms command keeps a1, a2, a3, t1, t2, and t3 as symbolic variables rather than assigning numeric values.
- Multiplying the transforms and applying simplify reduces the symbolic expression to a more readable end-effector pose.
- The upper-left 3×3 block of H₀₃ represents end-effector orientation relative to frame 0.
- The last column gives position: its first three entries are the X, Y, and Z coordinates of frame 3's origin.
- The parallel axes of joints 2 and 3 make their planar link contributions depend on θ2 and θ2 + θ3.
- Joint 1 rotates the planar arm around the base, producing the cosine(θ1) and sine(θ1) factors in the X and Y positions.
- The example uses link lengths a1 = 135 mm, a2 = 165 mm, and a3 = 170 mm.
- Joint angles are θ1 = 0°, θ2 = 35°, and θ3 = −60°; MATLAB's trigonometric functions require angles in radians.
- The position equations are evaluated by substituting the three angles and link lengths into the symbolic expressions.
- The expected result is approximately Px = 289.23 mm, Py = 0 mm, and Pz = 157.7 mm.
- Inverse kinematics starts with a target position Px, Py, Pz and seeks the corresponding θ1, θ2, and θ3.
- The position equations contain sines and cosines of the unknown angles, making them nonlinear transcendental equations rather than a simple linear system.
- The MATLAB solve command is applied to the three position equations with θ1, θ2, and θ3 as unknowns.
- The demonstration reuses the forward-kinematics target position and converts MATLAB's radian solutions to degrees for comparison.
- For the demonstrated target, MATLAB returns four candidate inverse-kinematics solutions.
- A mathematical solution may be mechanically impossible because the robot could collide with itself or exceed its joint limits; an if/else check should select a physically valid configuration.
- The class returns to an earlier R-parallel-R example with two revolute joints and link dimensions a1, a2, a3, and a4.
- Its forward kinematics are obtained by multiplying H₀₁ by H₁₂; the resulting last-column entries provide Px, Py, and Pz.
- MATLAB is used to verify the two-joint result against the expression previously derived by hand.
- A numerical example assigns a1 = 100, a2 = 100, a3 = 135, and a4 = 165, with θ1 = 0° and θ2 = 35°.
- The class checks each homogeneous transformation and symbolic substitution when students' outputs fail to match.
- The example substitutes both link dimensions and joint angles before calculating Px, Py, and Pz; the expected position is approximately (235, 94, 235) in the stated units.
- After completing the two-joint forward calculation, students are asked to implement inverse kinematics in MATLAB.
- The class troubleshoots syntax and debugging errors while students use the forward result as the target for recovering joint angles.
- The closing exercise revisits an R-perpendicular-P robot with a revolute angle θ and prismatic displacement d.
- Students are asked to use θ = 45°, d = 100 mm, a1 = 100 mm, and a2 = 100 mm to compute Px, Py, and Pz, then recover the joint variables through inverse kinematics.
Transcript excerpt
0:02 Welcome to robotics. In today's class, we are going to spend time on solving three degree of freedom robots. We kind of looked at how to draw the chynatic diagram. We also looked at how to analyze simple robots. We also looked at the four rules and the exceptions. So first and foremost I want to give you a very simple robot and that's let's assume that robot has three revolute joints. That robot has three revolute joints. Now you have used these robots before.
0:51 So can someone tell me that how many joints does this robot have? You have one the first joint then you have a second joint and you have a third joint. So this robot has the first revolute joint. It has the second revolute joint and it has the third revolute joint. So this robot is our perpendicular to R, parall to R because please note that the first revolute joint, the axis of the first revolute joint is perpendicular, vertical, axis of the second revolute joint is horizontal is perpendicular
1:39 and the axis of the third revolute joint is parallel the second revolute joint. So this robot that you have in front of you is called R perpendicular R parallel R robot. The first revolute joint is perpendicular to the second revolute joint and the third revolute joint is parallel to the second revolute joint. Everyone understood this? Now this is the physical robot. But to solve this robot to understand its forward and inverse chynatics we have to draw something called as the chyntic diagram. What is a chyntic
2:30 diagram? Chynytic diagram is the simple representation of the joints and the links of the robot. If you look at the physical robot, it may look different but chyntic diagram would simplify physical robot as some joints and
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, ssredkar.