[Service Introspection] Support echo verb for ros2 service cli#732
[Service Introspection] Support echo verb for ros2 service cli#732deepanshubansal01 wants to merge 20 commits intorollingfrom
Conversation
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
|
I gave this a run and it's great to see a working prototype going. I would like to see this tool behave in a way consistent to |
I see, makes sense. I guess right now the This being said we can also wait for the service to be present, I just made it similar to ros2 topic for now. In order to make it wait for service we can set The ros2 topic echo has ros2cli/ros2topic/ros2topic/verb/echo.py Lines 230 to 232 in 02c9e93 |
|
|
||
|
|
||
| class EchoVerb(VerbExtension): | ||
| """Echo a service.""" |
There was a problem hiding this comment.
Could you expand this docstring to provide a short explanation and an example ? It would be nice if we could write a simple test / self contained example for this feature.
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: deepanshu <deepanshubansal01@gmail.com>
Signed-off-by: Brian Chen <brian.chen@openrobotics.org>
…ros2/ros2cli into deepanshu/service-introspection
|
@deepanshubansal01 I've pushed a commit which tidies up the code a bit and removes the serialization bit. I've also tided up the output. Also, sorry for hijacking your branch. On a side note, if possible I'd like to close this PR and open up a new one so that we can have all of the PRs off a |
Signed-off-by: Brian Chen <brian.chen@openrobotics.org>
Sounds good to me. You can open a new PR, this PR also contains some changes related to unit tests which we can ignore in the new PR since they were in progress. Unit tests can be added in the new PR though. |
|
I opened #745. Closing in lieu of that PR. |
Related to the proposed service introspection REP (ros-infrastructure/rep#360)
This PR implements the cli for echoing service events.
ros2 service echo /name_of_serviceDepends on ros2/rosidl_runtime_py#17 for deserializing bytes type data and echoing contents to the user.
Connects to: ros2/ros2#1285
Signed-off-by: deepanshu deepanshubansal01@gmail.com