Ask Your Question
1

tum_ardrone in nvidia-docker: issues with camera feed

asked 2017-04-20 11:35:05 -0500

tuxiano gravatar image

updated 2017-04-20 15:48:07 -0500

Hi,

after hours of trail and error I managed to build my own docker image with the tum_ardrone package.

The docker file can be found here: https://paste.ubuntu.com/24421105/

Now, when I launch the tum_ardone node, which brings up the:

  • "tum_ardone GUI"
  • "PTAM Drone Map View"
  • "PTAM Drone Camera Feed"

the "tum-ardone GUI" looks just fine and I am able to fly the drone. But the two other "PTAM" windows are broken, because I only see a static "copy" of my background picture. image description

I run the following commands in the first terminal

docker run -it --net=host  ardrone:nvidia

and in the second terminal

xhost local:root
nvidia-docker run -it --net=host  --env="DISPLAY"  --env="QT_X11_NO_MITSHM=1"   --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw"  ardrone:nvidia

Any ideas how to fix this issue?

Kind regards

edit retag flag offensive close merge delete

Comments

Still, can't tell why, but it is related to the "net=host" flag. Because, when I start the container without this flag I'm able to run glxgears and see the gears rotating ... if I start the container with this flag, I only see a black box.

tuxiano gravatar image tuxiano  ( 2017-04-21 00:53:06 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-04-21 03:14:11 -0500

tuxiano gravatar image

updated 2017-04-21 03:14:41 -0500

In combination with the "--net=host" flag, I had to add the "--priviliged" flag: https://github.com/NVIDIA/nvidia-dock...

nvidia-docker run -it --net=host --privileged --env="DISPLAY" --env="QT_X11_NO_MITSHM=1" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" ardrone:nvidia
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-04-20 11:35:05 -0500

Seen: 92 times

Last updated: Apr 21 '17