Continuously connecting and disconnecting while throwing exceptions on server side

Offen
#408 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
32/100
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
python, unity
Bereich
networking, robotics

Rechercherichtung

Reproduce the Unity Editor connection against ROS 2 Humble on v0.7.0, then start with ros_tcp_endpoint/client.py and server.py, especially handle_syscommand and the json.loads traceback. Compare the command payload with the disconnect sequence and determine what prevents the repeated exception and connection cycling; done means the initial connection remains stable without the reported server-side error.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

I am just trying to setup up an initial connection to start working with this project, but when I start the connection from Unity Editor, this following pattern keeps repeating on the server side while steadily connecting and disconnecting to host.

[INFO] [1699441005.167617580] [UnityEndpoint]: Disconnected from 192.168.0.171
Exception in thread Thread-12:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/home/user/ros2_tcp/install/ros_tcp_endpoint/lib/python3.10/site-packages/ros_tcp_endpoint/client.py", line 213, in run
    self.tcp_server.handle_syscommand(destination, data)
  File "/home/user/ros2_tcp/install/ros_tcp_endpoint/lib/python3.10/site-packages/ros_tcp_endpoint/server.py", line 126, in handle_syscommand
    params = json.loads(message_json)
  File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 51 (char 50)

I am using the following setup:

  • Unity Version: [e.g. Unity 2021.3.4f1]
  • Unity machine OS + version: Windows 10
  • ROS machine OS + version: Ubuntu 22.04, ROS Humble
  • ROS–Unity communication: cloned repository and built with colcon (no docker)
  • Branch or version: v0.7.0
Vorherrschende Sprache
C#
Sterne
2.6k
Forks
473
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Unity-Technologies/Unity-Robotics-Hub

Alle Issues in Unity-Technologies/Unity-Robotics-Hub

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.