This is a cross-platform simulator for First Tech Challenge robots created by Team 6448 (Jesuit Blue Jays). The FTC Simulator acts as a bridge between the Qualcomm API used by the FTC Android app and the Webots open source simulator. You can find more information on:
- Download Webots from their Github release. The sample world we provide requires Webots 2021b or earlier and is not compatible with newer versions.
- Rename
simulation.properties.example
tosimulation.properties
and edit the file to add the full path to your Android Studio project. - Open Webots and then open the sample world located at
SampleWebotsProject/worlds/gobilda - freight.wbt
. - Profit.
- Download Webots from their Github release. The sample world we provide requires Webots 2021b or earlier and is not compatible with newer versions.
- Download FTCController.jar and SimulatorSupport.jar from the release.
- Download the sample webots project.
- Add the FTCController.jar to
SampleWebotsProject/controllers/FTCController
. - Rename
simulation.properties.example
tosimulation.properties
and edit the file to add the full path to your Android Studio project. - Launch your Webots world.
You can find more information about getting started with Webots here.
- To make your simulated robot behave as close as possible to a real robot, add the SimulatorSupport.jar to your Android Studio project and use its methods to make the simulator behave similar to the real world.
- Use the properties file to map motors and convert Webots motors to Servos and Continuos Rotation Servos.
- Export the code from your IDE.
- Create an Android Studio project, and add your code into it.
- Build the project.
- Make sure that the configuration file points to the full path of the Android Studio project.
- Build the sample code.
You can find more information about getting started with Android Studio here.
- The sample world is designed for Webots R2021b or earlier. The coordinate system was changed with release R2022A, and the sample world is not compatible. The sample world will be updated for the new coordinate system after the competition season. Download R2021b from this link: https://github.com/cyberbotics/webots/releases/tag/R2021b