Skip to content

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

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

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