Skip to content

Cannot/don't know how to publish message with byte[] field #760

@cadmus-to

Description

@cadmus-to

Bug report

Required Info:

  • Operating System:
    • Ubuntu 20.04
  • Installation type:
    • binaries
  • Version or commit hash:
    • ros2cli 0.13.4
  • DDS implementation:
    • rmw_cyclonedds_cpp: 0.22.5
  • Client library (if applicable):
    • N/A

Steps to reproduce issue

Trying to ros2 topic pub a std_msgs/msg/ByteMultiArray message. I have tried:

bash ros2 topic pub -1 /whatever std_msgs/msg/ByteMultiArray "{data: [{3}, {4}]}"

and

bash ros2 topic pub -1 /whatever std_msgs/msg/ByteMultiArray "{data: [0x03, 0x04]}" 

Expected behavior

Successful publishing.

Actual behavior

Error response:

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

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions