Skip to content

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

@mikaelarguedas

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

Metadata

Metadata

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