Skip to content

Add ros2interface #223

Closed
Closed

Description

@jacobperron

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 ...

Activity

  1. added
    enhancement
    on Apr 17, 2019
  2. artivis commented on Jun 28, 2019

    @artivis
    Contributor

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

  3. jacobperron commented on Jun 28, 2019

    @jacobperron
    MemberAuthor

    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.

  4. jacobperron commented on Jun 28, 2019

    @jacobperron
    MemberAuthor

    Closed by #288

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions