[robotpy][examples] Split examples and snippets (#8944)

This also updates the bazel scripts to behave more like the C++ and Java
examples, and updates the copybara scripts to be able to sync up
`mostrobotpy`
This commit is contained in:
PJ Reiniger
2026-06-03 22:43:16 -04:00
committed by GitHub
parent a734275cc5
commit dca59147e1
134 changed files with 111 additions and 80 deletions

View File

@@ -1,51 +1,53 @@
PROJECTS = [
"AddressableLED",
"AprilTagsVision",
"ArcadeDrive",
"ArcadeDriveXboxController",
"ArmSimulation",
"CANPDP",
"DifferentialDriveBot",
"DifferentialDrivePoseEstimator",
"DigitalCommunication",
"DriveDistanceOffboard",
"DutyCycleEncoder",
"DutyCycleInput",
"ElevatorExponentialProfile",
"ElevatorExponentialSimulation",
"ElevatorProfiledPID",
"ElevatorSimulation",
"ElevatorTrapezoidProfile",
"Encoder",
"EventLoop",
"FlywheelBangBangController",
"GettingStarted",
"Gyro",
"HatchbotInlined",
"HatchbotTraditional",
"HttpCamera",
"I2CCommunication",
"IntermediateVision",
"MecanumBot",
"MecanumDrive",
"MecanumDrivePoseEstimator",
"Mechanism2d",
"MotorControl",
"QuickVision",
"RapidReactCommandBot",
"RomiReference",
"SelectCommand",
"SimpleDifferentialDriveSimulation",
"Solenoid",
"StateSpaceArm",
"StateSpaceElevator",
"StateSpaceFlywheel",
"StateSpaceFlywheelSysId",
"SwerveBot",
"SwerveDrivePoseEstimator",
"SysId",
"TankDrive",
"TankDriveXboxController",
"UnitTest",
"XrpReference",
EXAMPLE_PROJECTS = [
"examples/ArcadeDrive",
"examples/ArcadeDriveXboxController",
"examples/ArmSimulation",
"examples/DifferentialDriveBot",
"examples/DifferentialDrivePoseEstimator",
"examples/DriveDistanceOffboard",
"examples/DutyCycleEncoder",
"examples/ElevatorExponentialProfile",
"examples/ElevatorExponentialSimulation",
"examples/ElevatorProfiledPID",
"examples/ElevatorSimulation",
"examples/ElevatorTrapezoidProfile",
"examples/Encoder",
"examples/GettingStarted",
"examples/Gyro",
"examples/HatchbotInlined",
"examples/HatchbotTraditional",
"examples/MecanumBot",
"examples/MecanumDrive",
"examples/MecanumDrivePoseEstimator",
"examples/Mechanism2d",
"examples/RapidReactCommandBot",
"examples/RomiReference",
"examples/SimpleDifferentialDriveSimulation",
"examples/StateSpaceArm",
"examples/StateSpaceElevator",
"examples/StateSpaceFlywheel",
"examples/StateSpaceFlywheelSysId",
"examples/SwerveBot",
"examples/SwerveDrivePoseEstimator",
"examples/SysId",
"examples/TankDrive",
"examples/TankDriveXboxController",
"examples/UnitTest",
"examples/XrpReference",
]
SNIPPET_PROJECTS = [
"snippets/AddressableLED",
"snippets/AprilTagsVision",
"snippets/CANPDP",
"snippets/DigitalCommunication",
"snippets/DutyCycleInput",
"snippets/EventLoop",
"snippets/FlywheelBangBangController",
"snippets/HttpCamera",
"snippets/I2CCommunication",
"snippets/IntermediateVision",
"snippets/MotorControl",
"snippets/QuickVision",
"snippets/SelectCommand",
"snippets/Solenoid",
]