Skip to content

[ros2interface] does not show "expanded" message definition #348

Closed

Description

@wjwwood

Feature request

Feature description

In ROS 1 rosmsg show would show you the recursively expanded message fields, whereas in ROS 2 at the moment ros2 interface show only shows you the fields of the immediate message you specify.

For example, in ROS 1 (from https://wiki.ros.org/ROS/Tutorials/UnderstandingTopics#Using_rostopic_type):

$ rosmsg show geometry_msgs/Twist
geometry_msgs/Vector3 linear
  float64 x
  float64 y
  float64 z
geometry_msgs/Vector3 angular
  float64 x
  float64 y
  float64 z

And the equivalent in ROS 2:

% ros2 interface show geometry_msgs/msg/Twist
# This expresses velocity in free space broken into its linear and angular parts.

Vector3  linear
Vector3  angular

It does, however, show the comments in the message file, which may be nice to have some times.

Also, as a side note, this command takes almost 2 seconds to run on my macbook, but I'm not sure why...

Activity

  1. added
    enhancement
    help wanted
    on Oct 4, 2019
  2. changed the title [-][ros2msg] does not show "expanded" message definition[/-] [+][ros2interface] does not show "expanded" message definition[/+] on Oct 21, 2019
  3. sonpeppers commented on Dec 30, 2019

    @sonpeppers

    This seems like a good enhancement for beginner, I'd like to take this one

  4. jacobperron commented on Jan 17, 2020

    @jacobperron
    Member

    @sonpeppers Great! Let me know if you have any questions.

  5. audrow commented on May 21, 2020

    @audrow
    Member

    @sonpeppers How is this going? I'm thinking about giving it a try.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions