1
00:00:00,150 --> 00:00:02,700
We have seen some trajectory planning techniques.

2
00:00:03,150 --> 00:00:08,910
However, during the planning of these trajectories, we did not consider one thing which is really

3
00:00:08,910 --> 00:00:10,890
important during trajectory planning.

4
00:00:11,640 --> 00:00:18,210
We have to ensure that activity velocity and acceleration have to be in the limits of the maximal velocity

5
00:00:18,210 --> 00:00:21,180
and acceleration that actuator can output.

6
00:00:21,690 --> 00:00:27,660
Otherwise, actuators will saturate and throughput will not be able to execute the trajectory correctly.

7
00:00:28,230 --> 00:00:34,080
Let's assume that we have planned the trajectory and we noticed that during execution of the trajectory

8
00:00:34,080 --> 00:00:37,140
on realisable velocity and acceleration are required.

9
00:00:37,950 --> 00:00:43,840
What we have to do, we will use kinematics scaling in this case by kinematics scaling.

10
00:00:43,860 --> 00:00:50,590
We will obtain feasible trajectory that can be actually executed by the robot actuators in order to

11
00:00:50,590 --> 00:00:54,480
do kinematic scaling on the trajectory.

12
00:00:54,720 --> 00:00:57,780
It is better to write it in normalized form.

13
00:00:57,960 --> 00:01:04,860
Let's assume that this is the given trajectory we have to execute with length of age and time lengths

14
00:01:04,860 --> 00:01:11,880
of T. Let's ride normalized trajectory now, which is denoted by and uh, in the index.

15
00:01:12,510 --> 00:01:16,260
It changes between zero and one and time lengths is also one.

16
00:01:16,860 --> 00:01:20,400
It's very easy to obtain the trajectory from normalized trajectory.

17
00:01:21,060 --> 00:01:26,070
Indeed, we can ride the given trajectory in this way with respect to the normalized trajectory.

18
00:01:26,550 --> 00:01:29,220
Let's see the logic behind this structure.

19
00:01:30,060 --> 00:01:31,590
This is normalized trajectory.

20
00:01:32,070 --> 00:01:38,610
As you can see, it starts from zero and goes the configuration of one, while the time changes from

21
00:01:38,610 --> 00:01:39,390
zero to one.

22
00:01:40,040 --> 00:01:45,030
However, we know that the lengths of the given trajectory is not always one, but rather h.

23
00:01:45,660 --> 00:01:52,770
So we multiply and normalized trajectory with age and get the desired length of the trajectory.

24
00:01:53,250 --> 00:01:58,500
As you can see, while we get the desired trajectory, length time span stays the same.

25
00:01:59,040 --> 00:02:05,220
Now we have to consider the initial condition of Q zero because trajectory not always starts from zero,

26
00:02:05,610 --> 00:02:06,930
but from Q zero.

27
00:02:07,410 --> 00:02:13,290
So we add Q zero also, OK, we are close to regaining our trajectory.

28
00:02:13,440 --> 00:02:17,640
We have to consider just time span and initial time of two zero.

29
00:02:18,090 --> 00:02:22,080
And these features are encoded inside Q and tilde.

30
00:02:22,530 --> 00:02:29,790
Here is the Q and till the T, as you can see, it is equal to Q and toll where tall is given as below.

31
00:02:30,570 --> 00:02:38,880
As you can see, by subtracting T zero from T v, consider initial condition, namely T zero mem is

32
00:02:38,880 --> 00:02:49,260
slow the trajectory t zero ahead, then by dividing T minus T zero by T T v complete the obtained original

33
00:02:49,260 --> 00:02:49,920
trajectory.

34
00:02:50,460 --> 00:02:53,340
Here is the way we have gone so far.

35
00:02:53,670 --> 00:02:58,110
We started from normalized trajectory and obtained the given trajectory.

36
00:02:58,200 --> 00:03:01,560
OK, this is perfect because this will be very helpful for us.

37
00:03:02,010 --> 00:03:05,070
Now let's try to find the derivative of the trajectory.

38
00:03:05,670 --> 00:03:13,200
As you can see, the derivative of initial condition becomes zero as it is constant and we have to find

39
00:03:13,200 --> 00:03:14,490
derivative of Q.

40
00:03:14,490 --> 00:03:22,500
And till the T, I know that the formulation of Q and tilde t here again, we will use the chain rule

41
00:03:22,500 --> 00:03:27,660
of derivative to find this differentiation by considering this rule.

42
00:03:28,110 --> 00:03:30,600
We cannot differentiate in in this way.

43
00:03:31,110 --> 00:03:35,880
Derivative of tar with respect to T is nothing but one over T.

44
00:03:36,510 --> 00:03:39,840
You can see it easily from the formula of tongue.

45
00:03:40,500 --> 00:03:47,610
In the same way you can find a second derivative of the Q, so we have velocity and acceleration in

46
00:03:47,610 --> 00:03:48,300
our hands.

47
00:03:48,900 --> 00:03:53,490
Let's call this as equation one from equation 1.0.

48
00:03:53,490 --> 00:04:00,780
It's obvious that both velocity and acceleration will get their maximal values when Q and one tau four

49
00:04:00,780 --> 00:04:03,660
and two and two to reach their maximum.

50
00:04:04,590 --> 00:04:11,610
We can also determine at which time instant of toll we will get maximum velocity and acceleration from

51
00:04:11,610 --> 00:04:13,130
equation one point zero.

52
00:04:13,140 --> 00:04:18,990
You can easily observe that we can change maximal velocity and acceleration.

53
00:04:18,990 --> 00:04:24,250
Output during execution of the trajectory can be adjusted by change of T.

54
00:04:24,330 --> 00:04:30,690
Additionally, optimal trajectory in terms of time, namely the trajectory that's executed in minimum

55
00:04:30,690 --> 00:04:38,310
time, can be determined by setting Q1 and Q2 or T to maximum permissible velocity and acceleration

56
00:04:38,310 --> 00:04:40,170
limits and determined.

57
00:04:40,350 --> 00:04:40,740
10.

58
00:04:42,180 --> 00:04:42,660
OK.

59
00:04:42,750 --> 00:04:43,080
OK.

60
00:04:43,170 --> 00:04:45,060
Let's see it in the example.

61
00:04:45,120 --> 00:04:49,620
Let's assume that we are given this quick trajectory in normalized form.

62
00:04:50,220 --> 00:04:57,870
So it's zero in time, zero one in time one and velocity of the trajectory is zero at the beginning

63
00:04:57,870 --> 00:04:59,160
and the end.

64
00:05:00,030 --> 00:05:05,730
Is on these boundary conditions, we can ride the system of equations and determine coefficients for

65
00:05:05,730 --> 00:05:12,060
the normalized trajectory after a more efficient have been determined, coefficients have been determined,

66
00:05:12,330 --> 00:05:18,720
normalized trajectory can be constructed and velocity acceleration and other higher order derivatives

67
00:05:18,720 --> 00:05:20,460
can be found if required.

68
00:05:21,210 --> 00:05:27,630
Now let's determine the maximal values of velocity and acceleration for the maximum value of the velocity,

69
00:05:27,630 --> 00:05:30,630
we have to determine the instant total we are.

70
00:05:30,630 --> 00:05:32,670
QM one will be maximum.

71
00:05:33,030 --> 00:05:40,020
We can find it by making its derivative equal to zero, which gives value of zero point five for thought.

72
00:05:40,500 --> 00:05:46,800
If you plug this a volley in velocity formula, we will get this for the maximum value of the normalized

73
00:05:46,800 --> 00:05:48,090
trajectory velocity.

74
00:05:48,630 --> 00:05:52,980
From this, we can easily find the maximum velocity of the original trajectory.

75
00:05:53,490 --> 00:05:56,280
This can be determined from Equation 1.0 zero.

76
00:05:56,970 --> 00:06:00,180
We can do the same for acceleration also.

77
00:06:00,420 --> 00:06:02,310
And here is the value of it.

78
00:06:03,240 --> 00:06:09,930
Now, let's assume that the initial point of the trajectory is 10 and final point is 50, which gives

79
00:06:09,930 --> 00:06:11,910
lengths of h or 40.

80
00:06:12,510 --> 00:06:17,970
Maximum permissible velocity and acceleration values are given a certain age, respectively.

81
00:06:18,450 --> 00:06:24,720
By plugging them into the above formulas we have obtained, we can determine timespan of D that will

82
00:06:24,720 --> 00:06:29,010
help us to execute trajectory while abiding by limits.

83
00:06:29,520 --> 00:06:33,510
As you can see, we have formed two different values for T.

84
00:06:34,650 --> 00:06:44,550
We will surely find their maximum, namely two, because if you find their minimum, then while acceleration

85
00:06:44,550 --> 00:06:52,260
will be in the limits velocity, what sets read which velocity would cause the mothers to saturate actuators

86
00:06:52,260 --> 00:06:54,510
to saturate, which we don't want.

87
00:06:54,970 --> 00:07:02,160
Indeed, you can do this exact calculation for even higher degrees of polynomials, and you will notice

88
00:07:02,160 --> 00:07:08,470
that while the degree of polynomial increases name, smoothness of the trajectory increases.

89
00:07:08,480 --> 00:07:11,010
This time Ti also increases.

90
00:07:11,370 --> 00:07:18,420
So if you want to achieve smoother trajectory, you will have to execute it in larger time span.

91
00:07:18,780 --> 00:07:19,240
Why?

92
00:07:19,830 --> 00:07:23,370
Because your velocity acceleration becomes smoother.

93
00:07:23,670 --> 00:07:29,040
So a robot cannot accelerate instantly, so or decelerate instantly.

94
00:07:29,430 --> 00:07:33,660
So it takes more time to execute smoother trajectory.
