Skip to content

HUDPanel already contains a header registered at index 0! Registering at index 1 instead.  #315

@jpvr20

Description

@jpvr20

Describe the bug
HUDPanel already contains a header registered at index 0! Registering at index 1 instead.

To Reproduce
Steps to reproduce the behavior:

  1. Open the Scene that calls the ROSConnection GetOrCreateInstance()
  2. Change to some other scene that doesn't contain any ROS stuff
  3. Call the first Scene again

Console logs / stack traces

HUDPanel already contains a header registered at index 0! Registering at index 1 instead.
UnityEngine.Debug:LogWarning (object)
Unity.Robotics.ROSTCPConnector.HudPanel:RegisterHeader (System.Action,int) (at ./Library/PackageCache/com.unity.robotics.ros-tcp-connector@c27f00c6cf/Runtime/TcpConnector/HudPanel.cs:120)
Unity.Robotics.ROSTCPConnector.ROSConnection:Start () (at ./Library/PackageCache/com.unity.robotics.ros-tcp-connector@c27f00c6cf/Runtime/TcpConnector/ROSConnection.cs:484)

Expected behavior
UI should show just one TCP connection

Screenshots
Screenshot from 2023-11-15 11-43-04

Environment (please complete the following information, where applicable):

  • Unity Version: Unity 2022.3.10f1<OpenGL 4.5>
  • Unity machine OS + version: Ubuntu 20.04
  • ROS machine OS + version: Ubuntu 20.04, ROS Noetic
  • ROS–Unity communication: TCP
  • Branch or version: 0.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions