From 9dcd88503b652e73c3f4d4353e167ccf23be2001 Mon Sep 17 00:00:00 2001 From: winterhalderp Date: Tue, 20 Apr 2021 12:27:31 +0200 Subject: [PATCH] Update 'non-ros-files/Programming_Rules.md' --- non-ros-files/Programming_Rules.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/non-ros-files/Programming_Rules.md b/non-ros-files/Programming_Rules.md index fc08369..2a4f051 100644 --- a/non-ros-files/Programming_Rules.md +++ b/non-ros-files/Programming_Rules.md @@ -67,3 +67,6 @@ This is also done in the background when creating a new package and defining dep for example `ros2 pkg create pubsub_2 --dependencies std_msgs` This command creates the new package `pubsub_2` but already links it to the ROS standard messages `std_msgs` so they are available. + +## pubsub/ +The example package `pubsub/` contains a directory of the same name as the package. This is where you place your Python scripts. Inside this directory you are free to do as you please, however keep in mind that you need to link your main script (eg. `listener.py`) to a name later on (using _setup.py_).