micro-ROS / micro-ROS/micro-ROS.github.io

Call service in Micro-ROS while using custom QOS settings

Đang mở
#416 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
SCSS
Star
127
Fork
71
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

- 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!

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Tái hiện lỗi service-client trên thiết lập Portenta H7 và Ubuntu 22.04 với các tham chiếu QoS tùy chỉnh được bật. Bắt đầu với custom_qos.refs và các tutorial Micro-ROS DDS-entities và ROS 2 Fast DDS configuration được liên kết, đồng thời so sánh tên request/response của service với các mục topic đang hoạt động. Được xem là hoàn tất khi đã ghi lại một cấu hình hoạt động hoặc xác nhận sự không tương thích giữa các tham chiếu QoS tùy chỉnh và service.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
arduino, ubuntu
Lĩnh vực
embedded-iot, networking
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
32/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.