Passing array args broken in XML backend

Đang mở
#633 3 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@hidmic đang làm issue này rồi.

Từ ngày 18/8/2022.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Bug report

Required Info:

  • Operating System:
    • MacOS 12.3
  • Installation type:
    • source
  • Version or commit hash:
    • humble
Steps to reproduce issue
<launch>
    <arg name="int_array" default="1,2,3,4,5,6,7" />

	<node pkg="test_node" name="test_node" exec="test_node">
		<param name="int_array"  value-sep="," value="$(var int_array)" />
	</node>
</launch>
Expected behavior

Should correctly pass the arg int_array as integer array to the node.

Actual behavior

Passes ['1,2,3,4,5,6,7'] instead:

[test_node-1] libc++abi: terminating with uncaught exception of type rclcpp::exceptions::InvalidParameterTypeException: parameter 'ids_to_ignore' has invalid type: Wrong parameter type, parameter {int_array} is of type {integer_array}, setting it to {string_array} is not allowed.```
Ngôn ngữ chính
Python
Star
156
Fork
200
Merge trung bình
2 ngày 11 giờ
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ros2/launch

Tất cả issue của ros2/launch

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.