Service Introspection Documentation and Tutorial#2981
Closed
Service Introspection Documentation and Tutorial#2981
Conversation
14 tasks
Signed-off-by: Brian Chen <brian.chen@openrobotics.org>
290fe44 to
923d509
Compare
fujitatomoya
reviewed
Mar 3, 2024
|
|
||
| Related PR: `ros2/ros2cli#749 <https://github.com/ros2/ros2cli/pull/749>`_ | ||
|
|
||
| Service Introspection |
Collaborator
There was a problem hiding this comment.
we already have this in release note.
ros2_documentation/source/Releases/Release-Iron-Irwini.rst
Lines 58 to 70 in 39caeba
Comment on lines
+203
to
+227
| 3.2 Recording Services | ||
| ~~~~~~~~~~~~~~~~~~~~~~ | ||
|
|
||
| Note: this feature is avaliable only from in ``rolling ridley`` and ``iron irwini`` onwards. | ||
|
|
||
| You can record services as well. | ||
|
|
||
|
|
||
| Run the following command: | ||
|
|
||
| .. code-block:: console | ||
|
|
||
| ros2 bag record --services <service_name> | ||
|
|
||
|
|
||
| ``ros2 bag record --services`` is a layer of syntactic sugar for ``ros2 bag record`` and will record the service event messages published to ``<service_name>/_service_event``. | ||
| Note that this will only work if service introspection is currently enabled for the services you are recording. | ||
|
|
||
| Though one can play back and introspect the service event messages there is currently no support for replaying services i.e. mocking client requests via ``ros2 bag play``. | ||
|
|
||
| For more information see REP2012_. | ||
|
|
||
| .. _REP2012: https://github.com/ros-infrastructure/rep/pull/360 | ||
|
|
||
|
|
Collaborator
There was a problem hiding this comment.
actually recording service is already implemented in rosbag2.
this will be handled after ros2/rosbag2#1481 all together.
|
|
||
| .. image:: images/spawn.png | ||
|
|
||
| 7 ros2 service echo |
Collaborator
|
#4199 replaces this. |
Contributor
|
Closing since we did this in #4199. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding docs for service introspection (ros2/ros2#1285). Leaving as draft until the feature actually gets merged in.
Signed-off-by: Brian Chen brian.chen@openrobotics.org