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
" style micro-ROS publisher/subscriber example, but I have modified it slightly.
Here is the situation:
-
I have a publisher that is supposed to send an integer value (std_msgs/msg/Int32) periodically using a ROS timer.
-
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.
-
I am successfully connecting to the ROS 2 agent (no connection error), and I do see messages being published.
-
However, the message always shows data: 0 instead of the value I expect (for example 123 or incrementing numbers).
-
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.