Commit 5816cdc3 authored by CANNERE Xavier's avatar CANNERE Xavier
Browse files

ajout topic6 (pas commencé) + modif topic5

parent 89cc0701
......@@ -14,4 +14,5 @@ Welcome to my ROS2 Tutorial!
Producer / Consumer
ROS2 : Producer / Consumer
We'll create only with ros2 a system with publisher and listener to understand nodes
Step 1 : Create the package
......@@ -12,6 +14,8 @@ First we'll create the package with these following lines::
Step 2 : Create the producer
The producer is the node who'll publish information
Open QtCreator, create a new file called ``producer.cpp`` into ``/src`` of ``pkg_producer`` and paste block by block::
#include <chrono>
......@@ -68,6 +72,8 @@ This is the main function.
Step 3 : Create the consumer
The consumer is a listener who'll collect information from the publisher
Create new node called consumer.cpp and paste these code::
#include <memory>
Following visual target
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment