Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 2 (of 2) The diagram below is a simple schematic of a two-link robot arm. Xg and Yg are the coordinates of the gripper

image text in transcribed

Task 2 (of 2) The diagram below is a simple schematic of a two-link robot arm. Xg and Yg are the coordinates of the gripper for the robot. L1 and L2 are the lengths of the links and 01 and 42 are the link angles. We will assume that 01 can range from 0 to 90 and 02 can vary from 0 to 180. (Xg,yo) 4 e, (x;,y;) (0,0) xg = L cos(01) + L2 cos((2 + 02) yg = L sin(0) + L2 sin(@. + ) Create a plot of possible gripper positions (Xg and Yg) by doing the following in a script file: Prompt the user for the link lengths (L1 and L2) must be valid (positive) Create a vector for 01 that ranges from 0 to 90 with an increment of 5. Create a vector for 02 that ranges from 0 to 180 with an increment of 5. ENED 1120 - HW 5.1 - Spring 2021 Use a nested loop to determine the coordinates of the gripper, Xg and Yg, for every combination of angles in your two angle vectors. Store these values in matrices. Hint: Xg(k,n) would be the value for Xg when you plug the kth entry of your 01 vector and the nt entry of your 02 vector into the equation for Xg. Remember these angles are in degrees

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Step: 3

blur-text-image

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

Discuss the techniques of sales forecasting.

Answered: 1 week ago

Question

Write short notes on Marketing mix.

Answered: 1 week ago