ftcsim
A desktop runtime and simulator for FTC robot code.
ftcsim is not another FTC gameplay simulator. It is a tool for software teams to directly test their robot's code without access to the physical robot. It works by swapping out the FtcRobotController for a custom version that communicates with a Python server. This server keeps track of motor states, sensor readings, and every other peripheral you could connect to a Lynx module. You can then configure your robot in the web driver station, which allows you to upload custom CAD models, change your hardware map, and configure mechanisms. Your code, ideally, never realizes it's not running on the real robot, giving you an accurate test platform for your robot's software.
Installation and Setup
Make sure you have Python 3.10+ and Android Studio (which I would hope you do) installed
pip install ftcsim
Setup
cd /path/to/your/FTC-project
ftcsim --wizard
This will install the TeamCodeSim package and desktop version of the SDK into your project. It'll also add Gradle tasks to run the simulator. Don't worry, the normal robot target will still work normally.
Windows troubleshooting
You may have errors related to finding the ftcsim executable on Windows, which is due to a missing PATH variable you need to configure.
First, try using the normal Command Prompt app instead of the Android Studio terminal.
You may also need to add Python's Scripts folder to your path. For this run
where python
This will output a path like: C:\Users\YourUsername\AppData\Local\Programs\Python\Python313\python.exe
- Your Scripts path will be in that exact same folder, inside a subfolder named
Scripts - e.g.
C:\Users\YourUsername\AppData\Local\Programs\Python\Python313\Scripts
Then add that Scripts path to your enviroment PATH variable.
Usage
Either in the Android Studio terminal or in another window run the robot simulator and driver station server.
ftcsim
You can use the Driver Station at localhost:9015/ds/.
Run ./gradlew runSimulator in the robot project to launch its SDK and TeamCode. You can also change the Gradle target in Android Studio to run it from your IDE.
The Driver Station
This is where you will be spending most of your time with ftcsim. The main overview tab shows a 3D field with the configured robot, OpMode controls, and a gamepad preview.
The bottom-left of the screen shows the connection status of the server and TeamCode. If you're having trouble connecting, try restarting the servers. You can also click on the labels and troubleshoot the connection manually.
Once connected, you can try running your OpMode. More than likely though, you'll first need to configure your robot. In settings, the hardware map functions the same as a normal hardware map on the Driver Station. Add all your motors, servos, and other peripherals with the correct name.
After configuring the hardware map, you may want to configure "mechanisms" to get sensor feedback on subsystems like the drivetrain, or to add visualizations of simpler subsystems like a turret.
For all mechanisms, you need to first configure the ports the mechanism interacts with. For drivebases, these are the drive motors and optional odometry encoders and coprocessors. For custom mechanisms, it's the servo or motor that changes the position or orientation of this mechanism.
In the "Model & origin" tab you can optionally add a 3D model as a GLB of your robot's subsystem. Configure the starting/zero position and orientation of the mechanism. For drivetrains, make sure the wheels are touching the ground. For custom mechanisms, the "Motion" tab sets how the motor's movement changes the 3D model.
Progress and Shortcomings
ftcsim is still missing some features. Most importantly, it doesn't have some drivers/peripherals for the Lynx module yet. For multi-motor or velocity-based feedback software to work, we also need to define mechanisms that link motor/servo output to sensor readings. Right now, I have a simple mecanum drive mechanism and a tank drive mechanism implemented, but they also need more odometry options. I also need to implement more drivebases and other miscellaneous mechanisms like flywheels.
Development
Source builds require Python 3.10+, JDK 17+, Node.js 22.12+, and npm
python3 -m pip install -e .
ftcsim --dev
Run npm ci and npm run dev in driver-station/ for frontend development
python3 -m pip install build
python3 -m build
The Python build runs scripts/build_driver_station.py and
scripts/build_sdk.py. They compile the frontend and JVM libraries into the package. Either script can also be run
independently.
License
This project is made by @simplyrohan at 29619 Axiom Robotics. ftcsim is licensed under GNU GPL v3. The bundled FTC SDK keeps its license.
Metadata
Release files for ftcsim 0.1.0.post4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ftcsim-0.1.0.post4.tar.gz | 31.4 MB | With provenance | Details for ftcsim-0.1.0.post4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ftcsim-0.1.0.post4-py3-none-any.whl | Python 3 | none | any | Details for ftcsim-0.1.0.post4-py3-none-any.whl |
Total release size: 126.5 MB
Release files / ftcsim-0.1.0.post4.tar.gz
| Download URL | ftcsim-0.1.0.post4.tar.gz |
|---|---|
| Size | 31.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7de62c6c5c0dd97bebb56071643af0a54ff5170eb46dd84565307d494216a2d
|
|
BLAKE2b-256 checksum How to use checksums |
f6513275fc99d6e3f7d477d75d713f1c9c9d00ba4b17f1fdb12908e570869380
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logRelease files / ftcsim-0.1.0.post4-py3-none-any.whl
| Download URL | ftcsim-0.1.0.post4-py3-none-any.whl |
|---|---|
| Size | 95.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1a43c3fe744a138569b0b49158cdb94e0f6d93506d6770e9f04f03b724a508f
|
|
BLAKE2b-256 checksum How to use checksums |
ae559e64f9d0f20c7fb35cab754e29aef1cc749050579161ee6234b4d3b992c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logSecurity for ftcsim 0.1.0.post4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ftcsim-0.1.0.post4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.