Setup Your Local Machine 🖥️
The purpose of this guide is to help onboard new programmers by installing the necessary software on their local machine. By the end, you’ll have everything needed to build and deploy robot code, run devcontainers, and collaborate with the team.
Prerequisites
Section titled “Prerequisites”- Windows 11 laptop
- Internet access
- Admin privileges
- Basic command line knowledge
- ~20 minutes
1. Install VS Code
Section titled “1. Install VS Code”- Download from code.visualstudio.com.
- Select the installer for Windows x64.
- Run the installer from File Explorer and follow the prompts.
- Once installed, open VS Code and sign in with a GitHub or Microsoft account (optional but recommended).
2. Install NI Game Tools
Section titled “2. Install NI Game Tools”These tools are required to communicate with the roboRIO.
- Download the latest NI FRC Game Tools from the official FIRST link: 👉 NI Game Tools Download
- Run the installer and accept defaults.
- Restart your computer after installation.
3. Install WPILib
Section titled “3. Install WPILib”WPILib is the core library and tooling for FRC robot programming.
- Go to the official releases: 👉 WPILib GitHub Releases
- Download the latest WPILib Installer for Windows.
- Run the installer. It will:
- Install VS Code FRC extensions
- Install the RoboRIO imaging tool
- Set up Gradle for robot builds
4. Install Python
Section titled “4. Install Python”Some of our tools and scripts rely on Python.
- Download Python from python.org/downloads.
- Choose the latest Python 3.x (Windows installer).
- Run the installer and check the box “Add Python to PATH”.
- Verify installation:
python --versionpip --version5. Install Docker Desktop
Section titled “5. Install Docker Desktop”Docker lets us run Dev Containers for a consistent environment across all machines.
- Download from Docker Desktop for Windows.
- Run the installer, accept defaults.
- Enable WSL 2 backend when prompted.
- Restart your computer.
- Verify Docker is running from the system tray.
Check Docker works:
docker --version6. Install WSL (Windows Subsystem for Linux)
Section titled “6. Install WSL (Windows Subsystem for Linux)”WSL provides a Linux environment on Windows. This is what Dev Containers use.
- Open PowerShell as Administrator.
- Run:
wsl --install- This installs Ubuntu by default. Restart when prompted.
- After reboot, set a username/password for your Ubuntu environment.
- Update Ubuntu packages:
sudo apt update && sudo apt upgrade -y- Verify:
wsl --list --verbose7. Test Dev Containers in VS Code
Section titled “7. Test Dev Containers in VS Code”-
Open VS Code.
-
Install the Dev Containers extension (if not already installed).
- Open the VSCode Extension menu (Ctrl+Shift+X)
- Search for Dev Containers
- Click Install
-
Clone a test repo (like our docs site):
git clone https://github.com/BC-Robotics-4504/bcr-docs
cd bcr-docs- When VS Code prompts “Reopen in Container”, click it.
- The container should build and open inside VS Code.