Question: Design and implement a planar robotic manipulator with a suitable degree of freedom to write characters {1, 3, 4, 5, 9, 0}. Input for the
Design and implement a planar robotic manipulator with a suitable degree of freedom to write characters {1, 3, 4, 5, 9, 0}. Input for the system is a character.
NOTE: code for the above question should be written in matlab only.
note:-This is a Sample I am showing the matlab code should come like this
clear all; clc; close all;
% theta kinematic: joint angle % d kinematic: link offset % a kinematic: link length % alpha kinematic: link twist
a1 = 15; a2 = 15; a3=15; L1 = Link('revolute','d',0, 'a',a1,'alpha',pi/2) L2 = Link('revolute','d',0, 'a',a2,'alpha',0) L3 = Link('revolute','d',0, 'a',a3,'alpha',-pi/2) Mipie = SerialLink([L1 L2 L3],'name', 'Mipie'); Mipie.teach shape = 10;
while shape ~= 0
clc; disp("Choose a shape that you would like Mipie to draw!"); disp("1. Square"); disp("2. Rectangle"); disp("3. A"); disp("4. H"); disp("5. L"); disp("6. T") disp("0. Exit, please :)"); shape = input("Enter your choice:");
switch shape case 1 side = input("Enter the side length:"); % if side>= a1+a2 % disp("Oops! Length must be << 20") % return % end draw_square(side,Mipie); case 2 l = input("Enter the length:"); b = input("Enter the breadth:"); draw_rectangle(l,b,Mipie); case 3 s = input("Enter length:"); draw_A(s, Mipie); case 4 s = input("Enter length:"); a = input("Enter length:"); draw_H(s,a, Mipie); case 5 s = input("Enter the length:"); draw_L(s, Mipie); case 6 s = input("Enter the length:"); draw_T(s, Mipie); case 0 return otherwise disp('Invalid choice! Try again.'); pause(2); end
end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
