Skip to main content

RobotPy web-based low fidelity FRC robot simulation package

Project description

robotpy-websim

This is an experimental HTML interface to the robotpy simulation library, intended to be a replacement for the Tk simulator interface that comes with pyfrc.

The primary control/simulation interface will be written in HTML/javascript, with easy to create extension points for custom simulation actions for your robot code. The idea is that this interface won’t be specific to python, but that the frontend can be reused with C++ or Java backends using a simulated HAL library for those languages. Those have not been implemented yet.

Warning: The contents of this repo are highly experimental, and may explode on contact.

Installation

Install the latest release of this package with pip (requires python 3 to be installed):

pip3 install robotpy-websim

Alternatively, you can install from master from a git clone:

git clone https://github.com/robotpy/robotpy-websim.git
cd robotpy-websim
pip3 install .

Usage

Given a python robot.py file, you should be able to execute the following:

python3 robot.py websim

Once this is done, you can use a web browser (Chrome is preferred) to browse to http://localhost:8000/ . The control interface should be there.

Custom extensions

TODO

Authors

Dustin Spicuzza came up with the original concept, but Amory Galili has done much of the initial heavy lifting.

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page