Getting Started - cyberbotics/webots_ros2 GitHub Wiki

Check the Tutorials in the official ROS documentation for more details about webots_ros2 installation methods for Linux, Windows and macOS.

Other tutorials on how to create custom Webots - ROS 2 simulations and other more advanced tools can be found in the official ROS 2 documentation.

This wiki gives you a minimal set of instructions to run example packages. It also contains references to nodes and plugins available in the driver interface. More complete and detailed instructions and explanations are given in tutorials of the offical ROS documentation.

Try the Demos

There are many examples shipped within the webots_ros2 package, but you can try for example:

ros2 launch webots_ros2_universal_robot multirobot_launch.py

ROS2 Environment: Make sure your ROS2 environment is sourced (source /opt/ros/$ROS_DISTRO/setup.bash).

Webots Installation: If you don't have the correct version of Webots installed the package will offer an automatic installation. In that case, you will need to re-run the command once Webots is installed and configured. This is only possible on Linux and Windows.

This command will launch Webots simulation with two robotics arms, ABB and UR5e, moving cans.

More instructions on other examples are available in the Examples section: https://github.com/cyberbotics/webots_ros2/wiki/Examples