Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

Question

minimum and maximum acceleration of the parameter s for the time-optimal path-constraint trajectory planning -(lagrangian mechanics-Ordinary differantial equations-ode45) lagrangian formulation of dynamics

ode45 matrix

fill in the blanks where it says "Fill" in the first pitcure 

q_initial-(q_initial;0;0];
a_final-[q_final;0;0];
x_initial=[q_initial;s_initial'];
RHS=@ (t,x) [RPmanipulator (x (1:4), $FILL14%,ml,m2,11,12,rl);$FILL15%];
48
49 -
50 -
51
52 -
xlabel ('t')
legend ('ul (acc)','u2 (acc) ','ul (dec)','u2 (dec)','Location','southeast')
53 -
54 -
subplot (2,2,3)
55 -
hold on
[tl,xl]=ode45 (RHS, [0, tmin],x_initial,OPTIONS)
plot (tl, xl (:,1))
56
57 -
58
plot (tl,xl (:,2))
RHS=@ (t,x) [RPmanipulator (x (1:4), &FILL16%, ml,m2,Il,12,rl);%FILL17%];
[t2,x2]=ode45 (RHS, [tmin, tmin+tleft], $FILL188, OPTIONS)
plot (t2,x2 (:,1))
plot (t2, x2 (:,2))
59
60
61
62 -
expand button
Transcribed Image Text:q_initial-(q_initial;0;0]; a_final-[q_final;0;0]; x_initial=[q_initial;s_initial']; RHS=@ (t,x) [RPmanipulator (x (1:4), $FILL14%,ml,m2,11,12,rl);$FILL15%]; 48 49 - 50 - 51 52 - xlabel ('t') legend ('ul (acc)','u2 (acc) ','ul (dec)','u2 (dec)','Location','southeast') 53 - 54 - subplot (2,2,3) 55 - hold on [tl,xl]=ode45 (RHS, [0, tmin],x_initial,OPTIONS) plot (tl, xl (:,1)) 56 57 - 58 plot (tl,xl (:,2)) RHS=@ (t,x) [RPmanipulator (x (1:4), &FILL16%, ml,m2,Il,12,rl);%FILL17%]; [t2,x2]=ode45 (RHS, [tmin, tmin+tleft], $FILL188, OPTIONS) plot (t2,x2 (:,1)) plot (t2, x2 (:,2)) 59 60 61 62 -
RPmanipulator.m x
LU.m X
findswitch.m x trajectory.m X
abc.m X
function RHS = RPmanipulator (q, u, ml, m2,I1,I2,rl)
* creates the righthand side of the Lagrange dynamics converted to ordinary
* differential equations
2
3
4
Sthe main equation was given in the general form qdotdot, it was 2nd order,
SWe need to define extra variables to get it down to Ind order:
$ q= ql q2 qldot q2dot
* RHS: right hand side gdot=RHS
* RHS1=qldot
* RHS2=q2dot
* RHS3=qldotdot=from Lagrange equation
* RHS4=q2dotdot=from Lagrange equation
5
7
10
11
12 -
g=9.8; $gravitational acc.
RHS= [g (4);
|a (4);
- (2*m2 *q (2) *q (3) *g(4) +g* (ml*rl+m2*q (2)) *cos (a (1)) -u (1))/ (Il+I2+ml*rl^2+m2*q(2) ^2);
13 -
14
15
16
- (-m2*g (2) *a(3) ^2+g*m2*sin (q (1))-u (2))/m2;
17
];
18 -
end
Current Folc
expand button
Transcribed Image Text:RPmanipulator.m x LU.m X findswitch.m x trajectory.m X abc.m X function RHS = RPmanipulator (q, u, ml, m2,I1,I2,rl) * creates the righthand side of the Lagrange dynamics converted to ordinary * differential equations 2 3 4 Sthe main equation was given in the general form qdotdot, it was 2nd order, SWe need to define extra variables to get it down to Ind order: $ q= ql q2 qldot q2dot * RHS: right hand side gdot=RHS * RHS1=qldot * RHS2=q2dot * RHS3=qldotdot=from Lagrange equation * RHS4=q2dotdot=from Lagrange equation 5 7 10 11 12 - g=9.8; $gravitational acc. RHS= [g (4); |a (4); - (2*m2 *q (2) *q (3) *g(4) +g* (ml*rl+m2*q (2)) *cos (a (1)) -u (1))/ (Il+I2+ml*rl^2+m2*q(2) ^2); 13 - 14 15 16 - (-m2*g (2) *a(3) ^2+g*m2*sin (q (1))-u (2))/m2; 17 ]; 18 - end Current Folc
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education