Fresh start ; created for the 2025 season; transition to python
This repository contains the code for our FRC robot using Python, PyRobot, and WPILib.
Create a python based profile in your VS Code: optional profile file
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.
Clone the repository:
git clone https://github.com/Team2556/RobotPython2025.git
cd RobotPython2025
??automatic for newcomer?? Activate the virtual environment:
On Windows:
venv\Scripts\activate
On macOS/Linux:
source venv/bin/activate
??automatic for newcomer?? Install the dependencies:
pip install . #the dot references your current directory
<!--
initialize robotpy
3. Create folders named 'subsytems' and 'tests'
```sh
mkdir subsytems
mkdir tests
py -3 -m robotpy init -->
<!--
move robot.py file created by initilization to 'src' folder move robot2.py src\ -->
Run the robot code:
python src/robot.py
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/
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)
Clone the repository:
git clone https://github.com/Team2556/RobotPython2025.git
cd RobotPython2025
Create a vertual environment (from a terminal; in the repo directry on your pc)
python -m venv venv
Activate the virtual environment:
On Windows:
venv\Scripts\activate
On macOS/Linux:
source venv/bin/activate
<!-- 4. Install the dependencies:
```sh
pip install . #the dot references your current directory -->
initialize robotpy
py -m robotpy init
py -m robotpy sync
python src/robot.py