← Back to Pull requests

Fix the length of right strafing in the omni lattice generator #6900

Open
unknown opened this pull request with 335 lines diff across 4 files
View on GitHub
unknown unknown commented on Dec 03, 2026 12:20 UTC
Author

<!-- 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::getTraversalCost divides trajectory_length by 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 -->


  • Check that any new parameters added are updated in docs.nav2.org

  • Check that any significant change is added to the migration guide

  • Check that any new features OR changes to existing behaviors are reflected in the tuning guide

  • Check that any new functions have Doxygen added

  • Check that any new features have test coverage

  • Check that any new plugins is added to the plugins page

  • If BT Node, Additionally: add to BT's XML index of nodes for groot, BT package's readme table, and BT library lists

  • Should this be backported to current distributions? If so, tag with backport-*.
  • Diff: 335 lines (+251 / -84) across 4 files Reviewer: SteveMacenski Review duration: 1510m
    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
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.2% (MEDIUM) · Higher = larger blast radius
    42.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 22.5% · Safe to merge
    22.5%