Questions¶
Introduction¶
In this workshop, you shall deepen your ROS2 knowledge by creating a ROS2 package and a ROS2 node on your own.
Task: ROS2 package¶
Create a package called hello_world inside your workspace robot_ws.
Task: ROS2 node¶
Create a node named hello_world.py inside the hello_world package. The task of the node is to continously print to terminal with a delay of 1 second. The output to the terminal should be:
“Hello ROS2 World!”
Counter for the current number of prints.
Task: Parameters¶
Modify the existing node to implement two parameters:
freq → change the rate at which the text is displayed
text → change the text that is displayed
Task: Launch file¶
Write a launch file to perform the following tasks:
Start the hello_world.py node.
Set different parameter values for:
freq → rate at which the text is displayed
text → text that is displayed