1 / 25

Lane Following Controller Team 2

Lane Following Controller Team 2. Mohamed Aly, Gustavo Costa, Nhattrieu (Tom) Duong. Goals and Objectives. Lateral controller: Lane following without GPS Steady State Error < 50 cm To remain confortably within 3.5 m corridor Overshoot < 50 cm To remain within 3.5 m corridor

Download Presentation

Lane Following Controller Team 2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lane Following ControllerTeam 2 Mohamed Aly, Gustavo Costa, Nhattrieu (Tom) Duong

  2. Goals and Objectives • Lateral controller: • Lane following without GPS • Steady State Error < 50 cm • To remain confortably within 3.5 m corridor • Overshoot < 50 cm • To remain within 3.5 m corridor • Requires longer settling times • For speeds up to 15 m/s (Advanced Navigation requirement C.5.)

  3. Waypoint Generation y Alice frame Trajectory waypoints x rAlice(tn) rn(tn) y0 rn,0 x0 Boundary data points Stationary frame

  4. Waypoint Generation • Deals with one small frame at a time • Looks ahead to plan path • Default: 10 data points • Adjustable (perhaps with speed?) • Filters into three scenarios for each frame • Left and Right lane data good • Only Left lane • Only Right lane • Updates waypoints file with new information • Waypoints file can be accessed by traj generator • Traj generator not yet implemented • Matlab/Simulink path following implemented using generated waypoints file (seen later in presentation)

  5. Waypoint Generation

  6. Waypoint Generation

  7. Alice Model • Bicycle model • Linearized Model • Control only y and θusing φ

  8. Simulink Model

  9. Controllers • Take as reference the projected error of the path generated from the two boundaries • Two types of controllers: • State feedback design (PI); • Frequency domain design (PID);

  10. Controllers • State space controller: • State (Simulink model): [y yref θθref ] • Matrices from the state space model: • A = 0 • B = [1, 0, -1, 0] • C = ki • D = [-K,K] • ki is the integral gain and K is a two dimension vector with proportional gains; • Obtained from the eigenvalue placement using At and Bt from the linearized model of Alice;

  11. Controllers • State space controller: • Using the eigenvalues p = [-1.5,-.5,-.2] the gains obtained were K = [0.2816 1.8857] and ki = -0.0367; • Simulation (Using the Alice model with the time delay and saturation block): • Simulink:

  12. Controllers • State space controller: • Simulation: • Simulator (Follow) with initial error of 3m:

  13. Controllers • PID controller (frequency domain): • Loop shaping was used to design the integral, proportional and derivative gains. Therefore, a first model of L=P*C had to be computed; • The Alice model (P) was obtained using: • ndAlice = tf(ss(Ap,Bp,Cp,Dp)); • Ap, Bp, Cp and Dp are the matrices from the linearized model; • Time delay was added using Pade approximation: • [nd,dd] = pade(0.1, 2); • delay = tf(nd,dd); • Alice = ndAlice*delay;

  14. Controllers • PID controller (frequency domain): • Using random values for ki, kp and kd, a prototype of C was obtained and Sisotool was used to design new values for C given the process P and the specifications: • Phase margin: 77 degrees; • Bandwidth: 0.87 rad/s; • Steady state error: 0; • Controller obtained: 4.3288 (s+0.07997) (s+0.005804) ------------------------------- (s+0.0005637) (s+20.32)

  15. Controllers • PID controller (frequency domain): • Bode plot (Loop transfer function):

  16. Controllers • PID controller (frequency domain): • Bode plot (Closed loop):

  17. Controllers • PID controller (frequency domain): • Sensitivity functions:

  18. Controllers • PID controller (frequency domain): • Simulation (Simulink):

  19. Controllers • PID controller (frequency domain): • Simulation (Follow/Simulator):

  20. Sample Trajectories: Straight Line

  21. Sample Trajectories: Straight Line with Obstacles

  22. Sample Trajectories: Horizontal Sine Wave

  23. Sample Trajectories: Vertical Sine Wave with uncertainty

  24. Sample Trajectories: Race Track

  25. Future Work • Implement PID controller with waypoint generation in follow on Alice • Improve controller performance • Waypoint Generation (beyond scope of proj) • Deal with noise • Enable disparate left and right lane data • Smooth out distubances in path (to avoid unnecessary swerving)

More Related