[launch_pytest] RegisterEventHandler / OnProcessExit not processed correctly.
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先,使用报告中所示的随附 Python launch description、RegisterEventHandler 和 OnProcessExit,复现 launch_pytest 设置。跟踪随附的 description 如何处理事件处理器,然后验证 station_setup_node 退出后 joint_state_publisher 会启动;当此行为与直接的 launch-description 设置一致时,该 issue 即完成。
由索引模型根据 Issue 内容生成。
描述
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!
- 主要语言
- Python
- 星标
- 156
- 派生
- 200
- 平均合并
- 2 天 11 小时
- 30 天内合并 PR
- 11
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ros2/launch 的其他 Issue
-
Use a relative target for the `latest` log symlink so it survives different absolute mount paths (host/Docker)可能已有人在做 @Old-Ding 于 139 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
ros2/launch#978 · 1 个 reaction ·
维护者通常 1 天内回复
-
Add OpaqueFunction to list at docs.ros.org可能重新可做 关联的 PR 已关闭且未合并。 未关闭bug help wanted
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 30/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 55/100
维护者通常 1 天内回复
-
[launch_testing] pytest>8.1 dropped the legacy "path" argument from its internal hooks on humble可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug
难度 3/5 1-2 天 新手友好度 55/100
维护者通常 1 天内回复
相似的 Issue
-
needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
gke-labs/kube-agents#7441 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 78/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
bug confirmed issue
难度 2/5 1-3 小时 新手友好度 76/100
open-webui/open-webui#35142 · 1 条评论 ·
维护者通常 1 天内回复