RosPublisherExample gives warning in ROS2 Humble
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
- 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:
- Run up ros_tcp_endpoint version 0.7 and launch with default config e.g.
ROS_IP=0.0.0.0port 10000. - 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

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
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Unity-Technologies/Unity-Robotics-Hub
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
-
ROS2,ActionOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
-
Is the project deprecated?Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 20/100
-
Force/Torque sensorOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
Unity-Technologies/Unity-Robotics-Hub#433 · 1 commentaire ·
Toutes les issues de Unity-Technologies/Unity-Robotics-Hub
Issues similaires
-
DXF with empty names failsOuvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 3 jours
-
bug python
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
ilia-sokolov/OfficeAgent.NET#89 ·
Les mainteneurs répondent en général sous 13 jours
-
documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
juandresrodca/AdminForge#66 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
umbraco/Umbraco.Automate#612 ·
Les mainteneurs répondent en général sous 1 jour