1
00:00:00,150 --> 00:00:05,460
Previously what we did, we created a VOI file and then launched it with a launch file.

2
00:00:06,150 --> 00:00:11,940
Okay, I robot was there are mes was there and our camera body was there.

3
00:00:12,060 --> 00:00:14,370
This time we are going to make some changes into that.

4
00:00:14,880 --> 00:00:21,600
There was an add the file that we just copied from another launch file was spawning the robot and when

5
00:00:21,600 --> 00:00:29,610
it is spawning the robot in the world file, the robot is already dead and that is what was causing

6
00:00:29,610 --> 00:00:30,210
that error.

7
00:00:30,210 --> 00:00:36,420
So I just commented out and next time when you will run it, this line will not appeared, although

8
00:00:36,420 --> 00:00:42,900
these red lines will appear because I have deleted the bots in which are which, which are included

9
00:00:42,900 --> 00:00:43,890
in the gazebo.

10
00:00:44,400 --> 00:00:54,780
But no, what we were aiming for was if you open up this void file void, where is the simulation.

11
00:00:55,200 --> 00:00:59,610
We want this camera model to be up at a certain height.

12
00:00:59,910 --> 00:01:09,750
What I am going to do is to close this and I am going to find out where this camera model is actually

13
00:01:09,750 --> 00:01:10,290
defined.

14
00:01:11,400 --> 00:01:19,440
If I say model and I hope this is the thing model untitled, this is the camera model.

15
00:01:19,950 --> 00:01:22,410
And where does this tag hangs?

16
00:01:23,040 --> 00:01:24,000
It ends here.

17
00:01:24,420 --> 00:01:24,780
Okay.

18
00:01:25,050 --> 00:01:31,950
So I have found the model and I have to include inside of it the things that I want to do.

19
00:01:32,430 --> 00:01:40,020
The first thing, if I can find the link in this model link, start at this point and link ends at this

20
00:01:40,020 --> 00:01:45,220
point before just ending the link or you can add in between.

21
00:01:45,240 --> 00:01:54,600
I will be adding this sensor properties and if I just based those sensor properties, here are cameras

22
00:01:54,600 --> 00:01:56,700
installed and that's it.

23
00:01:57,270 --> 00:02:03,870
You can install the camera to gazebo as well, but I like to edit this word file and add functionality

24
00:02:03,870 --> 00:02:06,900
into the specified models like this.

25
00:02:07,260 --> 00:02:09,000
So type this camera.

26
00:02:09,840 --> 00:02:11,820
It is going to be named camera one.

27
00:02:12,000 --> 00:02:18,120
I would say camera or camera name is heard.

28
00:02:18,120 --> 00:02:25,320
There is nothing like base and parent and child because it is directly pasted as a sensor inside of

29
00:02:25,320 --> 00:02:25,800
our model.

30
00:02:26,490 --> 00:02:33,090
I want to add one thing, by the way, and that is I want it to visualize.

31
00:02:33,750 --> 00:02:36,660
Visualize is going to be set true.

32
00:02:36,990 --> 00:02:39,390
So I can visually see what the camera is looking at.

33
00:02:39,390 --> 00:02:40,170
It helps a lot.

34
00:02:40,380 --> 00:02:42,300
800 by 800 RGV.

35
00:02:44,700 --> 00:02:45,570
Camera Controller.

36
00:02:45,570 --> 00:02:48,960
This is the plug in that it is going to use and always on.

37
00:02:48,960 --> 00:02:50,940
Yes, I want it to be always on.

38
00:02:52,710 --> 00:02:55,230
There is one thing that I also want to change here.

39
00:02:56,520 --> 00:03:01,200
30th piece is going to be the values and static.

40
00:03:01,200 --> 00:03:07,170
Yes, static is basically defined as wherever the position of the model is.

41
00:03:07,170 --> 00:03:08,510
It is going to start.

42
00:03:08,520 --> 00:03:10,050
Gravity is not going to affect it.

43
00:03:10,050 --> 00:03:12,660
So one, I can move it any way I want.

44
00:03:12,960 --> 00:03:14,310
So camera is defined.

45
00:03:15,420 --> 00:03:23,880
Now let's run it and see if this actually makes sense or not without my let me guess he was running

46
00:03:23,880 --> 00:03:25,140
or not because he was not running.

47
00:03:25,140 --> 00:03:27,570
Let me pause it or stop it.

48
00:03:27,900 --> 00:03:29,130
Kill all available.

49
00:03:29,490 --> 00:03:30,660
GZ said what?

50
00:03:31,110 --> 00:03:33,680
There is no nothing running.

51
00:03:33,690 --> 00:03:36,210
What I have to do is to perform Colgan build.

52
00:03:36,210 --> 00:03:40,440
I have already written the command by to allow overriding MZ book.

53
00:03:42,330 --> 00:03:43,050
It's done.

54
00:03:43,050 --> 00:03:45,990
Let's launch everything we can.

55
00:03:48,600 --> 00:03:51,540
So this time we have to see about the error as well.

56
00:03:53,070 --> 00:04:01,760
Oops, there is some sort of error of error in that passing error reading and tag.

57
00:04:01,800 --> 00:04:02,220
Okay.

58
00:04:02,220 --> 00:04:05,640
When I pasted it did I copy the actual length.

59
00:04:05,670 --> 00:04:09,030
No, I started from the sensor tag and I did not copy this.

60
00:04:09,030 --> 00:04:12,240
And syntax syntax that has been called.

61
00:04:12,540 --> 00:04:16,080
So let's close this sensor as well.

62
00:04:16,590 --> 00:04:18,870
Performing the call can build again.

63
00:04:18,900 --> 00:04:25,980
Overriding on me is bought and now let me launch it and see if the spawn entity edit is happening or

64
00:04:25,990 --> 00:04:26,280
not.

65
00:04:29,800 --> 00:04:30,190
Okay.

66
00:04:30,190 --> 00:04:31,210
The camera is there.

67
00:04:31,210 --> 00:04:38,680
But before going into that same areas, because of the additional part that I've added, but I have

68
00:04:38,680 --> 00:04:43,240
deleted them manually and now you can see there is no spontaneity added.

69
00:04:43,240 --> 00:04:53,110
That was because of the virtual file was including the robot and the launch was also spawning that robot

70
00:04:53,110 --> 00:04:58,690
in visible with the same name as with what are the available topics to us or our topic list.

71
00:04:59,980 --> 00:05:00,850
Just curious.

72
00:05:02,860 --> 00:05:04,090
It is taking some time.

73
00:05:04,100 --> 00:05:04,720
Okay, come on.

74
00:05:04,720 --> 00:05:07,590
We lost it for the robot and now we have the camera topics says.

75
00:05:07,600 --> 00:05:13,870
But if we look at the simulation, our camera is now at a certain height and it is not falling.

76
00:05:13,870 --> 00:05:18,970
And we can see that camera is looking at something.

77
00:05:19,200 --> 00:05:26,800
And yes, if I put anything inside of the vision of the camera, we can see the camera is looking,

78
00:05:26,800 --> 00:05:28,600
but it is looking on the right side.

79
00:05:28,600 --> 00:05:30,460
I want it to look towards the me.

80
00:05:30,460 --> 00:05:39,430
So first I will make some changes if I think the requirement was 2.7 here and not in the ground plane.

81
00:05:39,580 --> 00:05:45,040
Sorry, the pause of this is not in the ground plane.

82
00:05:46,090 --> 00:05:48,490
I don't want to change the pose of ground plane.

83
00:05:49,090 --> 00:05:50,750
I want to change me.

84
00:05:50,800 --> 00:05:52,540
Is board me is untitled.

85
00:05:52,540 --> 00:05:58,180
Untitled is basically the camera pause of the camera.

86
00:05:58,390 --> 00:06:08,740
I want it to be 2.7, 2.7 and x 5.4 and 25.4.

87
00:06:08,950 --> 00:06:15,370
If we go into this specific model, it is hard to read because it is not colored and it is just the

88
00:06:15,370 --> 00:06:16,420
slight programming.

89
00:06:16,720 --> 00:06:20,650
I have to change the pose of our sensor only, not the whole body.

90
00:06:21,040 --> 00:06:28,630
So I will add a tag pause and that is going to contain the pause.

91
00:06:31,150 --> 00:06:33,340
060y0z.

92
00:06:33,370 --> 00:06:38,240
I don't want anything to be changing in the translation part in x axis or anything.

93
00:06:38,240 --> 00:06:38,700
You effects it.

94
00:06:38,710 --> 00:06:41,170
I want the orientation part, which is the next three things.

95
00:06:41,650 --> 00:06:42,490
The roll pitch.

96
00:06:42,490 --> 00:06:46,570
John I think it is a roll pitch angle 1.57.

97
00:06:46,570 --> 00:06:48,500
I want it to be rotated 90 degree.

98
00:06:48,550 --> 00:06:49,420
I have saved it.

99
00:06:49,990 --> 00:07:01,600
I want to be me or I'll overwrite on the existing files and when I launch it I hope I solved it.

100
00:07:01,600 --> 00:07:05,050
It is a hidden trial matter for me as well.

101
00:07:06,190 --> 00:07:10,300
Now you can see this camera is looking downwards.

102
00:07:10,300 --> 00:07:14,920
It has shifted its position and it is looking on the ground.

103
00:07:15,790 --> 00:07:19,330
There is a row board, the camera is working.

104
00:07:19,330 --> 00:07:21,520
Everything seems to work really great.

105
00:07:22,510 --> 00:07:28,220
What we want to do, we want to visualize what our camera is actually looking at.

106
00:07:28,510 --> 00:07:43,780
So I will go into always I was always do okay out of his is installed it to camera link.

107
00:07:44,380 --> 00:07:50,950
I want to look at what the camera's looking at so image topic is going to be added and on the image

108
00:07:50,950 --> 00:07:51,970
specific topic.

109
00:07:55,700 --> 00:07:57,290
Camera image raw.

110
00:07:57,650 --> 00:08:02,690
So you can see if I can bring it out here and I can stretch it.

111
00:08:02,750 --> 00:08:08,030
It can look on the math and I can do revision.

112
00:08:08,030 --> 00:08:11,540
People would be very happy to see that are up.

113
00:08:11,600 --> 00:08:19,730
Camera can clearly see things, but you can see the position of this camera is not perfect because the

114
00:08:19,730 --> 00:08:22,130
vision team would not be able to see the path here.

115
00:08:22,610 --> 00:08:25,520
So I have to shift the camera a little bit.
