Skip to content

[ros2 topic pub][ros2 service call] Cannot populate nested arrays #59

Closed

Description

@mikaelarguedas

Bug report

Steps to reproduce issue

ros2 topic pub /chatter test_msgs/DynamicArrayNested "{primitive_values: [{string_value: 'foo', int8_value: 42}]}"

Expected behavior

Populate and send a DynamicArrayNested message with the following content:

test_msgs.msg.DynamicArrayNested(primitive_values=[test_msgs.msg.Primitives(bool_value=False, byte_value=b'\x00', char_value='\x00', float32_value=0.0, float64_value=0.0, int8_value=42, uint8_value=0, int16_value=0, uint16_value=0, int32_value=0, uint32_value=0, int64_value=0, uint64_value=0, string_value='foo')])

Actual behavior

$ ros2 topic pub /chatter test_msgs/DynamicArrayNested "{primitive_values: [{string_value: 'foo', int8_value: 1}]}"
Failed to populate field 'primitive_values': The 'primitive_values' field must be a set or sequence and each value of type 'Primitives'

Additional information

The tool has currently no way of knowing what type the fields of the array should be. See ros2/rosidl#243 for more information about the features required to get this working

Activity

  1. added
    bug
    on Oct 24, 2017
  2. added
    help wanted
    on Feb 22, 2018
  3. added
    in progress
    in review
    and removed
    in progress
    on Feb 17, 2019
  4. mikaelarguedas commented on May 3, 2019

    @mikaelarguedas
    MemberAuthor
  5. removed
    in review
    on May 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bughelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions