1
00:00:00,560 --> 00:00:03,710
Congratulations, my guys, on making it this far.

2
00:00:03,920 --> 00:00:05,390
We are right at the end now.

3
00:00:05,780 --> 00:00:10,310
We will be defining the problem of good to go given all the information we have.

4
00:00:11,930 --> 00:00:17,780
This includes the robot pool location and orientation and the shortest path to the goal.

5
00:00:18,320 --> 00:00:25,100
Now, because the park was computed using the grid based search algorithm, we have the mini goal as

6
00:00:25,100 --> 00:00:30,830
configuration, which tells us about the goal location and the goal orientation, which the robot will

7
00:00:30,830 --> 00:00:34,490
need to achieve one by one using this method.

8
00:00:34,730 --> 00:00:40,820
The ultimate task of math solving will come down to it creatively reaching all these mini goals.

9
00:00:41,190 --> 00:00:44,660
Now let's look at an algorithm that serves the exact purpose.

10
00:00:45,230 --> 00:00:48,320
Here we start over writing an infinite loop.

11
00:00:48,980 --> 00:00:53,990
Then we compute the error between the robot orientation and the desired orientation.

12
00:00:54,510 --> 00:00:59,060
Now, because we have a differential drive board, it cannot make larger turns.

13
00:00:59,570 --> 00:01:03,200
So if the error is large, we bring it down to moveable limits.

14
00:01:03,710 --> 00:01:07,520
So if the egg was below the threshold, we move the car forward.

15
00:01:07,880 --> 00:01:10,880
Starting is speed proportional to its distance to the goal.

16
00:01:11,270 --> 00:01:16,160
So if the car is four, it moves fast and then slows down as it approaches the goal.

17
00:01:16,790 --> 00:01:21,170
And then finally, the car, which is a last minute goal, you stop the car.

18
00:01:21,410 --> 00:01:23,840
Otherwise, we activate the next minute goal.
