mum and maximum acceleration of the parameter s for the time-optimal path-constraint trajectory planning -(lagrangian m

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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 -
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
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
steps

Step by step

Solved in 2 steps with 24 images

Blurred answer
Knowledge Booster
Bellman operator
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education