micro-ROS / micro-ROS/micro-ROS.github.io
Call service in Micro-ROS while using custom QOS settings
还没有人认领这个 Issue。
- 主要语言
- SCSS
- 星标
- 127
- 派生
- 71
- PR 合并指标
- 30 天内没有已合并 PR
描述
- Hardware description: Portenta H7 & Ubuntu 22.04 PC
- Version or commit hash: humble with custom ros2 packages
While using custom QOS Settings as described in [https://micro.ros.org/docs/tutorials/advanced/create_dds_entities_by_ref/](https://micro.ros.org/docs/tutorials/advanced/create_dds_entities_by_ref/), creating a client for a service using Micro-ROS fails with an error:
`[XMLPARSER Error] Error parsing XML buffer -> Function loadXML`
The MicroRos Arduino library has been re-compiled to include custom ROS2 message and service types, and also configured to use custom QOS via references, as explained in the previous link.
The same code can run without that service client, while using different topics and message types, as they have been correctly defined in the "custom_qos.refs". The problem comes in when trying to add a service, as I haven't found a way to set up the QOS for a service and its request/response.
If the MicroRos Arduino library is compiled without the QOS reference setting, the client also works as expected.
So far, I tried to include the service as if it were a topic but using "rs" instead of "rt", according to the ROS Specific Namespace Prefixes standard [here](https://design.ros2.org/articles/topic_and_service_names.html#mapping-of-ros-2-topic-and-service-names-to-dds-concepts). I also tried to replicate the configuration laid out in [this ROS2 tutorial](https://docs.ros.org/en/humble/Tutorials/Advanced/FastDDS-Configuration.html#create-the-xml-profiles-for-the-service-and-client), but using a similar approach for the "custom_qos.refs" file did not work.
What's the way moving forward? Is there a way to use both custom QOS settings and ROS2 services in Micro-ROS? Or should I choose only the custom QOS or the services?
Thanks!
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在启用自定义 QoS 引用的 Portenta H7 和 Ubuntu 22.04 设置上重现服务客户端故障。先从 custom_qos.refs 以及链接的 Micro-ROS DDS-entities 和 ROS 2 Fast DDS configuration 教程开始,将服务请求/响应名称与正常工作的 topic 条目进行比较。完成的标准是记录一个可工作的配置,或确认自定义 QoS 引用与服务之间不兼容。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- arduino, ubuntu
- 领域
- embedded-iot, networking
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 32/100