Update 'non-ros-files/Programming_Rules.md'

This commit is contained in:
winterhalderp 2021-04-20 12:27:31 +02:00
parent 60313c1be1
commit 9dcd88503b
1 changed files with 3 additions and 0 deletions

View File

@ -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_).