[launch_pytest] RegisterEventHandler / OnProcessExit not processed correctly.

Abierto
#684 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
38/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
testing, tooling

Línea de trabajo

Empieza reproduciendo la configuración de launch_pytest con la descripción de lanzamiento de Python incluida, RegisterEventHandler y OnProcessExit que se muestran en el informe. Sigue cómo la descripción incluida procesa el controlador de eventos y, a continuación, verifica que joint_state_publisher se inicie después de que station_setup_node termine; el issue estará terminado cuando este comportamiento coincida con la configuración directa de la descripción de lanzamiento.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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!

Lenguaje dominante
Python
Estrellas
156
Forks
200
Merge medio
2 d 11 h
PR fusionados (30 d)
11

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ros2/launch

Todos los issues de ros2/launch

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.