Skip to content
This repository was archived by the owner on Mar 2, 2021. It is now read-only.

Latest commit

 

History

History
60 lines (44 loc) · 2.63 KB

Webots-Setup.md

File metadata and controls

60 lines (44 loc) · 2.63 KB

Pre Requirements

Verifying Graphics Driver Installation

  • Make sure that Nvidia driver was already installed in the PC, for more information please refers here.

Configure APT Repository

  • Add Cyber Robotics's APT keys.
    ~$ curl -s -L https://www.cyberbotics.com/Cyberbotics.asc | sudo apt-key add -
  • Add Cyber Robotics's APT repository.
    ~$ sudo apt-add-repository 'deb https://www.cyberbotics.com/debian/ binary-amd64/'
  • Update the APT repository using sudo apt update command.

Installation

  • Install as usual using apt install command.
    ~$ sudo apt install webots

Note: Webots requires large amount of space (around 2 GB), so the installation process will take a lot of time.

Post Install

  • Run Webots from application launcher or from webots command.
  • On the first start you will be asked to chose theme and try some example simulation.

Note: If there is a warning about unsupported graphics driver, make sure that graphics drivers already installed properly as in Pre Requirements section. (Although sometimes simulation could still be run without graphics driver installed).

Note: If you are new in Webots it is recommended to try the tutorial first in here.

Configure Webots with Linux Environment

Note: For each new controller created, add a WEBOTS_HOME variable that contains path to the Webots's controller in the controller's Makefile file.

Add Webots Home Path to Environment Variable

  • In your ~/.bashrc file (or ~/.zshrc if using Zsh), add the following text in the bottom of the file to export WEBOTS_HOME environment variable that contains a path to Webots directory (usually it is /usr/local/webots).
    export WEBOTS_HOME=/usr/local/webots
  • Reload the environment with source command.

Configure Webots Library Path

  • Create a symbolic link from some of Webots's library to the default library path.
    ~$ sudo ln -s $WEBOTS_HOME/lib/controller/libController.so /usr/local/lib/libWebotsController.so
    ~$ sudo ln -s $WEBOTS_HOME/lib/controller/libCppController.so /usr/local/lib/libWebotsCppController.so
    ~$ sudo ln -s $WEBOTS_HOME/lib/webots/libpng12.so.0 /usr/local/lib/libpng12.so.0

Configure Webots Include Path

  • Create a symbolic link from Webots's include path to the default include path.
    ~$ sudo ln -s $WEBOTS_HOME/include/controller/cpp/webots /usr/local/include/webots