Coder Social home page Coder Social logo

virtualgl-turbovnc-ros2-docker's Introduction

VirtualGL, TurboVNC, and ROS2 Docker image

Docker hub: damanikjosh/virtualgl-turbovnc-ros2

This image is based on the nvidia/opengl image and adds VirtualGL, TurboVNC, noVNC, and ROS2 to it. It is intended to be used as a base image for running graphical ROS2 applications in a Docker container, such as rviz2 and Gazebo.

Tags

  • latest, iron: Ubuntu 22.04 with VirtualGL 3.1, TurboVNC 3.1, and ros-iron-desktop
  • humble: Ubuntu 22.04 with VirtualGL 3.1, TurboVNC 3.1, and ros-humble-desktop
  • galactic: Ubuntu 20.04 with VirtualGL 3.1, TurboVNC 3.1, and ros-galactic-desktop
  • foxy: Ubuntu 20.04 with VirtualGL 3.1, TurboVNC 3.1, and ros-foxy-desktop

Pre-requisites

Before you can use this image, you need to install VirtualGL server on the host system. You can follow the instructions here.

Usage

You can use this image to run graphical applications in a Docker container. You can use the vglrun command to run the graphical applications.

docker run --gpus all --rm -it --network=host -e DISPLAY=:1 damanikjosh/virtualgl-turbovnc-ros2:latest vglrun rviz2
You will require a password to access your desktops.

Password: 
Verify:   
Would you like to enter a view-only password (y/n)? n
xauth:  file /root/.Xauthority does not exist

Desktop 'TurboVNC: joshua-ki:1 ()' started on display joshua-ki:1

Starting applications specified in /opt/TurboVNC/bin/xstartup.turbovnc
Log file is /root/.vnc/joshua-ki:1.log

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
[INFO] [1709704394.934937411] [rviz2]: Stereo is NOT SUPPORTED
[INFO] [1709704394.935011617] [rviz2]: OpenGl version: 4.6 (GLSL 4.6)
[INFO] [1709704394.972560374] [rviz2]: Stereo is NOT SUPPORTED

You can customize the container using the following environment variables:

  • DISPLAY: The display number to use for VNC. Default is :10.
  • VGL_DISPLAY: The display number to use for VirtualGL. Default is :0.
  • VNC_PASSWORD: The password for the VNC server. If not set, you will be prompted to enter a password when you run the container.
  • VNC_RESOLUTION: The resolution of the VNC server. Default is 1280x800.
  • NOVNC_PORT: The port on which the noVNC server will listen. Default is 8080.

To access the VNC server, you can use a VNC client to connect to localhost:$((5900 + DISPLAY)). You can also use a web browser to access the noVNC server at http://localhost:${NOVNC_PORT}.

Screenshot

License

This image is licensed under the MIT License.

virtualgl-turbovnc-ros2-docker's People

Contributors

damanikjosh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.