Giter Site home page Giter Site logo

webots-server's Introduction

Webots Server

This repository contains the files to be deployed on a server machine to run Webots simulations online.

The documentation on how to set-up a Webots simulation server is provided in the Webots user guide.

webots-server's People

Contributors

benjamindeleze avatar jean-eudes-le-retour avatar omichel avatar thomasoliverkimble avatar ygoumaz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

webots-server's Issues

Unnecessary fields in docker compose files

I recently did some tests and it seems that some fields inside the docker compose files are unnecessary: privileged, everything concerning XAUTHORITY and QT_X11_NO_MITSHM

Does anybody know why they were set in the first place?

Additionally, it seems that Intel graphics cards (not our case) need an additional volume to be shared with the host to be able to use the GPU: /dev/dri

Error if "persistantDockerImages" is not present

If persistantDockerImages is not defined in the config file, an error occurs when the server tries to get config['persistantDockerImages'].

I think that the correct behavior should be that if persistantDockerImages is not present, then we should keep all images.

Notify the client on failure.

When the server does not load because it is not on the allowed list for example the client stays on stand-by and does not get notified.

AttributeError: 'str' object has no attribute 'decode' when trying to run simulation server with GPU

Hey guys, great job on the repo so far. Here's a simple error I encountered when trying to start the servers with a GPU:

deployments-webots-1  | Traceback (most recent call last):
deployments-webots-1  |   File "/usr/local/lib/python3.8/dist-packages/tornado/web.py", line 1711, in _execute
deployments-webots-1  |     result = method(*self.path_args, **self.path_kwargs)
deployments-webots-1  |   File "simulation_server.py", line 633, in get
deployments-webots-1  |     gpu = nvmlDeviceGetName(nvmlHandle).decode('utf-8')
deployments-webots-1  | AttributeError: 'str' object has no attribute 'decode'

The fix is simple -- I just removed the call to decode, since nvmlDeviceGetName returns a str already.

Not sure if this is reproducible on other platforms: I'm running this in a Docker container on Windows 10 (x86_64) with GPU passthrough enabled via Docker Desktop on the WSL 2 engine.

If you want to make line simulation_server.py:633 more resilient, I'd suggest adding a check for a byte or str before attempting to decode.

Thanks!

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.