- Make sure that Nvidia driver was already installed in the PC, for more information please refers here.
- 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.
- 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.
- 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.
Note: For each new controller created, add a
WEBOTS_HOME
variable that contains path to the Webots's controller in the controller'sMakefile
file.
- 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.
- 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
- 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