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.
__Table of Content__
* [CMake Package (eg. /pubsub_msg)](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#cmake-package-eg-pubsub_msg)
* [Create CMake Package](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#1-create-cmake-package)
* [Create Message Files](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#2-create-message-files)
* [Configure CMakeLists.txt](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#3-configure-cmakeliststxt)
* [Configure package.xml](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#4-configure-packagexml)
* [Build Package](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#5-build-package)
* [Source newly built workspace](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#6-source-newly-built-workspace)
* [Check functionality](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#7-check-functionality)
* [Python Package (eg. /pubsub)](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#python-package-eg-pubsub)
* [Create Python Package](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#1-create-python-package)
* [Write Python Scripts](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#2-write-python-scripts)
* [Configure package.xml](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#3-configure-packagexml)
* [Build Package](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#4-build-package)
* [Source newly built workspace](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#5-source-newly-built-workspace)
* [Run scripts](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#6-run-scripts)
* [Sources](https://github.com/patrickw135/pubsub/blob/master/instructions_custom_topics.md#sources)
* [CMake Package (eg. /pubsub_msg)]()
* [Create CMake Package]()
* [Create Message Files]()
* [Configure CMakeLists.txt]()
* [Configure package.xml]()
* [Build Package]()
* [Source newly built workspace]()
* [Check functionality]()
* [Python Package (eg. /pubsub)]()
* [Create Python Package]()
* [Write Python Scripts]()
* [Configure package.xml]()
* [Build Package]()
* [Source newly built workspace]()
* [Run scripts]()
* [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
* 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
When using custom interfaces in python scripts these must be imported into the python script first