Skip to content

[ros2topic] ros2 topic pub does not seem to parse arrays of messages #191

Closed

Description

@mxgrey

Bug report

Required Info:

  • Operating System:
    • Ubuntu 18.04
  • Installation type:
    • Source
  • Version or commit hash:
  • DDS implementation:
    • Fast-RTPS
  • Client library (if applicable):
    • N/A

Steps to reproduce issue

Run the following from the command line

$ ros2 topic pub some_pose_array geometry_msgs/PoseArray "{header: {stamp: {sec: 1, nanosec: 2}, frame_id: some_frame}, poses: [{position: {x: 0, y: 1, z: 2}, orientation: {x: 3, y: 4, z: 5, w: 6}}]}"

Expected behavior

The message gets published

Actual behavior

The console prints:

Failed to populate field 'poses': The 'poses' field must be a set or sequence and each value of type 'Pose'

Additional information

The specific example above isn't important, but it seems that ros2 topic pub cannot currently parse arrays of message types.

Activity

  1. changed the title [-]ros2 topic pub does not seem to parse arrays of messages[/-] [+][ros2topic] ros2 topic pub does not seem to parse arrays of messages[/+] on Jan 25, 2019
  2. added
    ready
    on Jan 31, 2019
  3. jubeira commented on Feb 14, 2019

    @jubeira

    @cottsay would you please assign this one to me? Thanks in advance!

  4. mikaelarguedas commented on Feb 17, 2019

    @mikaelarguedas
    Member

    This looks like a duplicate of #59

    I submitted a fix at #197 if you guys want to give it a try

  5. mxgrey commented on Feb 17, 2019

    @mxgrey
    Author

    Sorry for duplicating the issue! You're right; it's the same problem. I'll close this to avoid duplicated tickets, and I'll test the fix at the first chance that I get.

  6. removed
    ready
    on Feb 17, 2019
  7. jubeira commented on Feb 21, 2019

    @jubeira

    Just for the record, I tested the fix with #197 and ros2/rosidl_python#30 and it worked fine 👍

  8. added a commit that references this issue on Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions