Hello XV25,
The issue occurs due to overflowing network capacity.
By default ROS is using uncompressed data to transfer images, this should be used only on local machine.
To view camera image on other computers, you should use compressed images.
First, install image_transport_plugins:
For Ubuntu 18.04:
sudo apt install ros-melodic-image-transport-plugins
or for Ubuntu 16.04:
sudo apt install ros-kinetic-image-transport-plugins
Then on ROSbot launch astra camera as usual:
roslaunch astra_launch astra.launch
Finally launch image_view
on your computer:
rosrun image_view image_view image:=/camera/rgb/image_rect_color _image_transport:=compressed
rosrun image_view image_view image:=/camera/depth/image_rect_raw _image_transport:=compressedDepth
The Astra camera driver is using image_transport which automatically loads all available transport plugins, that is why you do not need to modify astra.launch
. On the other hand image_view
is using uncompressed image by default, thus it is required to specify image transport.
Regards,
Łukasz