Install Webots and clone repository - cyberbotics/AROSYS GitHub Wiki

Welcome to this section which presents the steps to install the Webots simulator and how to clone the AROSYS repository from Github.

Previous step: Install Virtual Box Software and import image

1. Install the Webots Software

Step 1: Install

  • Open internet, go on the Webots website to download the latest Linux archive version.
  • Extract the archive (right-click and Extract here or use tar -xvjf file.tar.b2z)
  • Move the webots folder into /home/smartsoft/SOFTWARE/
  • Delete the archive to save space on the VM.

Step 2: Try Webots [optional]

  • Open a terminal and go in the webots folder: cd /home/smartsoft/SOFTWARE/webots
  • Launch Webots software: ./webots
  • Select your layout configuration between the three possibilities.
  • It is possible that you get a warning message about your graphical configuration.
  • In menu Tools, under Preferences, you can change some parameters such as the OpenGL ones for the graphics. Another one useful is the Startup mode under the General tab, to define the behavior of Webots simulator when opening a world.
  • You can follow the Webots Guided Tour to discover Webots features through examples.
  • Finally, can close the Webots software.

2. Clone the Repository

  • From the terminal go in the repos folder of Smartsoft: cd /home/smartsoft/SOFTWARE/smartsoft/repos/
  • Then, clone the repository: git clone https://github.com/cyberbotics/AROSYS.git

3. Verify/Configure WEBOTS_HOME

The last configuration to do is to add the path to Webots in your profile session.

  • Open a terminal.
  • Modify the command if you changed the location of Webots installation folder otherwise this should be used: echo -e "export WEBOTS_HOME=/home/smartsoft/SOFTWARE/webots" >> ~/.profile
  • Restart the Virtual Machine image to apply the modification.

4. Install Dependencies

The Webots components are using the JSON file format for configuration. Therefore, they rely on libjsoncpp, it can easily be installed with this command:

sudo apt install libjsoncpp-dev

Next step: Usage of SmartsoftMDSD Toolchain