$25
1. Consider the following dynamic system of an actuated pendulum attached to an actuated collar on a track, both with first order actuator dynamics
u˙ϕ = −aϕuϕ + µϕ
where x,x,˙ x¨∈R are the position, velocity, and acceleration of the collar on the track, ϕ,ϕ,˙ ϕ¨∈R are the angle, angular velocity, and angular acceleration of the mass on the end of the pendulum, mx,cx,ax ∈R>0 are the unknown constant mass, friction coefficient, and input coefficient for the collar, mϕ,cϕ,l,aϕ ∈R>0 are the unknown constant mass, friction coefficient, arm length, and input coefficient for the pendulum, is gravity, ux ∈R is the output force of the actuator on the collar, µx ∈ R is the controlled input to the actuator on the collar, uϕ ∈ R is the output torque of the actuator for the pendulum, µϕ ∈R is the controlled input to the actuator for the pendulum (i.e., you cannot directly control ux or uϕ). Design backstepping inputs, adaptive updates, µx, and µϕ to control the coupled systems and actuator dynamics and prove the system is stable using the designs. There are two goals for this problem, to have the collar track a desired trajectory that oscillates between −xd and xd at a frequency of fxd which we model as xd (t) = xd sin(2πfxdt) implying x˙d (t) = 2πfxdxd cos(2πfxdt) and x¨d (t) = −(2πfxd)2 xd sin(2πfxdt); while simultaneously, the pendulum tracks the desired trajectory that oscillates between −ϕd and ϕd at a frequency of fϕddwhich we model as2 d ϕd (t) = ϕd sin(2πfϕdt) implying... ˙ ϕ,¨ϕ˙d...ϕ(t) = 2are all measurable.πfϕdϕd cos(2πfϕdt)
and ϕ¨d (t) = −(2πfϕ ) ϕd sin(2πfϕ t). You can assume x,x,˙ x,¨ x ,ϕ,ϕ,
(a) (50 pts) Design the best stable controller based on what has been shown in class and prove thestability of the designed controller using Lyapunov-based methods. Show all your work.
(b) (50 pts) READ ALL THE INSTRUCTIONS. PLOTS NOT FOLLOWING THE CORRECT FORMAT WILL NOT GET FULL CREDIT. IF SOMETHING IS NOT CLEAR PLEASE ASK.
i. Using your results of Part (1.a), simulate the dynamics for 100 random values of xd, ϕd, fxd, fϕd, x(t = 0), ϕ(t = 0), within your domain but keep
x˙ (t = 0)
=
0
ux (t = 0)
=
0
ϕ˙ (t = 0)
=
0
uϕ (t = 0)
=
0
and random values for mx,mϕ,cx,cϕ,l,ax,aϕ that satisfy your determined conditions (if any). ii. Discuss any algorithms you used for designing your controller.
iii. Plot the results of your Monte Carlo making sure the behavior of the system is clear (i.e., choose a small enough time step, large enough initial conditions, and run the simulation long enough to see the behavior of the system). Specifically,
A. plot the norm of your tracking errors over time on a single plot
B. plot the norm of your estimation errors over time on a single plotiv. Select a single run that represents the typical performance of your design and
1
A. plot the total input, the error feedback portions of the input, and the estimated feedfor-ward portions of the input over time
B. plot the value of your Lyapunov function over time along with the best determined the-oretical bound of your Lyapunov function over time
v. For each run, calculate the norm of the difference between the total input and the errorfeedback portions of the input over time. Average across all of your runs and plot the resulting average over time (this should show a single trajectory over time)
vi. For each run, calculate the norm of the difference between the total input and the estimatedfeedforward portions of the input over time. Average across all of your runs and plot the resulting average over time (this should show a single trajectory over time)
vii. Based on the plots, use quantitative and qualitative descriptions of the plots and data tosupport you discussion of the following
A. Discuss whether your simulation matches your stability result
B. Discuss if your controller transitioned from predominantly using error feedback terms tousing the estimated feedforward dynamics over time
C. Discuss the bound of your Lyapunov function over time