← Back to Pull requests

Decouple opennav_following from opennav_docking #6905

Open
unknown opened this pull request with 441 lines diff across 5 files
View on GitHub
unknown unknown commented on Dec 04, 2026 08:01 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 | #6468 |
| Primary OS tested on | Ubuntu (24.04.5 Noble, ROS 2 Jazzy) |
| Robotic platform tested on | Unit tests only |
| Does this PR contain AI generated software? | No |
| Was this PR description generated by AI software? | No |

---

Description of contribution in a few bullet points

<!--
I added this neat new feature
Also fixed a typo in a parameter name in nav2_costmap_2d
-->

The PR https://github.com/ros-navigation/navigation2/pull/6469 are broken into easily tractable steps. This PR is the first step of a set of PRs. It has structural changes that removed dependency of opennav_following to opennav_docking. And, moves commonly used code to core packages.

opennav_following have the following behavioral changes:

  • no longer publishes docking_trajectory

  • no longer subscribes to the costmap or footprint

  • controller.use_collision_detection is ignored instead of failing configure

  • the approach loop no longer throws "Failed to get control".
  • Description of documentation updates required from your changes

    <!--
    Added new parameter, so need to add that to default configs and documentation page
    I added some capabilities, need to document them
    -->

  • opennav_following server docs page should drop docking_trajectory and use_collision_detection if they are mentioned. (It does not have a readme)

  • There should be a migration guide that explains the following: external dock plugins must switch from opennav_docking_core:: to the nav2_core:: namespaces for exceptions and use nav2_util::PoseFilter.
  • Description of how this change was tested

    <!--
    I wrote unit tests that cover 90%+ of changes and extensively tested on my physical robot platform in production for 1 week
    I wrote unit tests and tested in simulation for 10 minutes
    Performed linting validation using pre-commit run --all or colcon test
    -->

    It does not add new features. Only code moved between packages with their unit tests. It is tested by already available unit tests.

    Future work that may be required in bullet points

    <!--
    I think there might be some optimizations to be made from STL vector
    I see a lot of redundancy in this package, we might want to add a function bool XYZ() to reduce clutter
    I tested on a differential drive robot, but there might be issues turning near corners on an omnidirectional platform
    -->

    This is the first part of a set of PRs that implements changes in PR https://github.com/ros-navigation/navigation2/pull/6469.

    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: 441 lines (+330 / -111) across 5 files Reviewer: SteveMacenski Review duration: 1807m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.45) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 441 lines diff across 5 files
    0.45
    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.364
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #6905"
    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: 45.3% (MEDIUM) · Higher = larger blast radius
    45.3%
    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: 24.1% · Safe to merge
    24.1%