HW2
pdf
keyboard_arrow_up
School
Drexel University *
*We aren’t endorsed by this school
Course
455
Subject
Mechanical Engineering
Date
Dec 6, 2023
Type
Pages
3
Uploaded by Ostree
MEM455 HW02
MATLAB FORWARD AND REVERSE DISPLACEMENT ANALYSIS
HW01 uses the RobotSketch toolbox to move the robot from pose1 to pose 2 using joint interpolation.
For this assignment the robot also moves from pose1 to pose2 but uses end-effector or Cartesian
interpolation. A different method has to be used for a second path where the end-effector rotates in a
circle. a
1
= 9.3cm, a
2
= 9.3cm, a
3
= 10.2cm.
1.
Make a copy of
demo_robot_serial.m
and rename it to
demo_robot_serial_HW02.m
and similarly make a copy of
demo_robot_serial_movie.m
and rename it to
demo_robot_serial_movie_HW02.m
(a)
The data files you will need should be referenced as:
dh_robot_data = ’data_RRR_lab_HW02’;
dh_movie_data = ’data_path12_movie_HW02’;
2.
Pose1 and pose2 (from HW01) are:
dh.t = [nan, 30, 45, 15, 0]*pi/180; %pose1
dh.t = [nan, 105, 45, -60, 0]*pi/180; %pose2
and all other parameters are the same as in
data_RRR_lab.m
3.
Write the Matlab function
dh = RRR_FDA(dh)
that calculates the end-effector location
dh.Xe_FDA=[x
e
y
e
φ
e
].
This is the Forward Displacement Analysis.
•
Test with the pose1 joint angles. Before proceeding visually check the results by
comparing with a pose1 figure.
4.
Write the Matlab function
dh = RRR_RDA(dh)
that calculates the joint angles
dh.t_RDA
= [nan,
θ
1
,
θ
2
,
θ
3
, 0]
using the end-effector location
dh.Xe
. This is the Reverse
Displacement Analysis.
•
Test by setting
dh.Xe
to
dh.Xe_FDA
found in 3.,
dh.elbowplus=1 (true)
, and
the same
dh.a
(link lengths). The values of
dh.t_RDA
should be the same (to within
roundoff) as the original pose1 joint angles
dh.Xe_FDA
. If not, you have an error
somewhere and need to fix before proceeding.
5.
It is desired to move the robot from pose1 to pose2 by simultaneously moving all joints to keep
the end- effector on a straight path with a constant orientation. Write a script
data_path12_movie_HW02.m
to generate the end-effector locations that move the robot
from [x
e
y
e
φ
e
]
0
to [x
e
y
e
φ
e
]
n
in n equal end-effector steps (giving n + 1 locations),
[࠵?
!
࠵?
!
∅
!
] = [࠵?
!
࠵?
!
∅
!
]
"
+
#
$
([࠵?
!
࠵?
!
∅
!
]
$
− [࠵?
!
࠵?
!
∅
!
]
"
), ࠵? = 0,1, … , ࠵?
• Use this script with
demo_robot_serial_movie_HW02.m
to animate the path. With the
trace on, export a copy of the trajectory as
path12.png
. For visual clarity you may want to
limit n to about 10. Also suggest you use an x − y view for to aid in analysis.
6.
Repeat for a second path by writing the script
data_circle_movie_HW02.m
where the
robot moves on a circle of radius r = 3 , always points to the center (x
c
,y
c
) = (3,3), has the starting
end-effector angle 0
◦
, and uses
dh.elbowplus=1
.
[࠵?
!
࠵?
!
∅
!
]
#
= 1࠵?
%
− ࠵? cos
2࠵?࠵?
࠵?
,
࠵?
%
− ࠵? sin
2࠵?࠵?
࠵?
,
2࠵?࠵?
࠵?
: , ࠵? = 0,1, … , ࠵?
7.
Submit the following:
(a) Program listings(MATLAB code).
RRR_FDA
,
RRR_RDA
,
data_path12_movie_HW02.m
and data_circle_movie_HW02.m.
Be sure to comment your work.
(b) Printout of the paths generated in 5 and 6. (Use x − y view.)
(c) A short explanation comparing the results with the corresponding ones of HW1.
Serial robot displacement analysis
1. For the RRP serial robot in the figure:
(a) Solve the forward displacement analysis
(b) Sketch another solution to the reverse displacement analysis.
2. The RPR serial robot in the figure has a
1
=a
3
=2. The end-effector location is x=2,y=4, and φ
e
=90
◦
.
(a) Determine the required joint configurations (revolute and prismatic) and show them on the figure.
(b) Sketch an alternative solution to the reverse displacement analysis and the actuator displacements
on your sketch.
(c) Determine condition(s) for a displacement singularity. If they do not exist, explain why.
3. In the study of planar robot types, why was the PPP serial robot was not studied.
4. It
is physically possible for a RRR serial robot to have 360
◦
rotation of all joints without the links
interfering. Sketch a figure that illustrates this and include any constraints on the dimensions if
necessary.
5. Sketch an RRR serial robot in a configuration where the reverse displacement analysis yields an
indeterminate joint angle solution. What special dimensions and/or joint angles are necessary? Hint:
think about displacement singularities.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
I want to run the SGP4 propagator for the ISS (ID = 25544) I got from spacetrack.org in MATLAB. I don't know where to get the inputs of the function. Where do I get the inFile and outFile that is mentioned in the following function.
% Purpose:
% This program shows how a Matlab program can call the Astrodynamic Standard libraries to propagate
% satellites to the requested time using SGP4 method.
%
% The program reads in user's input and output files. The program generates an
% ephemeris of position and velocity for each satellite read in. In addition, the program
% also generates other sets of orbital elements such as osculating Keplerian elements,
% mean Keplerian elements, latitude/longitude/height/pos, and nodal period/apogee/perigee/pos.
% Totally, the program prints results to five different output files.
%
%
% Usage: Sgp4Prop(inFile, outFile)
% inFile : File contains TLEs and 6P-Card (which controls start, stop times and step size)
% outFile : Base name for five output files
%…
arrow_forward
3. Use the second method of frame assignment, and find the Jacobian of the
following robot using the velocity propagation method (Ignore all theta related
offsets):
03
02 L2
01
Please answer the question precisely
and completely to use the second
method of frame assignment to find
the D-H table [alpha (i-1) , a (i-1) , d (i) ,
theta (i)], and find the jacobian matrix
using the velocity propagation method
arrow_forward
Solve the inverse kinematic problem for the following 6 DOF robot, using the method ofkinematic decouplingif it is known that its Denavit-Hartenberg parameters are as shown in the table inthe table
arrow_forward
How do I input this code into MATLAB to solve this problem? Thanks!
arrow_forward
Please solve the following by hand and without the use of AI. I am working to understand the step by step procedure of solving this problem so pleaase give a detailed step by step procedure, explaining each part as you go. Thank you!
arrow_forward
Please do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrow ideas from gpt, but please do not believe its answer.Very very grateful!
Please do not copy other's work,i will be very very grateful!!
arrow_forward
Solve the following question by hand and without the use of AI. Use detailed mathematical expressions to solve the problem and please do not use AI. Thank You!
arrow_forward
permanent-magnet (pm) genera x
Bb Blackboard Learn
L STAND-ALONE.mp4 - Google Dri x
O Google Drive: ülwgjuó jc lis u
O ME526-WindEnergy-L25-Shuja.p x
O File | C:/Users/Administrator/Desktop/KFUPM%20Term%232/ME526/ME526-WindEnergy-L25-Shuja.pdf
(D Page view
A Read aloud
T) Add text
V Draw
Y Highlight
O Erase
17
of 26
Wind Farms
Consider the arrangement of three wind turbines in the following schematic in which wind
turbine C is in the wakes of turbines A and B.
Given the following:
- Uo = 12 m/s
A
-XẠC = 500 m
-XBC = 200 m
- z = 60 m
- Zo = 0.3 m
U.
-r, = 20 m
B
- CT = 0.88
Compute the total velocity deficit, udef(C) and the velocity at wind turbine C, namely Vc.
Activate Windows
Go to Settings to activate Windows.
Wind Farms (Example Answer)
5:43 PM
A 4)) ENG
5/3/2022
I!
arrow_forward
I was given a practice question for transforming equation. In the image I will have a slide the lecture note of an example of it being done but I do not understand what was done exactly. Please explain how to answer the question. Thank you
arrow_forward
From the information in the image, I needed to find the orientation of U relative to Q in vector basis q_hat. I transformed the euler angle/axis representation to euler parameters. Then I got its conjugate in order to get the euler parameter in N frame relative to Q. The problem gave the euler angle/axis representation in Q frame relative to N, so I needed to find the conjugate. Then I used the euler parameter rule of successive rotation to find the final euler parameters that describe the orientation of U relative to Q. However that orientation is in n_hat which is the intermediate frame. How do I get the final result in q_hat?
arrow_forward
I need help with my MATLAB code. I am trying to plot the semi major axis and eccentricity with the following code with rungge kutta method. I have two different nnn's in the code which produce two different step sizes. So, I am wondering why both give the same exact plots for semi-major axis and eccentricity. The orbital dynamics fucntion considers J2, drag, SRP, and third body effects.
% Orbital elements obtained from TLE
inc = 63.5000118; % Inclination (degs)
raan = 19.999977; % RAAN (degs)
ecc = 0.001; % Eccentricity
argp = 120.02165342; % argument of perigee (degs)
v = 0; % True anomaly (degs)
a = 6584.697271; % Semi-major axis (km)
mu = 3.986e5;
period = (2*pi*sqrt((a^3)/mu));
% Calculating the state vector in eci frame
[x, y, z, vx, vy, vz] = kep2cart(a, ecc, inc, raan, argp, v);
Y = [x, y, z, vx, vy, vz];
options = odeset('RelTol', 1e-12, 'AbsTol', 1e-12);
nnn1 = 800;
t_step1 = period/nnn1;
m6 = 50;
h_step6 = t_step1/m6;
t_total6 = 0:h_step6:10*period;
[t6,…
arrow_forward
K
mylabmastering.pearson.com
Chapter 12 - Lecture Notes.pptx: (MAE 272-01) (SP25) DY...
P Pearson MyLab and Mastering
Mastering Engineering
Back to my courses
Course Home
Scores
Course Home
arrow_forward
8holes 10 Dia
60 Dia
96 R
42 R
36
42R
16
80
Plate
draw the 2D skect of the figure in
autocad and give the dimension.
52
arrow_forward
I had a theoretical question about attitude determination. In the attached images, I gave two axis and angles. The coefficient of the axes are the same and the angles are the same. The only difference is the vector basis. Lets say there is a rotation going from n hat to b hat. Then, you introduce a intermediate rotation s hat. So, I want to know if the DCM produced from both axis and angles will be the same or not. Does the vector basis affect the numerical value of the DCM? The DCM formula only cares about the coefficient of the axis and the angle. So, they should be the same right?
arrow_forward
Can you help me code the algorithm into MATLAB? The delta zero, delta one and so forth are equal to the determinats of a 3x3 matrix made of the three vectors.
arrow_forward
For the following RRR manipulator and the matrix showing its forward kinematics
LA
C123 -8123 0.0 c1 +l2C12
0.0 81 +12812
$123
0.0
C123
0.0
%3D
1.0
0.0
1
Using inverse kinamatics and the quick check methods prove that
For 0, = 90°, 02 = 0°
x = 0
y = Li+ L2
arrow_forward
Given the trasnfer function
G(s)
numerator and denominator
coefficients for Matlab code should
be:
O
s³+2s+1
2s4+2s²+1'
the
num= [1 0 2 1] and den=[2 020
1]
O num=[1 2 1] and den=[2 0 2 1 1]
O
num=[1 2 1] and den=[2 2 1]
O num=[1 0 2 1] and den=[2 2 0 1]
arrow_forward
TRUP
TUE FLE
FM
AutoSave
Hwk-6a.MechanialProperties-ElasticRegion • Last Modified: Mon at 9:05 AM -
O Search (Alt+Q)
Torialai Stanikzai
On
TS
File
Home
Insert
Draw
Design
Layout
References
Mailings
Review
View
Help
O Find -
S Replace
Times New Roma - 12
A A Aav Ao
AaBbCcDc AaBbCcDc AaBbC AaBbCcC AaB AaBbCcC AaBbCcDa AaBbCcDa AaBbCcDa
B COPY
S Format Painter
Paste
BIUab x, x² A evA
1 Normal
I No Spac..
Heading 1
Heading 2
Title
Subtitle
Subtle Em..
Emphasis
Intense E.
A Select v
Dictate
Edi
clipboard
Paragraph
Styles
Editing
Voice
Ed
Font
5.
Consider the difference between tension and compression. We defined
mathematical expression for o, e, and v in tension. How are these expressions affected
when applied to compression?
arrow_forward
Question: For The Given 4-DOF
Robot: A. Assign Appropriate
Frames For The Denavit-...
For the given 4-DOF robot:
a. Assign appropriate frames for the Denavit-Hartenberg representation.
b. Fill out the parameters table.
c. Write an equation in terms of A matrices that shows how UTH can be calculated.
U
#
d.
a
a
A1
0-1
A2
1-2
Аз
2 -3
A4
3- H
arrow_forward
INSTRUCTIONS: Solve the following problem by manually applying the finite element method, following these steps:
Pre-processing:
Geometry identification.
Material properties identification.
Load identification.
Boundary condition identification.
Development of the connectivity matrix for nodes and elements.
Processing:
Calculation of local stiffness matrices.
Assembly of the global stiffness matrix.
Assembly of the global force matrix (if required).
Application of boundary conditions.
Resolution of the system of equations.
Derivation of the complete displacement vector (u).
Post-processing:
Reaction forces calculation.
Stress analysis.
Problem Statement: the truss nodes and elements (in parentheses) are already numbered. The areas (are in cm^2 ) are underlined. members are made of structural steel, modulus of elasticity is (E) of 20×10^6 N/cm^2 . the lengths are given in cm.
arrow_forward
In your biomechanical testing lab, you perform a series of compression tests to determine the relationship
between apparent bone density (p, units of g/cm³) and ultimate stress (ơult, units of MPa). Using the set of
experimental measurements below, write an m-file to fit a power relationship of the form
O uli = Ap
to the data. Use the log transform method to linearize the system and data, followed by linear regression.
Plot the data points and the power relationship on a single plot. Be sure to label your axes and provide a
legend. Provide a printout of your m-file and a printout of the command window showing your results.
Write down the best fit equation and box it.
8.76
5.25
4.26
5.51
3.88
18.45
2.09
13.72
5.42
2.17
Oult (MPa)
p (g/cm³)
0.598 | 0.459
0.319 | 0.235
0.141
0.754
0.177
0.553
0.394
0.246
arrow_forward
I’m having trouble in my statics course. We are covering moments and I am confused about (1) what to use for the distance (2) when to use rFsin(theta), r(cross)F, or M=Fd. I keep using the wrong method and I really just need to know the way I approach the problem. For instance, on the problem below, I used rxF and the solutions said instead to simply use rFsin(theta)
arrow_forward
I am having trouble with the folloiwng MATLAB code. I am getting an error that says "unrecognized function or variable 'numericalPropogatorOptions". I have the aerospace toolbox and the aerospace blockset added. what add on do I have to download to use that function. How do I make this code work?
% Define Keplerian Elements
a = 29599.8; e = 0.0001; i = 0.9774; Omega = 1.3549; w = 0; M = 0.2645;
[RECI, VECI] = Kepler2RV(a, e, i, Omega, w, M);
initialState = [RECI * 1e3; VECI * 1e3]; % Initial position (m) and velocity (m/s)
% Define constants
mu = 3.986004418e14; % Gravitational constant (m^3/s^2)
earthRadius = 6378.1363 * 1e3; % Earth radius in meters
j2 = 1.08263e-3; % J2 perturbation coefficient
% Define propagator options
propOptions = numericalPropagatorOptions('CentralBody', 'Earth', ...
'GravitationalParameter', mu, ...
'InitialState', initialState, ...
'OutputTimeStep', 300); % Output every 300 seconds
% Add perturbations
addGravityModel(propOptions, 'Degree', 2,…
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press

Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON

Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education

Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY

Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning

Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY
Related Questions
- I want to run the SGP4 propagator for the ISS (ID = 25544) I got from spacetrack.org in MATLAB. I don't know where to get the inputs of the function. Where do I get the inFile and outFile that is mentioned in the following function. % Purpose: % This program shows how a Matlab program can call the Astrodynamic Standard libraries to propagate % satellites to the requested time using SGP4 method. % % The program reads in user's input and output files. The program generates an % ephemeris of position and velocity for each satellite read in. In addition, the program % also generates other sets of orbital elements such as osculating Keplerian elements, % mean Keplerian elements, latitude/longitude/height/pos, and nodal period/apogee/perigee/pos. % Totally, the program prints results to five different output files. % % % Usage: Sgp4Prop(inFile, outFile) % inFile : File contains TLEs and 6P-Card (which controls start, stop times and step size) % outFile : Base name for five output files %…arrow_forward3. Use the second method of frame assignment, and find the Jacobian of the following robot using the velocity propagation method (Ignore all theta related offsets): 03 02 L2 01 Please answer the question precisely and completely to use the second method of frame assignment to find the D-H table [alpha (i-1) , a (i-1) , d (i) , theta (i)], and find the jacobian matrix using the velocity propagation methodarrow_forwardSolve the inverse kinematic problem for the following 6 DOF robot, using the method ofkinematic decouplingif it is known that its Denavit-Hartenberg parameters are as shown in the table inthe tablearrow_forward
- How do I input this code into MATLAB to solve this problem? Thanks!arrow_forwardPlease solve the following by hand and without the use of AI. I am working to understand the step by step procedure of solving this problem so pleaase give a detailed step by step procedure, explaining each part as you go. Thank you!arrow_forwardPlease do not rely too much on chatgpt, because its answer may be wrong. Please consider it carefully and give your own answer. You can borrow ideas from gpt, but please do not believe its answer.Very very grateful! Please do not copy other's work,i will be very very grateful!!arrow_forward
- Solve the following question by hand and without the use of AI. Use detailed mathematical expressions to solve the problem and please do not use AI. Thank You!arrow_forwardpermanent-magnet (pm) genera x Bb Blackboard Learn L STAND-ALONE.mp4 - Google Dri x O Google Drive: ülwgjuó jc lis u O ME526-WindEnergy-L25-Shuja.p x O File | C:/Users/Administrator/Desktop/KFUPM%20Term%232/ME526/ME526-WindEnergy-L25-Shuja.pdf (D Page view A Read aloud T) Add text V Draw Y Highlight O Erase 17 of 26 Wind Farms Consider the arrangement of three wind turbines in the following schematic in which wind turbine C is in the wakes of turbines A and B. Given the following: - Uo = 12 m/s A -XẠC = 500 m -XBC = 200 m - z = 60 m - Zo = 0.3 m U. -r, = 20 m B - CT = 0.88 Compute the total velocity deficit, udef(C) and the velocity at wind turbine C, namely Vc. Activate Windows Go to Settings to activate Windows. Wind Farms (Example Answer) 5:43 PM A 4)) ENG 5/3/2022 I!arrow_forwardI was given a practice question for transforming equation. In the image I will have a slide the lecture note of an example of it being done but I do not understand what was done exactly. Please explain how to answer the question. Thank youarrow_forward
- From the information in the image, I needed to find the orientation of U relative to Q in vector basis q_hat. I transformed the euler angle/axis representation to euler parameters. Then I got its conjugate in order to get the euler parameter in N frame relative to Q. The problem gave the euler angle/axis representation in Q frame relative to N, so I needed to find the conjugate. Then I used the euler parameter rule of successive rotation to find the final euler parameters that describe the orientation of U relative to Q. However that orientation is in n_hat which is the intermediate frame. How do I get the final result in q_hat?arrow_forwardI need help with my MATLAB code. I am trying to plot the semi major axis and eccentricity with the following code with rungge kutta method. I have two different nnn's in the code which produce two different step sizes. So, I am wondering why both give the same exact plots for semi-major axis and eccentricity. The orbital dynamics fucntion considers J2, drag, SRP, and third body effects. % Orbital elements obtained from TLE inc = 63.5000118; % Inclination (degs) raan = 19.999977; % RAAN (degs) ecc = 0.001; % Eccentricity argp = 120.02165342; % argument of perigee (degs) v = 0; % True anomaly (degs) a = 6584.697271; % Semi-major axis (km) mu = 3.986e5; period = (2*pi*sqrt((a^3)/mu)); % Calculating the state vector in eci frame [x, y, z, vx, vy, vz] = kep2cart(a, ecc, inc, raan, argp, v); Y = [x, y, z, vx, vy, vz]; options = odeset('RelTol', 1e-12, 'AbsTol', 1e-12); nnn1 = 800; t_step1 = period/nnn1; m6 = 50; h_step6 = t_step1/m6; t_total6 = 0:h_step6:10*period; [t6,…arrow_forwardK mylabmastering.pearson.com Chapter 12 - Lecture Notes.pptx: (MAE 272-01) (SP25) DY... P Pearson MyLab and Mastering Mastering Engineering Back to my courses Course Home Scores Course Homearrow_forwardarrow_back_iosSEE MORE QUESTIONSarrow_forward_ios
Recommended textbooks for you
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY

Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press

Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON

Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education

Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY

Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning

Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY