nav2_collision_monitor: keep polygons when source_timeout is zero (backport #6881) #6895
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.40) × (1 − Review Confidence (0.51)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 290 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 60% · 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.339
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6895"
general
weight: 0.35
SteveMacenski
---
Basic Info
| Info | Please fill out this column |
| ------ | ----------- |
| Ticket(s) this addresses | #6875 |
| Primary OS tested on | Ubuntu 26.04, ROS 2 Lyrical (source build of
main) || Robotic platform tested on | None, unit tests |
| Does this PR contain AI generated software? | Yes, AI was used as an assistant |
| Was this PR description generated by AI software? | Yes, AI was used as an assistant to draft this description |
---
Description of contribution in a few bullet points
A
source_timeoutof 0 turns the source timeout off:Source::sourceValid()skips the check when it is zero.PolygonSource::getSourceData()didn't, and removed every polygon withcurr_time - stamp > source_timeout. With a timeout of 0, that removes any polygon not stamped exactly at the current time, so a polygon source withsource_timeout: 0never gave any data.The stale polygon removal is now skipped when
source_timeoutis 0, like insourceValid(). Behavior with a non-zero timeout is unchanged.Description of documentation updates required from your changes
None
Description of how this change was tested
New test
testPolygonZeroTimeoutinsources_test.cpp: a polygon source withsource_timeout0 gets a polygon stamped 100 ms before the current time, and must return its points.Current
main: fails, 0 points instead of 84.This PR: passes.
All
sources_testtests pass.ament_uncrustifyandament_cpplintare clean on the changed files.---
Future work that may be required in bullet points
None
For Maintainers:
backport-*.<hr>This is an automatic backport of pull request #6881 done by Mergify.