Skip to main content
v2026.11,986 entries · CC-BY 4.0

Webots: Open-Source Robot Simulator, Setup and ROS 2

Webots is an open-source robot simulator. Install options, controller languages, extern controllers, ROS 2 and a Gazebo comparison from official docs.

Written and maintained by CASRAI Editorial Board

Published

On this page

Webots is an open-source robot simulator: a development environment for modelling, programming and simulating robots, vehicles and mechanical systems, released under the Apache 2.0 licence and maintained by Cyberbotics. Researchers and lab engineers use it to test robot controllers in software before, or instead of, running them on hardware, and its ROS 2 interface (webots_ros2) connects simulated robots to the Robot Operating System.

This guide covers what Webots does, how to install it, which languages controllers can use, how to run a controller outside Webots for debugging, how the ROS 2 package fits in, how Webots compares with Gazebo Sim, and what to record so another lab can repeat a simulation study. Every statement comes from the project’s own repositories and documentation, checked 2026-12-03.

What is Webots for?

According to the project README, Webots “provides a complete development environment to model, program, and simulate robots, vehicles, and mechanical systems”, and it is described as beginner-friendly software meant to introduce newcomers to robotics. In practice that means one application in which you build a 3D world, place a robot in it, write the controller program that reads the robot’s sensors and drives its motors, and run the simulation to see what the controller does.

The README also points to webots.cloud for viewing online Webots simulations and to a set of tutorials, numbered from a first simulation through to supervisor control and creating a first PROTO (a reusable robot or object definition), each aimed at one educational objective. That teaching orientation is why Webots shows up in classroom material, but the same tool is used for research simulation.

Origin, licence and who maintains it

The README states that Webots was designed at EPFL in 1996 as a research tool for mobile robotics, that Cyberbotics began developing and commercialising it in 1998, and that it was open-sourced in December 2018. Cyberbotics continues to develop it, funded by paid customer support, training and consulting for industry and academic research projects. The repository carries an Apache 2.0 licence, which permits reuse subject to that licence’s terms; see the open-source software entry for how this kind of licensing fits research practice.

Release status changes quickly. On 2026-12-03 the repository’s latest release was tagged R2027a, and release assets were published for Linux (a .deb, a .tar.bz2 and a .snap), Windows (a _setup.exe) and macOS (a .dmg). Check the releases page for the version current when you read this, and record the exact version you use (see the reproducibility section below).

How to install Webots

Pre-compiled binaries for Linux, Windows and macOS come from the GitHub releases page of the cyberbotics/webots repository, which also lists older releases and nightly builds. The README also links to instructions for building from source. The installation chapter of the user guide adds the following points.

  • You will usually need system administrator rights to install Webots, and an older installed version should be uninstalled first.
  • On Linux there are three package types: .deb (a Debian package), .tar.bz2 (a tarball) and .snap (a snap package).
  • The Debian package is aimed at the latest Ubuntu LTS distribution. The tarball and snap packages include many dependency libraries and are therefore better suited to other Linux distributions.
  • Webots runs much faster with accelerated OpenGL drivers; the guide recommends installing the manufacturer’s Linux graphics drivers if you have an NVIDIA or AMD graphics card.
  • A Debian package can be installed through an APT repository or directly with apt or gdebi using root privileges.

After installing, work through the tutorials the README links to before building your own world. Updating an installed version has its own page in the user guide, linked from the README.

Which languages can Webots controllers use?

The user guide states that Webots can execute controllers written in compiled languages (C/C++ and Java) or interpreted languages (Python and MATLAB). On Windows, Webots ships with a preconfigured copy of the MinGW C/C++ compiler, so no separate C/C++ compiler is needed there; on other platforms and for other languages the supporting tools are installed separately.

The launcher that Webots distributes for external controllers (next section) accepts executables, Python files (.py), Java files (.jar and .class) and MATLAB files (.m), which is a second, independent confirmation of the same language set.

Running a robot controller outside Webots (extern controllers)

Normally Webots starts the controller named in the controller field of each Robot node. If that field is set to extern, no controller is launched, and the robot behaves as if its controller field were empty until you start a Webots controller manually. A controller started on the same computer connects to the waiting robot, and a controller on a remote computer can connect over a TCP connection.

The documentation lists the practical reasons for working this way:

  • You control the controller process, so you can run it in a debugger such as gdb or inside an IDE such as Visual C++, Eclipse or PyCharm.
  • Standard output and error streams stay under your control instead of going to the Webots console, and standard input can be read like in any ordinary program.
  • Webots can run on one machine and the controller on another, which helps when the two processes have very different hardware requirements.

One setting matters for repeatable runs. If the Robot node’s synchronization field is TRUE, Webots waits for the extern controller to be launched; otherwise the simulation runs whether or not the controller has started. The controller is launched with the webots-controller tool (on Linux, $WEBOTS_HOME/webots-controller), and the WEBOTS_HOME environment variable must point to the Webots installation folder. The snap version has its own section in the same chapter.

Webots and ROS 2

The webots_ros2 package is described in its README as providing “the necessary interfaces to simulate a robot in the Webots open-source 3D robots simulator”, integrating with ROS 2 through messages, services and actions. It is released under Apache 2.0, and its documentation (a wiki with Getting Started, Examples, References and Tutorials sections) is in the repository. The README acknowledges support from the ROSIN project (ROS-Industrial quality-assured robot software components) and from OpenDR (Open Deep Learning Toolkit for Robotics), both funded under EU Horizon 2020 grant agreements (no. 732287 and no. 871449 respectively).

Is ROS still used?

Yes, at least in this ecosystem: the webots_ros2 repository’s most recent push was on 2026-11-19, according to the GitHub API on 2026-12-03, and the official ROS 2 documentation carries a tutorial section on simulating with Webots. That is evidence about this one integration rather than a measure of ROS use overall.

Setting up webots_ros2

The package wiki gives a minimal workflow: create a workspace, update rosdep, clone the repository with its submodules, install dependencies with rosdep install, build with colcon build --symlink-install, and source both the ROS 2 setup file and the workspace’s install/setup.bash. The wiki then suggests trying a bundled demo, ros2 launch webots_ros2_universal_robot multirobot_launch.py, which launches a simulation with two robot arms (an ABB arm and a UR5e) moving cans. If the correct Webots version is not installed, the package offers to install it automatically, which the wiki says is possible only on Linux and Windows; you then re-run the launch command. The wiki points to the official ROS 2 documentation for fuller installation and tutorials.

Robot packages in the repository

The repository contains separate sub-packages for the interface itself (webots_ros2_driver), ROS 2 control (webots_ros2_control), importing robot descriptions (webots_ros2_importer) and specific robots such as the e-puck, Mavic, Husarion and Crazyflie. If your robot is already described in URDF, see the URDF guide for how that format models a robot, since the importer package is the route from such a description into Webots.

Strengths and limits

What the sources support

  • Licence and cost model. Apache 2.0 for both the simulator and the ROS 2 package, with development funded by support, training and consulting.
  • Cross-platform packages. Releases cover Linux, Windows and macOS.
  • Several controller languages. C/C++, Java, Python and MATLAB.
  • Debuggable controllers. The extern-controller mechanism supports debuggers, IDEs and remote machines.
  • Teaching material. A numbered tutorial series and an online simulation viewer (webots.cloud).

What to plan for

  • Known bugs. The README says Webots supports many use cases and the developers cannot address every bug; it links a list of known bugs and workarounds that will not be fixed in the short term, and the full issue tracker on GitHub.
  • Graphics hardware. Without accelerated OpenGL drivers, performance is much lower, so simulation speed depends on the machine.
  • Versions move. The simulator and the ROS 2 package are versioned separately, and the ROS 2 package may need a matching Webots version, so pin both.
  • Simulation is not the lab. A simulated result describes the model you built; the documentation does not claim that simulated behaviour transfers unchanged to hardware, and neither should a methods section.

Webots and Gazebo Sim: alternatives

Gazebo Sim, from the Gazebo project, is the other open-source robot simulator most often searched alongside Webots. Its README describes it as “an open source robotics simulator” offering high-fidelity physics, rendering and sensor models, with a graphical interface, plugins and asynchronous message passing. The table below sets the two side by side using only what each project’s own README states. For a simulator aimed at driving research, see the CASRAI guide to the CARLA simulator.

Feature Webots Gazebo Sim
Self-description Complete development environment to model, program and simulate robots, vehicles and mechanical systems Open-source robotics simulator with high-fidelity physics, rendering and sensor models
Licence shown in README Apache 2.0 Apache License 2.0 (badge links to the licence text)
Origin as stated EPFL research tool for mobile robotics, 1996; open-sourced 2018 Derived from Gazebo Classic; “over 16 years of development”
Extension points Controllers in C/C++, Java, Python, MATLAB Plugins, a plugin-based graphical interface, socket-based message passing
Model libraries Tutorials and PROTO definitions Models through Gazebo Fuel, or new models built in SDF
ROS 2 route The webots_ros2 package Not covered by the README read for this page

Which tool fits depends on your robot, your ROS version and what your group already uses; neither README ranks the two.

Citing and reproducing a Webots study

The sources read for this page give no citation format for Webots, so cite what a reader can actually retrieve: the repository URL, the release tag you ran (for example R2027a) and the webots_ros2 version if you used it. To make a simulation study repeatable, record the items the documentation shows can change a run: the Webots version and operating system, the graphics driver situation, the controller language and whether it ran as an extern controller, the value of the Robot node’s synchronization field, and the world and controller files. Deposit those files with the paper. The computational reproducibility entry explains why this record is what lets another group re-run the work. For robots that will leave the simulator, the robot safety guide covers the hardware side.

Frequently asked questions

What is Webots for?

Webots is for modelling, programming and simulating robots, vehicles and mechanical systems in one open-source environment. You build a 3D world, write a controller in C/C++, Java, Python or MATLAB, and run it against simulated sensors and motors. It is also used for teaching, through its tutorial series.

Is Webots free?

The simulator is open source under the Apache 2.0 licence, and binaries are downloadable from its GitHub releases. Cyberbotics funds development through paid support, training and consulting, according to the project README.

Is ROS still used?

ROS 2 remains supported by Webots through the maintained webots_ros2 package, whose repository was last pushed to on 2026-11-19 (GitHub API, read 2026-12-03). This answers for the Webots integration only; it is not a survey of ROS adoption.

Which languages can I write Webots controllers in?

The user guide lists C/C++ and Java (compiled) and Python and MATLAB (interpreted). On Windows a MinGW C/C++ compiler comes preinstalled.

Can I debug a Webots controller in my IDE?

Yes. Set the Robot node’s controller field to extern and start the controller yourself with the webots-controller launcher, which lets you use gdb, PyCharm, Eclipse or Visual C++. Controllers can also connect over TCP from a remote machine.

What are the big 4 robotics and the 10 types of robots?

Those are general robotics questions that the Webots documentation does not answer, so this page does not rank or list them. The Webots sources do name some simulated robots, including the e-puck, Mavic, Husarion and Crazyflie packages and the ABB and UR5e arms in the ROS 2 demo; see the robotics and computer-integrated manufacturing guide for the journal literature on industrial robots.

Sources

Data: Webots components, interfaces and distribution formats documented by the project

Compiled from the Webots and webots_ros2 repository READMEs, the Webots user guide chapters on installation, controller languages and extern controllers, and the webots_ros2 Getting Started wiki, all read on 2026-12-03. Each row names one component and what the project documents about it.

Period covered: 2026-12.

Webots components, interfaces and distribution formats documented by the project
ComponentWhat the project documentsFormats or interface
Webots simulatorEnvironment to model, program and simulate robots, vehicles and mechanical systems; Apache 2.0Binaries for Linux, Windows and macOS from GitHub releases
Linux packagesDebian package targets latest Ubuntu LTS; tarball and snap bundle dependency libraries.deb, .tar.bz2, .snap
Controller languagesCompiled and interpreted languages; MinGW C/C++ compiler preinstalled on WindowsC/C++, Java, Python, MATLAB
Extern controller launcherStarts a controller outside Webots for a robot whose controller field is extern; local or TCP remoteExecutables, .py, .jar/.class, .m
webots_ros2Interfaces to simulate a robot in Webots through ROS 2; Apache 2.0ROS 2 messages, services, actions
webots_ros2 demoLaunch file starting a simulation with an ABB arm and a UR5e arm moving cansros2 launch webots_ros2_universal_robot multirobot_launch.py

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about Webots: Open-Source Robot Simulator, Setup and ROS 2

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →