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

This commit is contained in:
winterhalderp 2021-04-20 12:16:40 +02:00
parent 7c73a4e9a5
commit 0fe258af1e

View File

@ -61,3 +61,9 @@ The file _package.xml_ is used to link dependencies to this package. For example
| |
pubsub <---- depends on *.msg files ----< pubsub_msg
```
This is also done in the background when creating a new package and defining dependencies
`ros2 pkg create <pkg-name> --dependencies [deps]`
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.