
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
minimum and maximum acceleration of the parameter s for the time-optimal path-constraint trajectory planning -(lagrangian
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 -](https://content.bartleby.com/qna-images/question/7611a395-318b-4577-b358-b0b6f732a783/4d1964bc-435b-465f-95f4-bc66412820bc/6325yue_thumbnail.png)
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](https://content.bartleby.com/qna-images/question/7611a395-318b-4577-b358-b0b6f732a783/4d1964bc-435b-465f-95f4-bc66412820bc/bmq1xte_thumbnail.png)
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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps with 24 images

Knowledge Booster
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.Similar questions
- any idea how to solve ?arrow_forwardAn insulated, electrically-heated (100 kW) tank contains400 kg of water at 65°C when its power is lost. Water iswithdrawn at a steady rate of 0.4 kg/s and cold water (at12°C) enters the tank at the same rate. Assume the tankis well-mixed, and neglect heat gains or losses throughthe tank walls. For the water, c=cp=cv=4200 J/kg C(a) Create a script (m-file) in MATLAB to calculate howlong will it take for the tank’s temperature to fall to 25°C.(b) Display the entire program code used for your scriptcreated in MATLAB. Make sure that running the scriptprovides a numeric result and include your name as acomment.arrow_forwardA steel Column is 10m long and Ø1.2m. It carries a load of 102MN. Given the modulus of Elasticity is 256GPa. Find the stress, Strain, anddetermine how much the column is compressed. {show all the work}arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

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)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education