RobotPy
stable

Robot Programming

  • Getting Started
  • Upgrade Notes
  • Installation
  • Programmer's Guide
    • Introduction to Python
    • Anatomy of a robot
    • Running robot code
    • Deploying to the robot
    • Robot Simulator
    • Unit testing robot code
    • Best Practices
    • Using NetworkTables
    • Example Code
  • Frameworks
  • Hardware & Sensors
  • Camera & Vision

API Reference

  • WPILib API
  • NTCore API
  • CSCore API
  • Commands API
  • Utilities API
  • PyFRC API
  • HAL API
  • Apriltag API
  • WPIMath API
  • WPINet API
  • WPIUtil API

Third Party HW

  • CTRE API
  • NavX API
  • REVLib API
  • PathPlannerLib API
  • PhotonVision API
  • PWFusion API
  • Romi API

Additional Info

  • Troubleshooting
  • Support
  • FAQ

RobotPy Developers

  • Developer Documentation
RobotPy
  • Programmer’s Guide
  • Edit on GitHub

Programmer’s Guide¶

  • If you don’t know python very well (or at all), start with Introduction to Python

  • Otherwise, start with Anatomy of a robot

  • Introduction to Python
    • Language elements
    • Variables
    • Control Flow
    • Operations
    • Functions
    • Classes
    • Loops
    • Exceptions
    • Future topics
    • Next Steps
  • Anatomy of a robot
    • Create your Robot code
    • Importing necessary modules
    • Robot object
    • Adding motors and sensors
    • Robot Operating Modes (TimedRobot)
    • Main block
    • Putting it all together
    • Next Steps
  • Running robot code
    • How to execute the script
    • Commands
    • Next steps
  • Deploying to the robot
    • Immediate feedback via Netconsole
    • Skipping Tests
    • Starting deployed code at boot
    • Manually deploying code
    • Next Steps
  • Robot Simulator
    • Running the simulator
    • User interface
    • 2D Field Widget and Physics
    • Communicating via NetworkTables
    • Next Steps
  • Unit testing robot code
    • Builtin unit tests
    • Writing your own test functions
    • Code coverage for tests
    • Next Steps
  • Best Practices
    • Make sure you’re running the latest version of RobotPy!
    • Don’t use the print statement/logger excessively
    • Don’t die during the competition!
    • Consider using a robot framework
  • Using NetworkTables
    • Robot Configuration
    • Resources
  • Example Code
Previous Next

© Copyright 2014-2023, RobotPy development team. Revision 137cb184.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: stable
Versions
latest
stable
2023.5
2023.4
2023.3
2023.2
2023.1
2023.0
2022.2
2022.1
2022.0
2021.6
2021.5
2021.4
2021.3
2021.2
2021.1
2021.0
2020.1.7
2020.1.6
2020.1.5
2020.1.4
2020.1.3
2020.1.2
2020.1.1
2020.1.0
2020.0.10
2020.0.9
2020.0.8
2020.0.7
2020.0.6
2020.0.5
2020.0.4
2020.0.3
2020.0.2
2020.0.1
2020.0.0
2019.1.2
2019.1.1
2019.1.0
2019.0.5
2019.0.4
2019.0.3
2019.0.2
2018.0.11
2018.0.10
2018.0.9
2018.0.8
2018.0.7
2018.0.6
2018.0.5
2018.0.4
2018.0.3
2018.0.2
2018.0.1
2018.0.0
2017.1.4
2017.1.3
2017.1.2
2017.1.1
2017.1.0
2017.0.8
2017.0.7
2017.0.6
2017.0.5
2017.0.4
2017.0.3
2017.0.2
2017.0.1
2017.0.0
2016.2.4
2016.2.3
2016.2.2
2016.2.1
2016.2.0
2016.1.4
2016.1.3
2016.1.2
2016.1.1
2016.1.0
2016.0.0
2015.0.15
2015.0.14
2015.0.13
2015.0.12
2015.0.11
2015.0.10
2015.0.9
2015.0.8
2015.0.7
2015.0.6
2015.0.4
2015.0.3
2015.0.2
Downloads
On Read the Docs
Project Home
Builds