Update 'instructions_custom_topics.md'

This commit is contained in:
winterhalderp 2021-01-13 17:14:52 +01:00
parent 1dc7b7261d
commit 41ffd0cb1c
1 changed files with 17 additions and 17 deletions

View File

@ -8,22 +8,22 @@ For this at least two packages will be required:
The CMake package is required because the custom msg/srv/act files cannot be created inside the python package as this is not supported yet. The CMake package is required because the custom msg/srv/act files cannot be created inside the python package as this is not supported yet.
__Table of Content__ __Table of Content__
* [CMake Package (eg. /pubsub_msg)](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#cmake-package-eg-pubsub_msg) * [CMake Package (eg. /pubsub_msg)]()
* [Create CMake Package](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#1-create-cmake-package) * [Create CMake Package]()
* [Create Message Files](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#2-create-message-files) * [Create Message Files]()
* [Configure CMakeLists.txt](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#3-configure-cmakeliststxt) * [Configure CMakeLists.txt]()
* [Configure package.xml](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#4-configure-packagexml) * [Configure package.xml]()
* [Build Package](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#5-build-package) * [Build Package]()
* [Source newly built workspace](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#6-source-newly-built-workspace) * [Source newly built workspace]()
* [Check functionality](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#7-check-functionality) * [Check functionality]()
* [Python Package (eg. /pubsub)](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#python-package-eg-pubsub) * [Python Package (eg. /pubsub)]()
* [Create Python Package](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#1-create-python-package) * [Create Python Package]()
* [Write Python Scripts](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#2-write-python-scripts) * [Write Python Scripts]()
* [Configure package.xml](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#3-configure-packagexml) * [Configure package.xml]()
* [Build Package](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#4-build-package) * [Build Package]()
* [Source newly built workspace](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#5-source-newly-built-workspace) * [Source newly built workspace]()
* [Run scripts](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#6-run-scripts) * [Run scripts]()
* [Sources](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#sources) * [Sources]()
@ -137,7 +137,7 @@ This package can be created as a CMake (C++) package or as a python package depe
### 1. Create Python Package ### 1. Create Python Package
* Move to your workspace's source directory: `cd <workspace_path>/src` * Move to your workspace's source directory: `cd <workspace_path>/src`
* Create python package: `rps2 pkg create --build-type ament_python <pkg_name>` * Create python package: `ros2 pkg create --build-type ament_python <pkg_name>`
### 2. Write Python Scripts ### 2. Write Python Scripts
When using custom interfaces in python scripts these must be imported into the python script first When using custom interfaces in python scripts these must be imported into the python script first