Connection with aideck fails after receiving first message.
It's also failing with official aideck example.
Relevant log output
$ ros2 launch as2_platform_crazyflie crazyflie_aideck_stream_launch.py namespace:=drone0
[INFO] [launch]: All log files can be found below /home/parias/.ros/log/2023-05-12-12-10-01-141900-gf66-32092
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [aideck_node.py-1]: process started with pid [32093]
[aideck_node.py-1] Connecting to socket on 192.168.4.1:5000...
[aideck_node.py-1] Socket connected
[aideck_node.py-1] Traceback (most recent call last):
[aideck_node.py-1] File "/home/parias/as2_ws/install/as2_platform_crazyflie/lib/as2_platform_crazyflie/aideck_node.py", line 16, in <module>
[aideck_node.py-1] main()
[aideck_node.py-1] File "/home/parias/as2_ws/install/as2_platform_crazyflie/lib/as2_platform_crazyflie/aideck_node.py", line 9, in main
[aideck_node.py-1] rclpy.spin(stream_pub)
[aideck_node.py-1] File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/__init__.py", line 222, in spin
[aideck_node.py-1] executor.spin_once()
[aideck_node.py-1] File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/executors.py", line 712, in spin_once
[aideck_node.py-1] raise handler.exception()
[aideck_node.py-1] File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/task.py", line 239, in __call__
[aideck_node.py-1] self._handler.send(None)
[aideck_node.py-1] File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/executors.py", line 418, in handler
[aideck_node.py-1] await call_coroutine(entity, arg)
[aideck_node.py-1] File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/executors.py", line 332, in _execute_timer
[aideck_node.py-1] await await_or_execute(tmr.callback)
[aideck_node.py-1] File "/opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/executors.py", line 107, in await_or_execute
[aideck_node.py-1] return callback(*args)
[aideck_node.py-1] File "/home/parias/as2_ws/install/as2_platform_crazyflie/local/lib/python3.10/dist-packages/as2_platform_crazyflie/viewer.py", line 216, in timer_callback
[aideck_node.py-1] format, imgs = self.getImage(self.client_socket)
[aideck_node.py-1] File "/home/parias/as2_ws/install/as2_platform_crazyflie/local/lib/python3.10/dist-packages/as2_platform_crazyflie/viewer.py", line 149, in getImage
[aideck_node.py-1] size] = struct.unpack('<BHHBBI', imgHeader)
[aideck_node.py-1] struct.error: unpack requires a buffer of 11 bytes
[ERROR] [aideck_node.py-1]: process has died [pid 32093, exit code 1, cmd '/home/parias/as2_ws/install/as2_platform_crazyflie/lib/as2_platform_crazyflie/aideck_node.py --ros-args -r __node:=aideck_pub -r __ns:=/drone0 --params-file /home/parias/as2_ws/install/as2_platform_crazyflie/share/as2_platform_crazyflie/config/aideck_config_file.yaml'].
ROS2 Version
humble
Version
main
What happened?
Connection with aideck fails after receiving first message. It's also failing with official aideck example.
Relevant log output