ROS2 Code SimulatorWrite · Run · Learn
/chatterstd_msgs/String
Write a publisher that sends String messages on /chatter, and a subscriber that prints them.
Publisher (Python)publisher.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Terminal 1
$ 
/chatter
Subscriber (Python)subscriber.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Terminal 2
$