1

00:00:08,692  -->  00:00:14,991
Hey now we will learn about the ros nodes So ros node is a modular identity that can have publisher

2

00:00:14,991  -->  00:00:17,700
 subscriber services and parameters for

3

00:00:17,700  -->  00:00:23,640
example if a person is a Node it can hear
it means it is subscribing and it can speed

4

00:00:23,640  -->  00:00:30,480
publishing let's learn more about the ros nodes
here is an illustration that explains the ros nodes

5

00:00:30,480  -->  00:00:34,320
and here you can see the nodes in the
circle there are three Nodes and they

6

00:00:34,320  -->  00:00:40,380
are communicating over the topic and there's a
service So currently do not know the service so you

7

00:00:40,380  -->  00:00:44,460
do not need to spend much time over to
it we will learn these things in the future

8

00:00:50,580  -->  00:01:00,060
ros2 node list here is the command
that will list all the active nodes

9

00:01:00,060  -->  00:01:05,760
and currently we have just one active node
we will open up another terminal and uh

10

00:01:08,340  -->  00:01:11,280
so here we have another node
let's see again the list

11

00:01:12,480  -->  00:01:25,380
teleop turtle and the turtlesim now we have two nodes let's monitor their connection using rqt_graph

12

00:01:30,300  -->  00:01:32,460
here we can select all and

13

00:01:36,120  -->  00:01:43,560
here are the node and there connection between them
we can select here nodes only and refresh and

14

00:01:43,560  -->  00:01:48,600
there you will see a simpler illustration do you
remember previously we used the remap keyword

15

00:01:48,600  -->  00:02:00,360
uh we use it to remap a topic now we will
remap a node so Ros 2 run turtlesim

16

00:02:00,360  -->  00:02:11,700
underscore node minus minus Ros minus args minus
remap and what we have to remap is the node

17

00:02:15,960  -->  00:02:23,460
node colon equal and we can
enter any name so let's enter

18

00:02:25,560  -->  00:02:27,540
turtlesimbot

19

00:02:30,900  -->  00:02:38,100
here we have another window a similar
one so let's see the list of ros nodes we have

20

00:02:38,100  -->  00:02:46,620
the three nodes right now this one new node turtlesim bot and we can also see the topic ros2

21

00:02:47,340  -->  00:02:56,760
topic list so we have three topics that are
related to the turtlesim we have two windows

22

00:02:56,760  -->  00:03:04,080
of turtlesim but we have three topics the topics
remain same because we just have changed the name

23

00:03:04,080  -->  00:03:12,960
of the Node let's see if we can operate both
turtlesim windows or with just one teleop

24

00:03:13,560  -->  00:03:20,880
yeah they're moving absolutely they are moving to
get a complete information about a node to learn

25

00:03:20,880  -->  00:03:27,120
about it's topic subscribers publisher and
the services action we can use a command ros2

26

00:03:27,780  -->  00:03:33,000
node info and the node name we will enter

27

00:03:35,040  -->  00:03:46,980
Turtlesim bot and it has displayed a list
of different things like subscriber publisher

28

00:03:46,980  -->  00:03:54,900
server and the client service clients
and uh actual server rqt underscore graph

29

00:04:01,500  -->  00:04:07,440
and here you can see the illustration of
the connection between the nodes and the topics

30

00:04:07,440  -->  00:04:11,460
so congratulations you have
learned to basics of ros nodes

31

00:04:15,900  -->  00:04:16,400
oh
