micro-ROS / micro-ROS/micro_ros_espidf_component

Micro-ros Ping utility issue

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

还没有人认领这个 Issue。

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

描述

## Issue template

- Hardware description: esp32s3 devkit
- RTOS: freertos
- Installation type: standard
- Version or commit hash: humble

#### Steps to reproduce the issue
try the rmw_uros_ping_agent() utility to see whether the Agent is up or not it does not require creating a micro-ros context first...

#### Expected behavior
When I turn the Agent on it should output as RMW_RET_OK else it should throw an error value

#### Actual behavior
![Screenshot from 2023-08-09 16-09-54](https://github.com/micro-ROS/micro_ros_espidf_component/assets/132329071/ac1e2193-43c4-4927-9c0c-f681a285b9f9)
There is a variable called agent_state_flag in the code which gives 0 when agent is off and 1 when agent is on...

![Screenshot from 2023-08-09 16-10-13](https://github.com/micro-ROS/micro_ros_espidf_component/assets/132329071/60684955-bf9f-4de2-9baa-81b71e0fbc0c)
Here I have not started the agent yet

![Screenshot from 2023-08-09 16-10-38](https://github.com/micro-ROS/micro_ros_espidf_component/assets/132329071/62f28cc3-e383-43f5-936d-d77f7e452fa5)
Here I have started the agent

![Screenshot from 2023-08-09 16-09-54](https://github.com/micro-ROS/micro_ros_espidf_component/assets/132329071/710b225b-0354-4988-a28c-41a3853e9596)
Still it the rmw_uros_ping_agent() is not giving me a RMW_RET_OK even when the agent is alive

#### Additional information
![Screenshot from 2023-08-09 16-11-22](https://github.com/micro-ROS/micro_ros_espidf_component/assets/132329071/ad886199-c477-4238-9400-a9a275d05b93)
The code snippet which I am using...

贡献指南

打开贡献指南

从这里开始

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

调研方向

从已报告的入口点 rmw_uros_ping_agent() 开始,在 Agent 停止和运行时分别于 ESP32-S3 上复现该行为。将其返回值与已报告的 agent_state_flag 值以及预期结果 RMW_RET_OK 进行比较。当该工具能够可靠地区分可用的 Agent 和不可用的 Agent 时,即表示完成。

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

评估

技术栈
c
领域
embedded-iot
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

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