Update 'instructions_custom_topics.md'
This commit is contained in:
parent
b5d9b51371
commit
7d9e888f72
@ -125,14 +125,14 @@ publishing #1: pubsub_msg.msg.CustomMsg2(pitch_ctrl=33.33, yaw_ctrl=0.5)..._
|
|||||||
## Python Package (eg. /pubsub)
|
## Python Package (eg. /pubsub)
|
||||||
This package contains your scripts, programs and libraries. After building the workspace (`colcon build`) the custom messages are available to all other packages.
|
This package contains your scripts, programs and libraries. After building the workspace (`colcon build`) the custom messages are available to all other packages.
|
||||||
|
|
||||||
This package can be created as a CMake (C++) package or as a python package depending on your coding preference.
|
This package can be created as a CMake (C++) package or as a python package depending on your coding preference, e.g.
|
||||||
* C++: `ros2 pkg create --build-type ament-cmake <package_name>`
|
* C++: `ros2 pkg create --build-type ament_cmake <package_name>`
|
||||||
* Python: `ros2 pkg create --build-type ament-python <package_name>`
|
* Python: `ros2 pkg create --build-type ament_python <package_name>`
|
||||||
|
|
||||||
|
|
||||||
<package_name> directory:
|
<package_name> directory:
|
||||||
* This directory contains your python scripts (eg. listener.py)
|
* This directory contains your python scripts (eg. listener.py)
|
||||||
* Also place the non-standard libraries in this directory and import the library in your python scripts
|
* Also place non-standard libraries in this directory and import them in your python scripts
|
||||||
|
|
||||||
|
|
||||||
### 1. Create Python Package
|
### 1. Create Python Package
|
||||||
|
Loading…
Reference in New Issue
Block a user