1
00:00:03,870 --> 00:00:08,700
In this video, we're going to look at the simulation framework and problem that we're going to be using

2
00:00:08,700 --> 00:00:14,280
for the linnear common filter, and the problem is to implement a 2D tracking filter.

3
00:00:15,210 --> 00:00:21,750
So the goal is to estimate the precision and the velocity of a moving object based on a series of positional

4
00:00:21,750 --> 00:00:22,350
measurements.

5
00:00:23,040 --> 00:00:29,910
So specifically for this task is to estimate the precision and velocity of a moving vehicle based on

6
00:00:29,910 --> 00:00:32,660
positional, such as GPS measurements of the vehicle.

7
00:00:33,330 --> 00:00:37,850
So the concept of a two year tracking field appears and lots of other places as well.

8
00:00:38,160 --> 00:00:43,770
So similar applications include image tracking, object tracking and radar tracking.

9
00:00:43,770 --> 00:00:48,870
So using positional measurements, whether they are on board the vehicle or off both vehicles such as

10
00:00:48,870 --> 00:00:53,550
radar, to estimate the position and velocity of a moving object.

11
00:00:55,840 --> 00:01:02,200
So for our problem of estimating the position and velocity of a moving vehicle based on GPS measurements,

12
00:01:04,120 --> 00:01:10,580
we want to assume that the vehicle travels at a constant speed in the two to explain in any direction.

13
00:01:11,020 --> 00:01:16,840
We also can assume that the input acceleration of the vehicle is random so that the acceleration can

14
00:01:16,840 --> 00:01:18,460
be modeled as a random variable.

15
00:01:18,790 --> 00:01:22,900
So this is going to be the process model of the fuel that we're going to be implementing.

16
00:01:24,130 --> 00:01:28,870
We also are going to assume that we get positional measurements of the vehicle location, such as from

17
00:01:28,870 --> 00:01:29,620
the GPS.

18
00:01:29,800 --> 00:01:34,980
So this is going to be the first sensor model that we're going to start to implement inside the filter.

19
00:01:37,270 --> 00:01:40,750
So now let's have a look at this problem in a bit more detail.

20
00:01:40,990 --> 00:01:45,030
First off is that we're going to look at the dynamics of the system or the process model.

21
00:01:45,880 --> 00:01:49,050
So we're going to have a position for the vehicle.

22
00:01:49,060 --> 00:01:54,760
So it's going to be this blue dot over here is going to have the states x, p, y for the position in

23
00:01:54,760 --> 00:02:02,730
the X, Y plane, as well as a velocity of X and Y Y for the velocity of the vehicle in the X Y plane.

24
00:02:04,140 --> 00:02:09,450
So like we said before, we are making the assumption that the vehicle itself can be modeled as a single

25
00:02:09,450 --> 00:02:14,540
position and that it can accelerate and move in any direction in the X Y plane.

26
00:02:14,910 --> 00:02:20,730
So this might not be the most appropriate model for a vehicle since usually the vehicle travels in the

27
00:02:20,730 --> 00:02:21,650
direction it is facing.

28
00:02:22,080 --> 00:02:26,190
But we're going to start off with this very basic model for this to tracking filter.

29
00:02:27,540 --> 00:02:31,560
Now, the measurements that are going to come into the field are basically going to be position measurements.

30
00:02:31,560 --> 00:02:35,280
So they're going to be basically a direct measurement of the position of the vehicle.

31
00:02:35,610 --> 00:02:41,010
So it's going to be giving us direct information about two of the states, the vehicle, and then the

32
00:02:41,010 --> 00:02:46,620
common filter is going to try to estimate the velocity of the vehicle by inferring it through the process

33
00:02:46,620 --> 00:02:47,520
model dynamics.

34
00:02:50,190 --> 00:02:56,250
So I just set up the simulation for this first exercise, what we want to do is first to rename the

35
00:02:56,250 --> 00:03:04,560
common field underscore OK, underscore student Sape, we want to rename it to Come and Shape when we

36
00:03:04,560 --> 00:03:11,310
do this weekend, compile it and then we can start adding our own code into this common field UQP for

37
00:03:11,310 --> 00:03:13,560
the simulation and for the exercises.

38
00:03:14,310 --> 00:03:19,020
Now, if we want to look at what the final result of this simulation is going to produce, once we fill

39
00:03:19,020 --> 00:03:24,260
in all the different stages of this file, we can do the same thing for the answer file here.

40
00:03:24,270 --> 00:03:29,490
We can rename it to the Common Filter and build the application and we can actually use that for comparison

41
00:03:29,490 --> 00:03:30,960
of a working example.

42
00:03:32,580 --> 00:03:37,930
So let's actually have a look at what the end goal of the linear commensal exercises is to be.

43
00:03:37,950 --> 00:03:43,980
So let's have a look at a working example of a linear computer inside the simulation environment.

44
00:03:46,040 --> 00:03:51,590
So here's an example of what the simulation should finally look like at the end, we can see that we're

45
00:03:51,770 --> 00:03:56,180
getting a series of measurements so the white dots and we're using them to estimate the position of

46
00:03:56,180 --> 00:03:59,230
the vehicle as it moves, which is the red system here.

47
00:03:59,720 --> 00:04:05,720
So we can see that the red dot and covariance is tracking the vehicle quite nicely in a situation from

48
00:04:05,720 --> 00:04:08,810
only the data we figured out, which is the positional measurements.

49
00:04:09,680 --> 00:04:14,410
So now we can look at an example of what happens when we have a vehicle that's not just traveling in

50
00:04:14,420 --> 00:04:15,110
a straight line.

51
00:04:15,440 --> 00:04:20,090
So we can see that as the vehicle turns, it takes a while for the linear coming field out to try to

52
00:04:20,090 --> 00:04:24,950
catch up with the actual true state of the system for the changing of the dynamics.

53
00:04:25,520 --> 00:04:30,550
So this is one limitation of the linear algebra that we're going to cover and a bit more detail and

54
00:04:30,560 --> 00:04:33,170
things that we can do to improve the performance.
