micro-ROS / micro-ROS/micro-ROS-Agent
The micro_ros_agent does not relay topic messages
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 201
- 派生
- 111
- 平均合并
- 1 天 6 小时
- 30 天内合并 PR
- 10
描述
Describe the bug
Hi, I tried this example micro-ros_subscriber_twist using UDP on STM32F407 (Ethernet), but the micro_ros_agent only relays the message to MCU if
[Normal]
Step 1: Start the agent
Step 2: Start the program on MCU
Step 3: Publish the twist message (keep publishing)
Twist messages received.
If I exchange step 2 with step 3, I cannot receive the message on MCU:
[BUG]
Step 1: Start the agent
Step 2: Publish the twist message (keep publishing)
Step 3: Start the program on MCU
No Twist messages.
I'm wondering is this an expected behavior or a BUG?
Besides, the micro-ros_publisher.ino example cannot receive the int32 message under both scenarios.
To Reproduce
Scenario 1 (BUG):
$ Step 1: Start the agent
$ docker run -it -p 9999:9999/udp --privileged microros/micro-ros-agent:galactic udp4 -p 9999 -v 6
$ Step 2: Publish the twist message
$ docker container -it sleepy_rubin /bin/bash
$ # Inside the container
$ ros2 run teleop_twist_keyboard teleop_twist_keyboard
$ Step 3: Start the program on MCU
$ micro_ros_sub twist
# No twist message on MCU
Scenario 1 (Normal):
$ Step 1: Start the agent
$ docker run -it -p 9999:9999/udp --privileged microros/micro-ros-agent:galactic udp4 -p 9999 -v 6
$ Step 2: Start the program on MCU
$ micro_ros_sub twist
$ Step 3: Publish the twist message
$ docker container -it sleepy_rubin /bin/bash
$ # Inside the container
$ ros2 run teleop_twist_keyboard teleop_twist_keyboard
# Normal twist message on MCU
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 galactic micro-ROS Agent Docker 命令、teleop_twist_keyboard 以及 micro_ros_subscriber_twist.ino 和 micro_ros_publisher.ino 示例,复现两种顺序场景。首先比较 MCU 程序在发布前启动和在发布后启动时 agent 的行为及日志;当预期消息在两个已记录的场景中都能可靠传递,或预期限制已得到清晰记录时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp, docker
- 领域
- embedded-iot, networking, robotics
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100