Skip to content
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

Add ros2interface #223

Closed
jacobperron opened this issue Apr 17, 2019 · 3 comments
Closed

Add ros2interface #223

jacobperron opened this issue Apr 17, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@jacobperron
Copy link
Member

Feature request

Feature description

Originally proposed in #202 (comment).

Replace ros2 msg and ros2 srv commands with ros2 interface, which also can handle action definitions (and possible more general IDL definitions).

Example usage:

# List all .msg, .srv, and .action types available
 $ ros2 interface list
 Messages:
     # Message types listed here
 Services:
     # Service types listed here
 Actions:
     # Action types listed here

 # Only list .msg types
 $ ros2 interface list --only-msg
 Messages:
     # Message types listed here

 # List all packages that generate messages, services, or actions
 $ ros2 interface packages
 action_msgs
 builtin_interfaces
 diagnostic_msgs
 # etc ...

 # Only list packages that generate actions
 $ ros2 interface packages --only-actions
 action_msgs
 example_interfaces
 test_msgs
 # etc ...
 
 # Show an interface definition
 $ ros2 interface show example_interfaces/Fibonacci
 Action:
     # Goal
     int32 order
     ---
     # Result
     int32[] sequence
     ---
     # Feedback
     int32[] sequence
 
 # In case of ambiguity (e.g. message and service with same name), show both
 $ ros2 interface show test_msgs/Primitives
 Message:
     bool bool_value
     byte byte_value
     char char_value
     # etc ...
 Service:
     bool bool_value
     byte byte_value
     char char_value
     # etc ...
     ---
     bool bool_value
     byte byte_value
     char char_value
     # etc ...
@artivis
Copy link
Contributor

artivis commented Jun 28, 2019

After the merge of #288, will ros2 msg and ros2 srv be deprecated or are they all going to live side by side ?

@jacobperron
Copy link
Member Author

After the merge of #288, will ros2 msg and ros2 srv be deprecated or are they all going to live side by side ?

IMO they could be deprecated for Eloquent, but open for discussion.

@jacobperron
Copy link
Member Author

Closed by #288

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants