Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 935 Bytes

README.md

File metadata and controls

58 lines (41 loc) · 935 Bytes

ros-docker-gui

ROS docker image with GUI and Nvidia GPU acceleration support. There's a more comprehensive repo here.

How to use

  • Install nvidia-container-toolkit,

  • clone this repository and build

    docker build -t ros-docker-gui .
  • run the container

    docker run -it \
           -e DISPLAY \
           --gpus all \
           -v /tmp/.X11-unix/:/tmp/.X11-unix/  \
           --network host \
           --name ros-gui \
           ros-docker-gui
  • configure xauth

    • on host machine, copy token listed by
    xauth list
    • in docker, add the token
    xauth add <token>
  • tests

    # gpu
    nvidia-smi
    # GUI application
    glmark2
    # gazebo
    gazebo
  • initialize rosdep

sudo rosdep init
rosdep update