micro-ROS / micro-ROS/micro-ROS-demos

Demo similar to multithread_publisher_subscriber from rclc but in Zephyr. Multithreading not working as espected.

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

Nadie ha tomado este issue todavía.

Lenguaje dominante
C
Estrellas
101
Forks
35
Merge medio
4 d 16 h
PR fusionados (30 d)
3

Descripción

## Issue template

- Hardware description: Olimex STM32-E407
- RTOS: Zephyr
- Installation type: -
- Version or commit hash: -

#### Steps to reproduce the issue
Install Micro-Ros like in the Tutorial: [Tutorial Micro-ROS and Zephyr](https://micro.ros.org/docs/tutorials/core/first_application_rtos/zephyr/)

Then add this App from this Repository: [Micro-ROS and Zephyr](https://github.com/Johannes-42/microROS_Zephyr-)
If that is run It will publish 2 numbers from 2 threads. The main thread and the second created thread.
But if the publisher in the main thread is commented out. Also, the second thread will not publish anymore.
Is that wanted behavior or am I doing something wrong?

#### Expected behavior
Multithreaded Threads can publish their publishers

#### Actual behavior
Multithreaded Threads only publish if the main thread is publishing.

#### Additional information
I also tried it with a timer, then the second thread will publish only if the timer is used and in the same time interval.

I want to use Micro-ROS multithreaded to give some threads a higher priority than others. One more question to that would be if it is possible to start multiple apps in Zephyr? something like:
ros2 run micro_ros_setup configure_firmware.sh ping_pong ping_pong2 --transport serial-usb
This command would not work but is there a way to run 2 apps?

Guía de contribución

Abrir la guía de contribución

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.

Línea de trabajo

Comienza con el tutorial de Zephyr y la aplicación de Micro-ROS y Zephyr mencionada, y luego compara su configuración de publisher con dos hilos con la demo rclc multithread_publisher_subscriber. Reproduce el comportamiento en el Olimex STM32-E407 y determina si se admiten la publicación independiente desde hilos y la ejecución de varias apps; documenta el comportamiento confirmado y los cambios o limitaciones necesarios.

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

Evaluación

Stack tecnológico
c
Área
embedded-iot, operating-systems
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.