[launch_pytest] RegisterEventHandler / OnProcessExit not processed correctly.

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

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
testing, tooling

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện thiết lập launch_pytest với Python launch description đi kèm, RegisterEventHandler và OnProcessExit được nêu trong báo cáo. Theo dõi cách description đi kèm xử lý event handler, sau đó xác minh rằng joint_state_publisher khởi động sau khi station_setup_node thoát; issue được hoàn tất khi hành vi này khớp với thiết lập launch-description trực tiếp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

backlog

Bug report

Required Info:

  • Operating System:
    • Ubuntu 22.04
  • Installation type:
    • Docker
  • Version or commit hash:
    • ros:rolling-ros-core-jammy
  • Client library (if applicable):
    • launch_pytest
Steps to reproduce issue

I have a launch file with some action that starts other nodes when one exits.

on_station_setup_exit = RegisterEventHandler(
    OnProcessExit(
        target_action=station_setup_node,
        on_exit=[
            joint_state_publisher,
        ],
    )
)

I am creating a launch description for test using that launch file.

full_station_launch = IncludeLaunchDescription(
    PythonLaunchDescriptionSource(
        [pylon_pkg_prefix, "/launch/station.launch.py"]
    )
)

I am currently trying to port from launch_testing to launch_pytest. Everything worked fine with the previous package, but the joint_state_publisher never launches with the new setup. Everything runs if I remove the RegisterEventHandler bit from the launch file and add to launch_description directly. Looking at the launch log output, I can see that station_setup_node exits but joint_state_publisher never starts.

Any pointers would be a huge help, Thanks!

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.