1
00:00:00,090 --> 00:00:06,540
In the last lesson, we have seen how we can calculate trapezoidal trajectory over during calculation

2
00:00:06,540 --> 00:00:14,100
of the trajectory, we have imposed constant velocity, which was given by Cuvee Dot and obtained constant

3
00:00:14,100 --> 00:00:17,010
acceleration based on the given acceleration time.

4
00:00:17,880 --> 00:00:19,900
Now we can impose inability.

5
00:00:20,460 --> 00:00:20,760
No.

6
00:00:21,060 --> 00:00:25,290
Can we impose any velocity and acceleration time we want?

7
00:00:25,870 --> 00:00:31,680
Indeed, we have some constraints to consider, such as the actuator velocity and acceleration limits.

8
00:00:32,160 --> 00:00:39,660
Namely, if the impulse and the velocity and acceleration time we want, we can get velocity and acceleration

9
00:00:39,660 --> 00:00:42,900
that are higher than the capabilities of the actuator.

10
00:00:43,110 --> 00:00:48,270
And this will saturate the actuators and the trajectory will not be executed properly.

11
00:00:48,900 --> 00:00:55,560
So I move variables, namely constant velocity and acceleration and acceleration time are related with

12
00:00:55,560 --> 00:00:58,770
each other, and we have to obey some constraints.

13
00:00:59,460 --> 00:01:01,260
Let's determine these constraints.

14
00:01:01,800 --> 00:01:07,630
The first one is the first constraint is on acceleration time to.

15
00:01:08,490 --> 00:01:12,630
It has to be less than or equal to the half of the total time span.

16
00:01:13,200 --> 00:01:18,900
Venti is exactly T overture, then the linear segment will not appear.

17
00:01:20,610 --> 00:01:27,150
Then we have to consider the relation between constant acceleration and acceleration time to in order

18
00:01:27,150 --> 00:01:30,390
to get the relation between them, we have to analyze this graph.

19
00:01:30,900 --> 00:01:34,530
This is the usual orientation graph of the trapezoidal trajectory.

20
00:01:35,010 --> 00:01:40,170
Q m is nothing but the position point for the middle of the whole trajectory.

21
00:01:40,590 --> 00:01:44,770
We can find a easily, as we have seen before.

22
00:01:44,790 --> 00:01:53,940
Q A Excuse me, just take whatever formula for M first phase and plug to instead of T, then we can

23
00:01:53,940 --> 00:01:56,910
ride constant velocity equation in this way.

24
00:01:57,060 --> 00:02:05,160
Constant velocity is obtained at the end of the first phase, namely at time to by using Eq. from simple

25
00:02:05,160 --> 00:02:05,580
physics.

26
00:02:05,580 --> 00:02:07,110
You can calculate it easily.

27
00:02:07,580 --> 00:02:10,260
Of course, either that initial velocity is zero.

28
00:02:10,620 --> 00:02:18,000
And then if we denote the length of the trajectory as L and time span as T, we can write equations

29
00:02:18,000 --> 00:02:20,760
for CU m, a. M. very easily.

30
00:02:21,240 --> 00:02:27,090
Now we will take Eq. 1.0 and plug it into one point one.

31
00:02:27,720 --> 00:02:33,510
With some algebraic manipulations, we can get Equation one point two, which denotes the constraint

32
00:02:33,510 --> 00:02:37,620
on the choice of constant acceleration and acceleration time.

33
00:02:37,950 --> 00:02:44,880
So if you impose some velocity and acceleration time and obtained acceleration, you will have to check

34
00:02:44,880 --> 00:02:48,570
whether THC and acceleration fulfills this constraint.

35
00:02:49,410 --> 00:02:52,070
The third one is the constant velocity equation.

36
00:02:52,080 --> 00:02:56,430
This is not exactly a constraint, but formulation for constant velocity.

37
00:02:57,030 --> 00:02:59,820
We will find it by using Velocity Graph.

38
00:03:00,150 --> 00:03:06,570
As you know, the length of the trajectory is can because you can be fined by.

39
00:03:06,780 --> 00:03:09,780
It can be calculated by finding the area of the trapezoid.

40
00:03:10,320 --> 00:03:15,360
We can find the area of the trapezoid by summing individual areas for each phase.

41
00:03:15,600 --> 00:03:16,920
And this is the result.

42
00:03:17,340 --> 00:03:22,800
It's very easy to calculate because two shapes are right triangle, while the middle shape is just a

43
00:03:22,800 --> 00:03:23,520
rectangle.

44
00:03:24,030 --> 00:03:28,080
By manipulating this equation, we can get equation for velocity.

45
00:03:28,740 --> 00:03:34,380
After we have seen those three constraints, we can do some useful things with them during trajectory

46
00:03:34,380 --> 00:03:34,860
planning.

47
00:03:35,580 --> 00:03:42,540
We can assign desired acceleration time of T a and obtain constant acceleration from Eq..

48
00:03:42,540 --> 00:03:49,650
One point two As stay is specified, we can obtain constant velocity and check whether a constant velocity

49
00:03:49,650 --> 00:03:53,310
and acceleration values are compatible with actuator limits.

50
00:03:54,090 --> 00:04:01,560
Or we can assign constant acceleration value and obtain acceleration time to again from Eq. one point

51
00:04:01,560 --> 00:04:05,340
two then you can calculate constant velocity also.

52
00:04:05,910 --> 00:04:12,510
This case can be useful when you know maximum acceleration value for your actuator, so you can impose

53
00:04:12,510 --> 00:04:15,360
it and find acceleration time for the trajectory.

54
00:04:16,020 --> 00:04:19,110
Well, you can impose maximum velocity and acceleration.

55
00:04:19,110 --> 00:04:23,850
That actuator can output and then calculate T and acceleration time.

56
00:04:24,330 --> 00:04:31,260
This is very useful to obtain optimal trajectory in terms of minimizing time span of T, because as

57
00:04:31,260 --> 00:04:36,630
you impose maximum velocity and acceleration, you will get minimal execution time.

58
00:04:37,170 --> 00:04:38,970
Let's not analyze each case.

59
00:04:39,420 --> 00:04:43,770
In case one, acceleration time is specified from below.

60
00:04:43,770 --> 00:04:48,840
That time span has to be at least two times bigger than acceleration time.

61
00:04:49,650 --> 00:04:53,580
Then you can easily calculate velocity and acceleration values.

62
00:04:54,180 --> 00:04:59,220
Surely, you could use Equation one point two to find a compatible acceleration.

63
00:05:00,030 --> 00:05:06,360
Will get to verify that the velocity and acceleration values are compatible with actuator limits for

64
00:05:06,360 --> 00:05:09,660
keys to constant an acceleration imposed by us.

65
00:05:10,230 --> 00:05:17,400
We can impose it as maximum acceleration that actuator can output, then we can obtain acceleration

66
00:05:17,400 --> 00:05:24,720
time from Eq. one point to easily in case three constant velocity and acceleration are imposed.

67
00:05:25,350 --> 00:05:32,070
Indeed, by imposing the maximum permissible velocity and acceleration, we can obtain optimal trajectory

68
00:05:32,070 --> 00:05:33,900
in terms of execution time.

69
00:05:34,440 --> 00:05:41,580
We will get acceleration time by dividing velocity and acceleration because a time table or city will

70
00:05:41,610 --> 00:05:47,280
be the constant velocity we imposed and acceleration will be the acceleration we imposed.

71
00:05:47,760 --> 00:05:55,200
In order to obtain execution time of T, we can ride the form a low velocity and extract T from it by

72
00:05:55,200 --> 00:05:56,640
algebraic manipulation.

73
00:05:57,660 --> 00:06:04,950
This is the final expression for the T after we have plugged into the formula for Tay in the third and

74
00:06:04,950 --> 00:06:07,290
last part of the trapezoidal trajectory.

75
00:06:07,530 --> 00:06:12,870
We will talk about how to implement this trajectory method for multiple joints.
