micro-ROS / micro-ROS/micro-ROS.github.io
micro-ROS publisher always printing "dat:0" on ROS2 echo instead of the updated values
- Lingua principale
- SCSS
- Stelle
- 127
- Fork
- 71
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
[MAIN.C 6.txt](https://github.com/user-attachments/files/21734883/MAIN.C.6.txt)
I am working on a micro-ROS example on a TRAVEO™ T2G MCU using a custom UART transport. The code is based on the "data
[MAIN.C 6.txt](https://github.com/user-attachments/files/21734876/MAIN.C.6.txt)
" style micro-ROS publisher/subscriber example, but I have modified it slightly.
Here is the situation:
1. I have a publisher that is supposed to send an integer value (std_msgs/msg/Int32) periodically using a ROS timer.
2. I am running ros2 topic echo /traveo_publisher on the host PC to see the published messages this will give value never changes to from 0 . it is publishing periodically but within same incorrect value.
3. I am successfully connecting to the ROS 2 agent (no connection error), and I do see messages being published.
4. However, the message always shows data: 0 instead of the value I expect (for example 123 or incrementing numbers).
5. The value does not update continuously as I move around in my code or directory — it just stays the same in ROS 2 echo output.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia dai file MAIN.C 6.txt allegati e dall'esempio di publisher/subscriber dei dati micro-ROS, quindi esegui ros2 topic echo /traveo_publisher sul TRAVEO T2G custom UART transport. Traccia il punto in cui il valore std_msgs/msg/Int32 viene assegnato e pubblicato; il lavoro è completato quando l'output di echo riflette il valore previsto o incrementato, invece di mostrare sempre data: 0.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- c
- Ambito
- embedded-iot, robotics
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100