Update 'non-ros-files/Programming_Rules.md'
This commit is contained in:
parent
60313c1be1
commit
9dcd88503b
@ -67,3 +67,6 @@ This is also done in the background when creating a new package and defining dep
|
|||||||
for example
|
for example
|
||||||
`ros2 pkg create pubsub_2 --dependencies std_msgs`
|
`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.
|
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_).
|
||||||
|
Loading…
Reference in New Issue
Block a user