RosPublisherExample gives warning in ROS2 Humble

Ouverte
#377 1 commentaire 1 réaction 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
csharp, docker, unity
Domaine
networking, robotics

Piste de recherche

Start by reproducing the warning with RosPublisherExample.cs and ros_tcp_endpoint's default_server_endpoint using the versions and Docker setup listed in the issue. Inspect the two RegisterPublisher calls and related ROS2 logging, then verify the example produces one INFO RegisterPublisher log without the duplicate-node warning.

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

Description

Description of the bug

Publishing the example PosRot message from the unity_robotics_demo_msgs package using ROS2 gives warning log.

To Reproduce

Steps to reproduce the behavior:

  1. Run up ros_tcp_endpoint version 0.7 and launch with default config e.g. ROS_IP=0.0.0.0 port 10000.
  2. Start the RosPublisherExample in a Unity project.

Console logs

root@78932a399808:/ros2_ws# ros2 run ros_tcp_endpoint default_server_endpoint --ros-args -p ROS_IP:=0.0.0.0
[INFO] [1655364893.499026344] [UnityEndpoint]: Starting server on 0.0.0.0:10000
[INFO] [1655364914.368200902] [UnityEndpoint]: Connection from 172.19.0.1
[INFO] [1655364914.540648798] [UnityEndpoint]: RegisterSubscriber(/tf, <class 'tf2_msgs.msg._tf_message.TFMessage'>) OK
[INFO] [1655364914.547903045] [UnityEndpoint]: RegisterPublisher(pos_rot, <class 'unity_robotics_demo_msgs.msg._pos_rot.PosRot'>) OK
[WARN] [1655364914.548093382] [rcl.logging_rosout]: Publisher already registered for provided node name. If this is due to multiple nodes with the same name then all logs for that logger name will go out over the existing publisher. As soon as any node with that name is destructed it will unregister the publisher, preventing any further logs for that name from being published on the rosout topic.
[INFO] [1655364914.552324273] [UnityEndpoint]: RegisterPublisher(pos_rot, <class 'unity_robotics_demo_msgs.msg._pos_rot.PosRot'>) OK

Expected behavior
A clear and concise description of what you expected to happen.
A single INFO RegisterPublisher log without a warning.

Screenshot
image

Environment

  • Unity Version: Unity 2020.3.19f1
  • Unity machine OS + version: Windows 11
  • ROS machine OS + version: Ubuntu 20.04, ROS2 Humble
  • ROS–Unity communication: Docker
  • Branch or version: v0.7.0
Langage dominant
C#
Étoiles
2.6k
Forks
473
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

  • Aucun Dockerfile ni fichier Docker Compose
  • Propose un modèle de pull request
  • Aucun guide de contribution

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.

Autres issues de Unity-Technologies/Unity-Robotics-Hub

Toutes les issues de Unity-Technologies/Unity-Robotics-Hub

Issues similaires

Plus d'issues C#

Recevez les nouvelles issues par e-mail

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