RosPublisherExample gives warning in ROS2 Humble

オープン
#377 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp, docker, unity

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
C#
スター
2.6k
フォーク
473
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Unity-Technologies/Unity-Robotics-Hub のほかの issue

Unity-Technologies/Unity-Robotics-Hub の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。