Simulate FIRST Robotics Competition (FRC) robots in the Webots robot simulator.
We (Team 199, Deep Blue) are actively developing it. It is working for us, but the implementation is still changing rapidly.
See the issues for likely changes in the near future.
Works on Windows, MacOS, and Linux.
Works with Java WPILib projects and (probably) C++ WPILib projects because it takes advantage of the WPILib's WebSockets server desktop simulation extension.
- Install Webots if you don't already have it installed.
- Add the DeepBlueSim Gradle plugin to your
build.gradleby adding the following line in yourpluginssection:
id "org.team199.deepbluesim" version "0.0.12"
- In VSCode run the
WPILib: Create a new projectcommand and create the example project. - Add the DeepBlueSim Gradle plugin to the
build.gradleas described above. - In VSCode run the
WPILib: Simulate Robot Code on Desktopcommand and select bothlibhalsim_guiandlibhalsim_ws_serveras the extensions to use. - Start Webots and open your_example_project
/Webots/worlds/DBSExample.wbt - In the HALSim GUI, select
Autonomousto see the robot drive forward for 2 seconds, or selectTeleopand use the keyboard on joystick to drive the robot around.