micro-ROS / micro-ROS/micro-ROS.github.io
micro-ROS publisher always printing "dat:0" on ROS2 echo instead of the updated values
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- SCSS
- Star
- 127
- Fork
- 71
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
[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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với các tệp MAIN.C 6.txt đính kèm và ví dụ publisher/subscriber dữ liệu micro-ROS, sau đó chạy ros2 topic echo /traveo_publisher trên TRAVEO T2G custom UART transport. Truy vết nơi giá trị std_msgs/msg/Int32 được gán và publish; hoàn tất khi đầu ra echo phản ánh giá trị mong đợi hoặc giá trị được tăng dần, thay vì luôn hiển thị data: 0.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- c
- Lĩnh vực
- embedded-iot, robotics
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100