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

Call service in Micro-ROS while using custom QOS settings

Ouverte
#416 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Langage dominant
SCSS
Étoiles
127
Forks
71
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Reproduire l’échec du client de service sur la configuration Portenta H7 et Ubuntu 22.04 avec les références QoS personnalisées activées. Commencer par custom_qos.refs et les tutoriels liés Micro-ROS DDS-entities et ROS 2 Fast DDS configuration, en comparant les noms des requêtes/réponses du service avec les entrées de topics fonctionnelles. Le travail est terminé lorsqu’une configuration fonctionnelle est documentée ou que l’incompatibilité entre les références QoS personnalisées et les services est confirmée.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
arduino, ubuntu
Domaine
embedded-iot, networking
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
32/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.