1 / 20

Udacity lesson 5: Robot Motion

Udacity lesson 5: Robot Motion. Agenda. Path Smoothing PID. Motivation. In motion planning, we learned to plan a path But how do we turn that discrete path into an actual continuous path, that the robot can follow efficiently?

beth
Télécharger la présentation

Udacity lesson 5: Robot Motion

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. Udacity lesson 5:Robot Motion

  2. Agenda • Path Smoothing • PID

  3. Motivation • In motion planning, we learned to plan a path • But how do we turn that discrete path into an actual continuous path, that the robot can follow efficiently? • Additionally, how do we get the robot to follow the path – how do we control its motion?

  4. Path Smoothing • Until now, all paths have been straight and discrete, divided into grids, like this:

  5. Path Smoothing • We’d rather have a line that a robot can follow at a constant speed, and as short as possible. A bit like this:

  6. Path Smoothing • The first criterion minimizes distance between original and smooth -> favors the original path • The second criterion minimizes distance within the smoothed path -> favors a pile of points in one place

  7. Path Smoothing • Weighing these terms can yield a smooth path:

  8. Path Smoothing • We can use gradient descent optimization with the following update rules for each iteration: • Where they each correspond to one of the previously stated terms

  9. Path Smoothing • Finally, we might want to add a term that avoids obstacles to our system:

  10. Path Smoothing • Demo: • Pathsmooth.m

  11. PID control • Control theory is about how to adjust our system to interact with the real world. • In the case of a robot, it will mostly be connected to moving around. • We use sensor input as the robots “senses”. The controller is then the brain that takes this input and converts it to the correct motion.

  12. PID Control • The most common type of controller is the PID:

  13. PID Control • P: Proportional control. Drives the system based on the current error. • I: Integral control. Drives the system based on an integral of past errors. Removes steady state error. • D: Derivative control. Drives the system based on a derivative of past errors

  14. PID Control • So how to implement this? • Or maybe in code:

  15. PID Tuning • We need values for Kp, Ki and Kd. • These must fit the physical properties of the system we control. Motor speed, robot weight, turn radius etc.

  16. PID Tuning • There are a lot of methods for finding these parameters. Two examples: • Twiddle • Ziegler-Nichols

  17. Ziegler-Nichols • All gains are set to zero • P is increased until the system oscillates with a constant amplitude. The gains can then be found as:

  18. PID Control • Demo: • PIDSmooth.py

  19. Discussion

More Related