Deserializing error for string type
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- cpp
- 領域
- embedded-iot, robotics
研究方向
使用 ROS 2 Humble,在 STM32F767ZI 上重現包含 string 欄位的服務呼叫,然後檢查剖析巢狀訊息型別時 ucdr_deserialize_sequence_header 處的 executor 失敗。當 MCU 能夠接受並處理該服務呼叫且不發生反序列化錯誤,同時不包含 string 的服務呼叫繼續正常運作時,該 issue 即完成。
由索引模型根據 Issue 內容生成。
描述
Describe the bug
String types in service types cause microROS on the MCU side to fail in the executor due to a deserializing error. Running it through a debugger it fails in ucdr_deserialize_sequence_header when parsing the nested message type.
Service calls with non-string types work as expected. I've verified it's not a buffer overflow since the buffer size >> bytes received. There is also no packet corruption in UDP traffic, the dest packet and src packet match 1:1.
To Reproduce
Steps to reproduce the behaviour:
- On MCU, init service with service type that has a string type
- On host side, call service
Expected behaviour
The MCU accepts the service call and handles accordingly.
Actual behaviour
Executor fails due to deserialization error.
System information (please complete the following information):
- OS: Ubuntu 22.04
- ROS 2 Humble
- MCU: STM32F767ZI
- 主要語言
- C++
- 星號
- 201
- 分支
- 111
- 平均合併
- 1 天 6 小時
- 30 天內合併 PR
- 10
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
micro-ROS/micro-ROS-Agent 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 68/100
micro-ROS/micro-ROS-Agent#270 ·
-
難度 4/5 3-5 天 新手友好度 35/100
micro-ROS/micro-ROS-Agent#269 ·
-
Release to apt 未關閉
難度 5/5 一週以上 新手友好度 25/100
micro-ROS/micro-ROS-Agent#267 ·
-
難度 4/5 3-5 天 新手友好度 42/100
micro-ROS/micro-ROS-Agent#266 · 1 則留言 ·
-
難度 5/5 一週以上 新手友好度 20/100
micro-ROS/micro-ROS-Agent#265 · 1 則留言 ·
查看 micro-ROS/micro-ROS-Agent 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 70/100
google/libultrahdr#485 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
godotengine/godot#123776 ·
-
bug
難度 1/5 1 小時以內 新手友好度 60/100
-
good first issue
難度 1/5 1 小時以內 新手友好度 90/100
-
good first issue
難度 2/5 1-3 小時 新手友好度 75/100
ros2/common_interfaces#344 ·