Return to Video

05ps-03 Cyclic Smoothing

  • 0:00 - 0:04
    Welcome to homework assignment #5.
  • 0:04 - 0:11
    Today I only have programming assignments. One on smoothing and one on control.
  • 0:11 - 0:21
    In both cases, we are trying to drive a car on a racetrack as fast as we can.
  • 0:21 - 0:24
    Okay? You'll see in a minute what I mean by this.
  • 0:24 - 0:28
    But think of the car going on an oval just like that.
  • 0:28 - 0:32
    So in this first exercise, you're going to go through a sequence of improvements
  • 0:32 - 0:34
    of the code smooth.PI.
  • 0:34 - 0:36
    I'm giving you a path that is very much a box path.
  • 0:36 - 0:41
    It starts at 0,0, cranks up the estimation all the way to 6,
  • 0:41 - 0:44
    then increases the y all the way to 3.
  • 0:44 - 0:51
    It goes down on x all the way down to 0, and then uses the y all the way down to almost 0.
  • 0:51 - 0:55
    If I draw this, the way this looks like--
  • 0:55 - 1:05
    we start at 0,0, all the way to 6,0, then we go up here to 6,3, and you go left to 0,3,
  • 1:05 - 1:07
    and down to 0,1.
  • 1:07 - 1:14
    This is a cyclic course so we're smoothing before what's for an open path.
  • 1:14 - 1:19
    I'd now like you to modify smoothing, so it can smooth this path over here.
  • 1:19 - 1:25
    So I want you to run the function smooth with path as an input--
  • 1:25 - 1:33
    the weight_data of 0.1 and the smoothing parameter of 0.1 and tolerance of 0.000001.
  • 1:33 - 1:38
    When you run it, what it should produce is a path like this, that when you plot it,
  • 1:38 - 1:40
    it looks a little bit like an oval.
  • 1:40 - 1:42
    You can look at these numbers carefully.
  • 1:42 - 1:45
    It ranks the corner points more into the interior.
  • 1:45 - 1:49
    I want to do it in a way that is cyclic, so that the last point connects smoothly
  • 1:49 - 1:51
    to the initial point over here.
  • 1:51 - 1:56
    So please modify the code just to be a cyclic smoother as opposed to before
  • 1:56 - 2:00
    it wasn't a cyclic smoother, and make it so each point get uprooted.
  • 2:00 -
    You don't keep 2 of the points fixed.
タイトル:
05ps-03 Cyclic Smoothing
概説:

dummy description

more » « less
Team:
Udacity
プロジェクト:
CS373 - Artificial Intelligence
Duration:
02:03
Amara Bot added a translation

English subtitles

改訂