In this part, a MATLAB programming technique will be introduced to generate the animation of the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In this part, a MATLAB programming technique will be introduced to generate the animation of the configuration from the previous part of the lab. 1. Divide , &, and length of d3 into 100 steps. That is: thetal = 0: angle1/100: anglel; theta2 = 0:angle2/100: angle2; L = L1: (L2-L1)/100: L2; 2. Add the following code in your m-file (modify the code according to your variable names and note that you'll need to use functions from the previous lab in the MATLAB directory so they can be called and used by your new program). framemax = 100; M-moviein (framemax); set (gcf, 'Position', [100 100 640 480]); for k= 1: framemax end T1 RobotConv (thetal (k), dl, 0, all); T2=RobotConv (theta2 (k), d2, 0, al2); T3 Robot Conv (0, L(k), 0, 0); po [0 0 0]; pl Robot Position (T1); p2 Robot Position (T1*T2); p3 Robot Position (T1*T2*T3); figure (1) x= [p0 (1) pl (1) p2 (1) p3 (1)]; [p0 (2) p1 (2) p2 (2) p3 (2)]; [p0 (3) pl (3) p2 (3) p3 (3)]; subplot (221), plot 3 (X, Y, z, '0'). axis ([-10 10 -10 10 0 10]); grid Y z subplot (222), plot (X, Y, 'o-') axis ([-10 10 -10 101); title ('X-Y') grid subplot (223), plot (X, Z, 'o-¹) axis ([-10 10 0 10]); title ('X-Z¹) grid subplot (224), plot (Y, Z, '0-') axis ([-10 10 0 10]); title('Y-Z') grid M (k)= getframe (gof); 3. Assignment: Change the angle of a to be 360° and the angle of 2 to be 180°. Observe the animation of the three-link robot. Does the simulation results move as you expect? Once this part is done, change the numbers to the value you prefer and observe how it moves. Do you observe any physical limits of this robotic mechanism? In this part, a MATLAB programming technique will be introduced to generate the animation of the configuration from the previous part of the lab. 1. Divide , &, and length of d3 into 100 steps. That is: thetal = 0: angle1/100: anglel; theta2 = 0:angle2/100: angle2; L = L1: (L2-L1)/100: L2; 2. Add the following code in your m-file (modify the code according to your variable names and note that you'll need to use functions from the previous lab in the MATLAB directory so they can be called and used by your new program). framemax = 100; M-moviein (framemax); set (gcf, 'Position', [100 100 640 480]); for k= 1: framemax end T1 RobotConv (thetal (k), dl, 0, all); T2=RobotConv (theta2 (k), d2, 0, al2); T3 Robot Conv (0, L(k), 0, 0); po [0 0 0]; pl Robot Position (T1); p2 Robot Position (T1*T2); p3 Robot Position (T1*T2*T3); figure (1) x= [p0 (1) pl (1) p2 (1) p3 (1)]; [p0 (2) p1 (2) p2 (2) p3 (2)]; [p0 (3) pl (3) p2 (3) p3 (3)]; subplot (221), plot 3 (X, Y, z, '0'). axis ([-10 10 -10 10 0 10]); grid Y z subplot (222), plot (X, Y, 'o-') axis ([-10 10 -10 101); title ('X-Y') grid subplot (223), plot (X, Z, 'o-¹) axis ([-10 10 0 10]); title ('X-Z¹) grid subplot (224), plot (Y, Z, '0-') axis ([-10 10 0 10]); title('Y-Z') grid M (k)= getframe (gof); 3. Assignment: Change the angle of a to be 360° and the angle of 2 to be 180°. Observe the animation of the three-link robot. Does the simulation results move as you expect? Once this part is done, change the numbers to the value you prefer and observe how it moves. Do you observe any physical limits of this robotic mechanism?
Expert Answer:
Answer rating: 100% (QA)
Here is the code to generate an animation of the 3R robot configuration Define variable rang... View the full answer
Related Book For
Management Accounting Information for Decision-Making and Strategy Execution
ISBN: 978-0137024971
6th Edition
Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young
Posted Date:
Students also viewed these general management questions
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Lider Balance General 31 Diciembre Ao 2020 ($ miles) ACTIVOS 2020 Circulante Efectivo $10,000.0 Cuentas por Cobrar $25,000.00 Inventarios Materia Prima $4,500.00 Productos en Proceso $4,500.00...
-
A limited partnership: Multiple Choice has an unlimited life. can opt to be taxed as a corporation. terminates at the death of any one limited partner. has at least one partner who has unlimited...
-
Association of Individual Investors (AAII) statistics on stock screeners, Exercise 2.44 (p. 71). Annualized percentage return on investment (as compared to the Standard & Poor's 500 Index) for 13...
-
Trish Foods, Inc. had pretax ordinary corporate income during 2012 of $2.7 million. In addition during the year, Trish Foods sold a group of non-depreciable business assets (in the 5-year...
-
Football and Cognitive Percentile Exercise 2.143 on page 102 introduces a study that examines several variables on collegiate football players, including the variable Years, which is number of years...
-
In October, McEnroe Company reports 21,000 actual direct labor hours, and it incurs $115,000 of manufacturing overhead costs. Standard hours allowed for the work done is 20,000 hours. The...
-
. How would a person create and claim value in leadership ability via the use of resource allocation theory and constrained utility maximization?
-
On January 1, the Wiek Company contracted with its president, T. Mae, to make a single deposit immediately to establish a fund with a trustee that pays Mae $40,000 per year for each of the three...
-
CBD Corporation, a business that is currently operating as the biggest media in the country is currently evaluating two possible TV shows for its primetime. The show is planned to be played from...
-
You are driving your car through a roundabout that has a radius of 9.0 m. Your physics textbook is lying on the seat next to you. What is the fastest speed at which you can go around the curve...
-
The lightweight wheel on a road bike has a moment of inertia of 0.097 kg m 2 . A mechanic, checking the alignment of the wheel, gives it a quick spin; it completes 5 rotations in 2.0 s. To bring the...
-
A typical jar that has been tightened to a reasonable degree requires 2.0 N m to open. If you grab a 7.0-cm-diameter jar lid with one hand so that your thumb and fingers exert equal magnitude forces...
-
A man in a barrel walking competition is moving along smoothly, with his barrel moving forward at 1.0 m/s. a. Think about how the man moves his legs. Is he walking forward or backward? b. From the...
-
In the Wall of Death carnival attraction, stunt motorcyclists ride around the inside of a large, 10-m-diameter wooden cylinder that has vertical walls. The coefficient of static friction between the...
-
In November 2017, you were hired as a management consultant of Phil. Corporation. In December of that year, one of your colleagues visited your office to ask for your advice regarding her plan to...
-
Saccharin is an artificial sweetener that is used in diet beverages. In order for it to be metabolized by the body, it must pass into cells. Below are shown the two forms of saccharin. Saccharin has...
-
Sherman Company manufactures and sells small pumps made to customer specifications. It has two service departments and two production departments. Data on current year operations follow: Management...
-
Explain the benefits of using a total-lifecycle costing approach to product costing.
-
Relevant and sunk costs Don Baxter's 6-year-old Impala requires repairs estimated at $5,400 to make it roadworthy again. His friend Aaron Bloom suggested that he buy a 6-year-old Ford Escort instead...
-
The accounting records of the Happy Tickers Sports and Social Club are in a mess. You manage to find the following information to help you prepare the accounts for the year to 31 December 2015. (1)...
-
The Milham Theatre Club has been in existence for a number of years. Members pay an annual subscription of 15 which entitles them to join trips to professional productions at a reduced rate. On 1...
-
Place a tick in the appropriate column for each of the following cost items: (a) Purchases of raw materials (b) Direct wages (c) General factory expenses (d) Depreciation of machinery (e) Commission...
Study smarter with the SolutionInn App