micro-ROS / micro-ROS/micro_ros_espidf_component

Micro Ros Agent if not configured properly or left with default value, code execution will stop without much debug info.

未关闭
#279 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
C
星标
419
派生
124
平均合并
21 小时 35 分钟
30 天内合并 PR
3

描述

- Hardware description: Doit ESP32 Dev Kit
- RTOS: Simple publisher int32 example.
- Installation type: micro_ros_setup
- Version or commit hash: jazzy

#### Steps to reproduce the issue

- Clone this repo.
- Source the terminal using export.sh and then go to the Int32_publisher example.
- Do idf.py build flash monitor.(Make sure esp32 is connected while doing so).
- I delibrately left the idf.py menuconfig step.
- Once, flashed, you'll see notice that program gets aborted indicating the line at which issue occured without additional info.

#### Expected behavior
The program should atleast output the default config such as ssid, password, micro-ros-agent config. Giving more context and ensuring network is intialized properly and any issue with configuration could be easily debugged.

#### Actual behavior
The program stops indicating the line where issue occured.

#### Proposed Changes:
Adding network intialization check and logging default configuration in the code.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,在跳过 menuconfig 后,使用 `idf.py build flash monitor` 复现 Int32_publisher 示例中的问题。检查 abort 路径以及 network 和 micro-ROS agent 配置的处理方式。完成的标准是:示例报告其配置上下文,并明确指出 network 初始化或配置失败,而不是只显示行引用后停止。

由索引模型根据 Issue 内容生成。

评估

技术栈
c
领域
embedded-iot, networking
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。