Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

LAB 7 TRAJECTORY PLANNING OBJECTIVE Emulate the movement of a robotic device from calculated results using forward kinematics Estimate the position of individual joints

LAB 7 TRAJECTORY PLANNING OBJECTIVE   Emulate the movement of a robotic device from calculated results using
= line, both and 2 need to be divided into several segments. If we start from the lowest point the robot can
3. 4. Use the following code with the calculated results to simulate the angular movement of the two joints.
thetal theta12: (theta13-theta12) /20: theta13; theta2 theta22: (theta23-theta22) /20: theta23; = for k=1:20

LAB 7 TRAJECTORY PLANNING OBJECTIVE Emulate the movement of a robotic device from calculated results using forward kinematics Estimate the position of individual joints from the calculated results using inverse kinematics Generate basic trajectories for a two-link robotic device Revise the trajectories for different movements with the consideration of configuration space INTRODUCTION In the previous few labs, we have learned basic simulation technique of 2-D robotic systems. In this lab, we will plan the movements of individual joints for specific trajectories. To plan the trajectories of individual joints, both forward and inverse kinematics need to be adopted. One important issue, you need to keep in mind is that the linear movement is not linear increment due to the rotational movement. To plan the actual trajectory as close as the desired one, the increments of each joint need to be carefully planned to approximate the trajectory. In this lab, we will schedule the rotational movement of the two joints of a 2D robot so that the end effector of the robot is moving along a straight line. To design the trajectory, geometric configuration and inverse kinematic analysis are required. Assume that the two-link robot is aligned as the following configuration (Fig. 1). In order to have the end effector of the robot moving along the specific line, we need to figure out the angles of and 2. As discussed in the lecture, 30 and 2 can have different configuration while keeping the arm located at the identical location. Thus, inverse kinematics is required to determine and 2. y X a1 0 Fig. 1. Configuration of a two-link robot moving along a straight line. 02 X In this lab, we will focus on robot with specific lengths, a = 3 ft and a2 = 2 ft, of both links. The robot needs to move along a vertical line x = 3 ft. To move the endpoint along the straight = line, both and 2 need to be divided into several segments. If we start from the lowest point the robot can reach, the angles are 53 and 2 = 0. We can specify the orientation of the robot to be shown as Figure 2. Then the endpoint of the robot will still be located along the same straight line. PROCEDURE y I. 3 ft 0 = 53 1. 3 ft 2. 2 ft 8 = 0 X 3 ft 3 ft 0 2 ft 1 ft Fig. 2. Movement both joints from one position to another. The angles of and can be solved geometrically. With this specific orientation of individual links, it is clear that is equal to . We can also drive = 70.5. Now, we can start our simulation. 0 Keep in mind that the endpoint must move along a straight line. Poor scheduling can yield curvilinear trajectory. If you find the movement is not a straight line, you need to divide the segments into smaller ones so that the trajectory can be truly linear. If smaller segment is required, calculate and 2 accordingly using inverse kinematics. 3 ft X In this lab, we will use the inverse kinematics to identify two functions to generate an animation of a two-link robot. As mentioned in the previous section, the lengths of the two links are a = 3 ft and a2 = 2 ft. The desired position of the endpoint of the two-link robot needs to move from 3i - 4j to 3i + 4j as a straight line. Single Movement from One Position to another Position Set the orientation of the robot at start point as a straight line to locate endpoint at 3i - 4j. With this configuration, calculate the angles of and 2. In the code listed in the next page, replace the value of the tall with and theta21 with . These two angles are the starting points. Calculate the angles of and 2 with the second link lies horizontally. Keep in mind that the endpoint of the two-link mechanism must be located at x = 3 ft. In the code listed in the next page, replace the value of theta12 with and theta22 with . These two angles are the starting points. 3. 4. Use the following code with the calculated results to simulate the angular movement of the two joints. Observe the movement of the endpoint of the mechanism. clear; clc; L1 = 3; L2 = 2; thetall p0 = [0 0 0]; thetal theta2 = framemax = 20; M-moviein (framemax) ; set (gcf, 'Position', [100 100 640 480]); thetall: (theta12-theta11) /20: theta12; theta21: (theta 22-theta21) /20: theta22; for k= 1:20 end T1 Robot Conv (thetal (k), 0, L1, 0); T2 Robot Conv (theta2 (k), 0, L2, 0); = % Forward kinematics po [0 0 0]; pl Robot Position (T1); p2 Robot Position (T1 T2); figure (1) X = [p0 (1) p1 (1) p2 (1) ]; Y [p0 (2) pl (2) p2 (2) ] ; plot (X, Y, '0-') axis ([-L1-L2 L1+L2-L1-L2 L1+L2]); grid M (k) = getframe (gcf); Assignment: Does the endpoint move along a straightline? Describe the movement in your report. II. Two-Step Movement 1. In some cases, the movement does not fulfill the criterion. You will need to divide the whole stroke into more and smaller segments. 2. Use inverse kinematics to derive if is given. Position 1 53 0 Q Position 2 Position 3 70.5 60 3. Modify the code in the previous part by adding the following code to the program. Change all the angles accordingly. You need to add one additional for loop to move from position 2 to position 3. thetal theta12: (theta13-theta12) /20: theta13; theta2 theta22: (theta23-theta22) /20: theta23; = for k=1:20 end T1 Robot Conv (thetal (k), 0, L1, 0); T2 RobotConv (theta2 (k), 0, L2, 0); % Forward kinematics. po = [0 0 0]; pl = Robot Position (T1); p2 Robot Position (T1 T2); figure (1) X= [p0 (1) pl (1) p2 (1)]; Y [p0 (2) p1 (2) p2 (2) ]; plot (X, Y, '0') axis ([-L1-L2 L1+L2 -L1-L2 L1+L2]); grid M (K) = getframe (gcf); 4. Observe the animation of the 2-link robot. Does the movement of the endpoint approximate better to a straight line? III. Path Planning for the Whole Stroke 1. In this part, you need to plan the trajectory from 3i 4j to 3i + 4j as a straight line. Generate a table with all the planned angles. 2. Write the code and simulate the movement of the two-link mechanism. DELIVERABLE You need to finish a small project. Write a MATLAB code generate the animation with the designed angles. Write a Lab report about this lab. You need to include you code and discussion of each assignment in the report.

Step by Step Solution

3.48 Rating (155 Votes )

There are 3 Steps involved in it

Step: 1

Function to convert joint angles to homogeneous transformation matrix function T RobotConvtheta d a alpha T costheta sinthetacosalpha sinthetasinalpha ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

A First Course In Probability

Authors: Sheldon Ross

9th Edition

978-9332519077, 9332519072

More Books

Students also viewed these Computer Engineering questions