Skip to main content

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.

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.

Progress and Shortcomings

ftcsim is still missing some features. Most importantly, it lacks drivers/peripherals for the Lynx module. 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.

Pull requests targeting main build and validate the package. Every push to main publishes to PyPI; pushes to dev do not run CI. CI appends its run number to the source version, for example 0.1.0.post12, without committing version changes. Bump src/ftcsim/__init__.py when starting a new base release.

Publishing uses PyPI Trusted Publishing: owner simplyrohan, repository ftcsim, workflow publish.yml, environment pypi.

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.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ftcsim 0.1.0.post1
File Size Uploaded Provenance Actions
ftcsim-0.1.0.post1.tar.gz 31.4 MB With provenance Details for ftcsim-0.1.0.post1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ftcsim 0.1.0.post1
File Interpreter ABI Platform Actions
ftcsim-0.1.0.post1-py3-none-any.whl Python 3 none any Details for ftcsim-0.1.0.post1-py3-none-any.whl

Total release size: 126.4 MB

Release files / ftcsim-0.1.0.post1.tar.gz

Download URL ftcsim-0.1.0.post1.tar.gz
Size 31.4 MB
Tags Source
SHA-256 checksum
How to use checksums
8bbf4d1c05dd9a27d3ba5777680398a00bf9e9718e82a35029849b3150d0b524
BLAKE2b-256 checksum
How to use checksums
ab4c3de5f1c9e74ce5196a75304a98d0663328ba61ae7b41c5d96ef5eb86bb1c
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 log

Release files / ftcsim-0.1.0.post1-py3-none-any.whl

Download URL ftcsim-0.1.0.post1-py3-none-any.whl
Size 95.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2b7e01803538488272a5f396e8ce0177457534b753afd0b429424ad9c62d224e
BLAKE2b-256 checksum
How to use checksums
3205b851fa5a0e1dae4c5333880b2b4fd9c4c198c4d999e41718c98784d8beda
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 log

Security for ftcsim 0.1.0.post1

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.

Select from 2 files

Attestation for ftcsim-0.1.0.post1.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page