docker and rqt_image_view issues

asked 2020-04-11 14:11:09 -0600

Batstru gravatar image

Dear all,

Do you have suggestions on I can make rqt_image_view working from the docker container? Can you spot out if I'm doing anything wrong?

My environment is composed by:

  • a roomba with a raspberry running ubuntu mate 18.04 and ros melodic, and a raspicamera
  • my notebook, from where I'm running two docker containers, one for roscore and one for rqt_image_view/rviz.

The dockerfile I'm using to build the two containers is pretty simple:

FROM osrf/ros:melodic-desktop-full
RUN apt update; apt -y upgrade; apt-get install -y net-tools python-rosdep python-catkin-tools apt-utils ros-melodic-robot-upstart screen

And I boot the two containers in this way:

roscore

docker run -it -d --name roscore -p 11311:11311 rb02_master:latest roscore

rviz

docker run -it -d --name rviz --env="DISPLAY" --env="QT_X11_NO_MITSHM=1" --env="ROS_MASTER_URI=http://192.168.1.111:11311" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw"  rb02_master:latest

Ros on the roomba is configured with raspicam node, and its pointing to the roscore container, as I've updated the ROS_MASTER_URI to point to my notebook.

Problem

From the rviz container I see the topics of the raspicam node, however when I execute rqt_image_view the video stream does not load. By the way, from this container other x11 applications are working well.

If I log to the roomba and I execute the same command, I see everything as expected.

Regards

edit retag flag offensive close merge delete