SwervePy: An extendable swerve drive library for Python

Hello everyone!

I’m the code lead for Team 3164 Stealth Tigers, and I’m happy to announce the release of SwervePy, the first swerve library for Python teams.

Features:

  • Actual library, not just template code
  • Extendable to any configuration of modules, encoders, gyros, etc. through a set of base classes
  • Comprehensive SmartDasboard logging

IMO, the highlight of SwervePy is its extendability. Parts of the swerve drive (e.g., the drive motors) can be swapped out in code as easily as they can be swapped out mechanically. You change a class name and a few parameters, and your Falcons become NEOs. Plus, implementing new motors and sensors is easy.

A more detailed description and instructions are available on SwervePy’s GitHub. Please check it out, and let me know what you think. Thanks!

4 Likes