[examples] Reorganize templates to use CommandsV2 (#8432)

Change Commandbased to Commandv2
Run example check on templates
This commit is contained in:
sciencewhiz
2025-11-29 20:46:32 -08:00
committed by GitHub
parent 5aa0b7afea
commit e902a98601
44 changed files with 119 additions and 115 deletions

View File

@@ -84,8 +84,8 @@ SNIPPETS_FOLDERS = [
]
TEMPLATES_FOLDERS = [
"commandbased",
"commandbasedskeleton",
"commandv2",
"commandv2skeleton",
"robotbaseskeleton",
"timed",
"timedskeleton",

View File

@@ -296,10 +296,10 @@
},
{
"name": "'Traditional' Hatchbot",
"description": "A fully-functional command-based hatchbot for the 2019 game, written in the 'traditional' style, i.e. commands are given their own classes.",
"description": "A fully-functional Commandv2 hatchbot for the 2019 game, written in the 'traditional' style, i.e. commands are given their own classes.",
"tags": [
"Complete Robot",
"Command-based",
"Commandv2",
"Differential Drive",
"Encoder",
"Sendable",
@@ -313,10 +313,10 @@
},
{
"name": "'Inlined' Hatchbot",
"description": "A fully-functional command-based hatchbot for the 2019 game, written in the 'inlined' style, i.e. many commands are defined inline with lambdas.",
"description": "A fully-functional Commandv2 hatchbot for the 2019 game, written in the 'inlined' style, i.e. many commands are defined inline with lambdas.",
"tags": [
"Complete Robot",
"Command-based",
"Commandv2",
"Differential Drive",
"Encoder",
"Sendable",
@@ -330,10 +330,10 @@
},
{
"name": "Rapid React Command Bot",
"description": "A fully-functional command-based fender bot for the 2022 game, written in the 'inlined' style, i.e. many commands are defined inline with lambdas.",
"description": "A fully-functional Commandv2 fender bot for the 2022 game, written in the 'inlined' style, i.e. many commands are defined inline with lambdas.",
"tags": [
"Complete Robot",
"Command-based",
"Commandv2",
"Differential Drive",
"Intake",
"Flywheel",
@@ -353,7 +353,7 @@
"name": "Select Command Example",
"description": "Use SelectCommand to select an autonomous routine.",
"tags": [
"Command-based"
"Commandv2"
],
"foldername": "SelectCommand",
"gradlebase": "cpp",
@@ -466,7 +466,7 @@
"name": "DriveDistanceOffboard",
"description": "Drive a differential drivetrain a set distance using TrapezoidProfile and smart motor controller PID.",
"tags": [
"Command-based",
"Commandv2",
"Differential Drive",
"Trapezoid Profile",
"Smart Motor Controller",
@@ -478,10 +478,10 @@
},
{
"name": "RomiReference",
"description": "An example command-based robot program that can be used with the Romi reference robot design.",
"description": "An example Commandv2 robot program that can be used with the Romi reference robot design.",
"tags": [
"Romi",
"Command-based",
"Commandv2",
"Differential Drive",
"Digital Input",
"Joystick"
@@ -495,10 +495,10 @@
},
{
"name": "XRP Reference",
"description": "An example command-based robot program that can be used with the XRP reference robot design.",
"description": "An example Commandv2 robot program that can be used with the XRP reference robot design.",
"tags": [
"XRP",
"Command-based",
"Commandv2",
"Differential Drive",
"Digital Input",
"Joystick"
@@ -662,7 +662,7 @@
},
{
"name": "SimpleDifferentialDriveSimulation",
"description": "Simulate a differential drivetrain and follow trajectories with LTVUnicycleController (non-command-based).",
"description": "Simulate a differential drivetrain and follow trajectories with LTVUnicycleController (non-Commandv2).",
"tags": [
"Differential Drive",
"State-Space",
@@ -706,10 +706,10 @@
},
{
"name": "SysIdRoutine",
"description": "A sample command-based robot demonstrating use of the SysIdRoutine command factory",
"description": "A sample Commandv2 robot demonstrating use of the SysIdRoutine command factory",
"tags": [
"SysId",
"Command-based",
"Commandv2",
"DataLog"
],
"foldername": "SysIdRoutine",

View File

@@ -1,22 +1,22 @@
[
{
"name": "Command Robot",
"description": "Command-based, with explanatory comments and example code.",
"name": "Command v2 Robot",
"description": "Command v2, with explanatory comments and example code.",
"tags": [
"Command"
"Commandv2"
],
"foldername": "commandbased",
"foldername": "commandv2",
"gradlebase": "cpp",
"commandversion": 2
},
{
"name": "Command Robot Skeleton (Advanced)",
"description": "Skeleton (stub) code for Command-based, without explanatory comments and example code.",
"name": "Command v2 Robot Skeleton (Advanced)",
"description": "Skeleton (stub) code for Command v2, without explanatory comments and example code.",
"tags": [
"Command",
"Commandv2",
"Skeleton"
],
"foldername": "commandbasedskeleton",
"foldername": "commandv2skeleton",
"gradlebase": "cpp",
"commandversion": 2
},
@@ -77,10 +77,10 @@
"name": "Romi - Command Robot",
"description": "Romi - Command style",
"tags": [
"Command",
"Commandv2",
"Romi"
],
"foldername": "commandbased",
"foldername": "commandv2",
"gradlebase": "cppromi",
"commandversion": 2,
"extravendordeps": [
@@ -105,10 +105,10 @@
"name": "XRP - Command Robot",
"description": "XRP - Command style",
"tags": [
"Command",
"Commandv2",
"XRP"
],
"foldername": "commandbased",
"foldername": "commandv2",
"gradlebase": "cppxrp",
"commandversion": 2,
"extravendordeps": [