Continuously connecting and disconnecting while throwing exceptions on server side

Đang mở
#408 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
32/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python, unity
Lĩnh vực
networking, robotics

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
C#
Star
2.6k
Fork
473
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Unity-Technologies/Unity-Robotics-Hub

Tất cả issue của Unity-Technologies/Unity-Robotics-Hub

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.