Coder Social home page Coder Social logo

cyberbotics / webots-cloud-simulation-template Goto Github PK

View Code? Open in Web Editor NEW
5.0 47.0 1.0 358 KB

Template repository of a simulation deployed on webots.cloud

License: Apache License 2.0

Dockerfile 2.20% Python 19.92% Makefile 10.60% C 27.95% CSS 8.06% HTML 13.87% JavaScript 17.40%

webots-cloud-simulation-template's Introduction

Template for webots.cloud simulations

This repository can be used as a template to deploy a simulation on webots.cloud.

Structure

The template contains a generic project featuring the e-puck robot. The world e-puck.wbt is located in the worlds folder. The controller e-puck.py is located in the controllers/e-puck folder. The robot window simple_e-puck is located in the plugins/robot_windows folder.

The defined Dockerfile is placed at the root of the project and implements the four lines of Dockerfile.default, which would have been used by webots.cloud if no Dockerfile was defined.

FROM cyberbotics/webots.cloud:R2022b
ARG PROJECT_PATH
RUN mkdir -p $PROJECT_PATH
COPY . $PROJECT_PATH

The following additional line allows to compile the plugin when webots.cloud creates the Docker image.

RUN cd $PROJECT_PATH/plugins/robot_windows/simple_e-puck && make clean && make

Note: It is also possible to directly provide the built binaries in the corresponding folders and use the default Dockerfile without any "on-the-fly" compilation. However, it is currently not possible to compile C/C++ controllers and robot windows directly from the running simulation on webots.cloud.

webots.yaml defines the type of the simulation as a demo. The publish parameter allows to publish the simulation to webots.cloud and make it visible in the public list of simulations. Finally, dockerCompose:theia sets the workspace for the online IDE. This means that with webots-project/controllers/ every user who logs into the simulation is allowed to modify all controllers located in the controllers folder.

More information is available in the Webots User Guide. For more complex projects and other configurations you can head to the examples repository: webots.cloud Simulation Examples.

webots-cloud-simulation-template's People

Contributors

ygoumaz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ahmad3000s

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.