From f705aec1d66ff35f3ca0ee333fcec6dbb0448cd0 Mon Sep 17 00:00:00 2001 From: winterhalderp Date: Tue, 20 Apr 2021 11:31:23 +0200 Subject: [PATCH] Update 'non-ros-files/Programming_Rules.md' --- non-ros-files/Programming_Rules.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/non-ros-files/Programming_Rules.md b/non-ros-files/Programming_Rules.md index 2b79bbc..2d51da8 100644 --- a/non-ros-files/Programming_Rules.md +++ b/non-ros-files/Programming_Rules.md @@ -23,6 +23,10 @@ colcon_workspace/ |- pubsub/ |- pubsub_msg/ ``` +The `src` directory is also the place where you create your new packages using `ros2 pkg create ...` and not in the root of the workspace. + +The next chapters will describe the content of the files inside a package directory. However, the occuring files depend on the type of package (`ament_cmake` for C++ scripts or `ament_python` for Python scripts). This is described in detail [here](https://docs.ros.org/en/foxy/Tutorials/Creating-Your-First-ROS2-Package.html). The following chapters only describe Python packages. + ## setup.py The file `//setup.py` defines how to call your scripts using the command line. This results in commands such as