Giter VIP home page Giter VIP logo

webots-animation-action's Introduction

Webots Animation Action

This GitHub action creates a Webots animation of a simulation and publishes it to GitHub pages.

After each commit, Webots simulation will be recorded and published to <username>.github.io/<repository>/<branch> as an X3D animation. In your browser, you can move around and zoom while the animation is playing.

Workflow

Here is a simple GitHub workflow snippet which utilizes the action:

name: Record animation

jobs:
  record:
    runs-on: ubuntu-latest
    steps:
      - name: Check out the repo
        uses: actions/checkout@v2
      - name: Record and deploy the animation
        uses: cyberbotics/webots-animation-action@master
        env: 
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

You can save the snippet to e.g.: .github/workflows/record_animation.yml.

Configuration

Demonstration

You can create webots.yaml configuration file in the root of your repository to fine tune generated animations. If the file is not present, the action will automatically generate animations for all files according to the default configuration.

type: demo
init: |
  apt install -y \
    python3-numpy \
    python3-opencv
animation:
  worlds:
    - file: worlds/tutorial_6.wbt
      duration: 5
    - file: worlds/tutorial_1.wbt
      duration: 10

The options are:

name description
init Init hook used for configuruing and installing dependcies
type Project type, can be demo, competition and competitor
animation Generates Webots animation and publishes to gh-pages
animation.worlds[].file Path to the world file (.wbt)
animation.worlds[].duration Animation duration in seconds (default 10s)

Example

Check out Webots Animation Template repository.

Competition

Warning: Competitions are under heavy development! Documentation is not ready and we do not guarantee any backward compatibility. Please contact us directly if you want to set up a competition at [email protected].

Organizer

type: competition
world: worlds/ratslife_round.wbt
name description
init Init hook used for configuruing and installing dependcies
type Project type, can be demo, competition and competitor
world A world to run the competition in

Limitations:

  • The opposing robots have to have DEF field set to R1 and R2.

Competitor

type: competitor
competition: https://github.com/username/competition
name description
init Init hook used for configuruing and installing dependcies
type Project type, can be demo, competition and competitor
competition GitHub URL to the competition

webots-animation-action's People

Contributors

lukicdarkoo avatar omichel 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.