rosbridge_suite icon indicating copy to clipboard operation
rosbridge_suite copied to clipboard

Exception calling subscribe callback: 'bytearray' object has no attribute 'get'

Open an99990 opened this issue 2 years ago • 2 comments

Description Sending PointCloud2 message and trying to visualize it in FoxeGlove but keep getting rosbridge error message

[rosbridge_websocket-1] [ERROR] [1660225884.363841657] [rosbridge_websocket]: Exception calling subscribe callback: 'bytearray' object has no attribute 'get

ROS Version (echo $ROS_DISTRO): Ros2 Galactic OS Version (grep DISTRIB_CODENAME /etc/lsb-release): Focal

Steps To Reproduce Publish Pointcloud2 msg launch rosbridge connect with foxglove

Expected Behavior see pointcloud

Actual Behavior nothing to see

an99990 avatar Aug 11 '22 13:08 an99990

I was receiving a similar error message when trying to subscribe to a large PointCloud2 msg: [rosbridge_websocket]: Exception calling subscribe callback: 'bytes' object has no attribute 'get'. Increasing the value of the max_message_size parameter solved the issue for me.

ben-congram avatar Jul 10 '23 15:07 ben-congram

I had a similar error message when trying to subscribe to a video stream. [rosbridge_websocket]: Exception calling subscribe callback: 'bytes' object has no attribute 'get' For me the solution was to downscale the videostream now everything works fine and i can visualize the videostream in foxglove studio. I did not test the fix with increasing max_message_size. The datarate of the original stream was 24.8 MB per image with 20 FPS this computes to 496 MB/s, which was obviously too much for the rosbridge.

simon-eis avatar Jan 10 '24 08:01 simon-eis