-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Service Introspection] Support echo verb for ros2 service cli #732
Conversation
Signed-off-by: deepanshu <[email protected]>
Signed-off-by: deepanshu <[email protected]>
Signed-off-by: deepanshu <[email protected]>
Signed-off-by: deepanshu <[email protected]>
Signed-off-by: deepanshu <[email protected]>
Signed-off-by: deepanshu <[email protected]>
Signed-off-by: deepanshu <[email protected]>
Signed-off-by: deepanshu <[email protected]>
Signed-off-by: deepanshu <[email protected]>
Signed-off-by: deepanshu <[email protected]>
Signed-off-by: deepanshu <[email protected]>
Signed-off-by: deepanshu <[email protected]>
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we should add a test to test_cli.py.
Signed-off-by: deepanshu <[email protected]>
Signed-off-by: deepanshu <[email protected]>
Signed-off-by: deepanshu <[email protected]>
Signed-off-by: deepanshu <[email protected]>
Signed-off-by: deepanshu <[email protected]>
Signed-off-by: Brian Chen <[email protected]>
…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 <[email protected]>
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_service
Depends 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 [email protected]