Fix the length of right strafing in the omni lattice generator #6900
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.42) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 335 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.348
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #6900"
general
weight: 0.35
SteveMacenski
<!-- Please fill out the following pull request template for non-trivial changes to help us process your PR faster and more efficiently.-->
---
Basic Info
| Info | Please fill out this column |
| ------ | ----------- |
| Ticket(s) this addresses | - |
| Primary OS tested on | Ubuntu |
| Robotic platform tested on | wheel.me |
| Does this PR contain AI generated software? | yes for unittest |
| Was this PR description generated by AI software? | yes for plot |
---
Description of contribution in a few bullet points
Probably a copy-paste issue from the left-side generation. The right sliding takes its end point from the right-hand primitive but its arc start and arc end points from the left-hand one.
Note that the state lattice planner uses the trajectory length as the travel cost of a primitive, so every right slide cost three times as much as the left slide, thus the planner prefers to slide left.
NodeLattice::getTraversalCostdividestrajectory_lengthby the grid resolution and multiplies it by the travel reward and cost penalty.Generated sideways slides of a 16-heading omni control set (5 cm grid, 0.2 m turning radius), robot facing +x. The poses are identical before and after the fix. The shaded band along each slide shows its recorded length, which the planner uses as its cost: before the fix the right slide is charged for 0.150 m while it moves 0.050 m, and after the fix it is charged for its real 0.050 m:
<img width="1812" height="1032" alt="image" src="https://github.com/user-attachments/assets/d112877b-c6ea-499e-9462-7c43629c8ff0" />
Description of documentation updates required from your changes
None
Description of how this change was tested
You cam immediately see the difference on the generated trajectories length.
---
Future work that may be required in bullet points
None
For Maintainers: <!-- DO NOT EDIT OR REMOVE -->
backport-*.