Trigger service call crashes ros_tcp_endpoint Node
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
- 35/100
Hướng nghiên cứu
Start by reproducing the ROS2 std_srvs/srv/Trigger call using the reported default_server_endpoint setup. Inspect ros_tcp_endpoint/client.py and service.py around service_call_thread and deserialize_message, then verify that the Trigger service executes successfully without the reported invalid data size error.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
Calling a ROS2 service of type std_srvs/srv/Trigger will crash the default_server_endpoint Node
To Reproduce
Steps to reproduce the behavior:
- Start a ROS2 Node that has a service of type
std_srvs/srv/Triggeralongside thedefault_server_endpointNode. - Register & call said service from a Unity script.
Console logs / stack traces
servo_1 | [default_server_endpoint-4] Exception in thread Thread-4:
servo_1 | [default_server_endpoint-4] Traceback (most recent call last):
servo_1 | [default_server_endpoint-4] File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
servo_1 | [default_server_endpoint-4] self.run()
servo_1 | [default_server_endpoint-4] File "/usr/lib/python3.8/threading.py", line 870, in run
servo_1 | [default_server_endpoint-4] self._target(*self._args, **self._kwargs)
servo_1 | [default_server_endpoint-4] File "/home/dev_ws/install/ros_tcp_endpoint/lib/python3.8/site-packages/ros_tcp_endpoint/client.py", line 163, in service_call_thread
servo_1 | [default_server_endpoint-4] response = ros_communicator.send(data)
servo_1 | [default_server_endpoint-4] File "/home/dev_ws/install/ros_tcp_endpoint/lib/python3.8/site-packages/ros_tcp_endpoint/service.py", line 55, in send
servo_1 | [default_server_endpoint-4] message = deserialize_message(data, message_type)
servo_1 | [default_server_endpoint-4] File "/opt/ros/galactic/lib/python3.8/site-packages/rclpy/serialization.py", line 42, in deserialize_message
servo_1 | [default_server_endpoint-4] return _rclpy.rclpy_deserialize(serialized_message, message_type)
servo_1 | [default_server_endpoint-4] rclpy._rclpy_pybind11.RMWError: failed to deserialize ROS message: rmw_serialize: invalid data size, at /tmp/binarydeb/ros-galactic-rmw-cyclonedds-cpp-0.22.6/src/rmw_node.cpp:1536
Expected behavior
The service call executes successfully.
Screenshots
N/A
Environment (please complete the following information, where applicable):
- Unity Version: Unity 2020.3.18f1
- Unity machine OS + version: Windows 11
- ROS machine OS + version: Ubuntu 20.04, ROS2 Galactic (Also fails on Foxy)
- ROS–Unity communication: Docker
- Branch or version: ROS2v0.7.0
Additional context
Services of other types work as expected. The ROS2 Node I am using in this example is a MoveIt Servo Node. The service I am trying to call is /servo_node/start_servo.
- 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Unity-Technologies/Unity-Robotics-Hub
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
ROS2,ActionĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Is the project deprecated?Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 20/100
-
Force/Torque sensorĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Unity-Technologies/Unity-Robotics-Hub#433 · 1 bình luận ·
Tất cả issue của Unity-Technologies/Unity-Robotics-Hub
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
umbraco/Umbraco.Automate#612 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
崩溃日志只按 CRLF 分行Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PCL-Community/PCL-CE#3872 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
type:task ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
elsa-workflows/elsa-foundation#5253 ·
Maintainer thường phản hồi trong vòng 1 ngày