Timer callbacks can be delayed when using simulation time
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 28/100
Línea de trabajo
Comienza con el manejador de saltos del reloj del temporizador y el procesamiento de la suscripción /clock por parte del executor; después, compara las rutas de SingleThreadedExecutor y EventsExecutor descritas en el issue. Sigue cómo interactúan TimeSource y el temporizador con las guard conditions. Se considera terminado cuando el orden previsto de los callbacks esté definido y cubierto por pruebas para el tiempo simulado, sin romper las configuraciones del executor indicadas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
This is a breakout of the issue described in https://github.com/ros2/rclcpp/issues/2532#issuecomment-2125015383.
Timer processing when using simulation time is a two step process (e.g. requires two waits of the wait set), so it's possible that subscription callbacks can get called before the timer callback when using simulation time. As timers have higher priority than subscriptions (as documented in the Scheduling semantics), one may expect that timers driven via the /clock topic would also have that same higher-priority and expect that timer callbacks driven by the /clock topic would execute before subscription callbacks for messages that were transmitted after the /clock message. Because of the two-step process, this is not necessarily the case.
A potential change to consider would be to have the clock jump handler registered by the timer call the timer callback directly instead of triggering the guard condition. This would only be applicable if the clock thread has been disabled or the default callback group has been configured to be reentrant (though that may be confusing when using the SingleThreadedExecutor, but would actually be consistent with the execute_timers_separate_thread option to the EventsExecutor).
It should be noted that due to the issue described in https://github.com/ros2/rclcpp/issues/2532, an implementation of the above suggestion would likely require that the executor have an explicit processing step for the /clock topic subscription before processing other subscriptions to ensure that the timers are executed before the other subscriptions, Prior to Jazzy, the /clock subscription is always handled first because it was internally registered by the TimeSource before any other application subscriptions.
- Lenguaje dominante
- C++
- Estrellas
- 829
- Forks
- 587
- Merge medio
- 4 d 6 h
- PR fusionados (30 d)
- 30
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ros2/rclcpp
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
-
Memory grows per callback group created and destroyed on long lived nodesPosiblemente ocupada @jwallace42 la tomó hace 1 día. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 28/100
ros2/rclcpp#3428 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
removing and immediately re-adding a node to the EventsCBGExecutor leaves its entities unregisteredPosiblemente ocupada @skyegalaxy la tomó hace 10 días. Abiertobug
ros2/rclcpp#3418 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[Humble] Removing a node with more than one auto-added callback group leaves a dangling guard condition in the executorPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
ros2/rclcpp#3410 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de ros2/rclcpp
Issues similares
-
bug
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
EchoTools/nevr-runtime#2912 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
[SDL3pp] update to 0.12.0Abiertocategory:port-update
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
bug-unconfirmed
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
libc++
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
llvm/llvm-project#246508 ·
Los mantenedores suelen responder en 1 día