docs: record MovementTest OSQP iteration implementation
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
- Consumes: TrajectoryObservationSettings.CreateValidatedSnapshot() and TrajectoryObservationController.StartCycle(...).
|
||||
- Produces: TrajectoryObservationSettings.MaximumOsqpIterations, copied to EmPlanningRequest.Configuration.Solver.MaximumOsqpIterations.
|
||||
|
||||
- [ ] **Step 1: Write the failing test**
|
||||
- [x] **Step 1: Write the failing test**
|
||||
|
||||
Add assertions proving the public field uses the default and a custom setting reaches the request:
|
||||
|
||||
@@ -50,7 +50,7 @@ Verification.Equal(9000, planningService.Requests[0].Configuration.Solver.Maximu
|
||||
|
||||
Assert 0 and negative iteration limits are rejected.
|
||||
|
||||
- [ ] **Step 2: Run focused verification to verify it fails**
|
||||
- [x] **Step 2: Run focused verification to verify it fails**
|
||||
|
||||
Run:
|
||||
|
||||
@@ -60,7 +60,7 @@ dotnet run --project ClumsyPilot/tests/EMPlannerVerificationHost/EMPlannerVerifi
|
||||
|
||||
Expected: FAIL because MaximumOsqpIterations is absent.
|
||||
|
||||
- [ ] **Step 3: Write the minimal implementation**
|
||||
- [x] **Step 3: Write the minimal implementation**
|
||||
|
||||
Add this setting and snapshot mapping:
|
||||
|
||||
@@ -81,7 +81,7 @@ Map it into the MovementTest settings and session configuration:
|
||||
configuration.Solver.MaximumOsqpIterations = settings.MaximumOsqpIterations;
|
||||
~~~
|
||||
|
||||
- [ ] **Step 4: Run focused verification to verify it passes**
|
||||
- [x] **Step 4: Run focused verification to verify it passes**
|
||||
|
||||
Run:
|
||||
|
||||
@@ -91,7 +91,7 @@ dotnet run --project ClumsyPilot/tests/EMPlannerVerificationHost/EMPlannerVerifi
|
||||
|
||||
Expected: PASS trajectory-observation.
|
||||
|
||||
- [ ] **Step 5: Run full regression and build**
|
||||
- [x] **Step 5: Run full regression and build**
|
||||
|
||||
Run:
|
||||
|
||||
@@ -102,10 +102,9 @@ dotnet build ClumsyPilot/ClumsyPilot.csproj --no-restore
|
||||
|
||||
Expected: all suites pass and the build reports zero errors.
|
||||
|
||||
- [ ] **Step 6: Commit implementation**
|
||||
- [x] **Step 6: Commit implementation**
|
||||
|
||||
~~~powershell
|
||||
git add ClumsyPilot/tests/EMPlannerVerificationHost/TrajectoryObservationChecks.cs ClumsyPilot/ParkrobTrajplanner/tarjplanner_movementtest/TrajectoryObservationContracts.cs ClumsyPilot/ParkrobTrajplanner/tarjplanner_movementtest/MovementTest.TrajectoryObservationTest.cs ClumsyPilot/ParkrobTrajplanner/tarjplanner_movementtest/TrajectoryObservationPipeline.cs
|
||||
git commit -m "feat: configure MovementTest OSQP iterations"
|
||||
~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user