Skip to content

Team2556/RobotPython2025

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RobotPython2025

Fresh start ; created for the 2025 season; transition to python

FRC Robot Project

This repository contains the code for our FRC robot using Python, PyRobot, and WPILib.

Setup

  1. Create a python based profile in your VS Code: optional profile file

  2. Make sure you have Python 3.12.5

    python --version
    ------------------------ 
    OUTPUT: Python 3.12.5

1a. If not go to [Other Resources] and download it.

  1. Clone the repository:
    git clone https://github.com/Team2556/RobotPython2025.git
    cd RobotPython2025
  2. ??automatic for newcomer?? Activate the virtual environment:
    On Windows: 
    venv\Scripts\activate
    On macOS/Linux: 
    source venv/bin/activate
  3. ??automatic for newcomer?? Install the dependencies:
    pip install . #the dot references your current directory
  1. Run the robot code:
    python src/robot.py
    

Repository Structure

  • We plan to use the following structure.
    FRC-Robot-Project/
    ├── robot.py
    ├── constants.py
    ├── subsystems/
    │   ├── __init__.py
    │   └── example_subsystem.py 
    ├── commands/
    │   ├── __init__.py
    │   └── example_command.py 
    ├── autonomous/
    │   ├── __init__.py
    │   └── example_command.py 
    ├── pathplanner/deploy/pathplanner/
    │   ├── autos
    │   └── paths
    ├── tests/
    │   ├── __init__.py
    │   └── test_robot.py
    ├── .gitignore
    ├── README.md
    ├── pyproject.toml
    └── venv/
    

Other Resources

VS Code Extensions

TODO: Refer to our main github readme or sync here.... In the VS Code Extensions sidbar, these codes should help you find usefull extensions (well.. Git and Python are required)

  • ms-python.python
  • github.vscode-pull-request-github
  • github.copilot
  • ms-python.black-formatter
  • njpwerner.autodocstring
  • tamasfe.even-better-toml
  • streetsidesoftware.code-spell-checker

ORIGINAL Setup (FYI)

  1. Clone the repository:
    git clone https://github.com/Team2556/RobotPython2025.git
    cd RobotPython2025
  2. Create a vertual environment (from a terminal; in the repo directry on your pc)
    python -m venv venv
  3. Activate the virtual environment:
    On Windows: 
    venv\Scripts\activate
    On macOS/Linux: 
    source venv/bin/activate
  1. initialize robotpy
    py -m robotpy init
    
  1. Run the robotpy sync to get the RoboRIO python
    py -m robotpy sync
  2. Run the robot code:
    python src/robot.py

About

Fresh Start for REEFScape 2025

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages