Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Immeidately mark dependencies as deprecated when the target plan was cleared #115

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

mxgrey
Copy link
Contributor

@mxgrey mxgrey commented Mar 7, 2025

This should resolve the issue report here where a robot waits for an excessive amount of time on a traffic dependency that has already moved out of the way.

The bug occurs when Robot A needs to wait at some point for Robot B to move out of the way, but Robot B has already completely finished its route before Robot A reaches the waiting point.

This PR detects whether Robot B has already finished its route while creating the dependency subscription, and immediately deprecates the dependency if true. If the robot has not finished its route at the time the dependency subscription is made, then there are other mechanisms that will detect the change and alert the waiting robot.

@mxgrey mxgrey requested a review from xiyuoh March 7, 2025 10:32
Copy link
Member

@xiyuoh xiyuoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! After running the scenario multiple times, the bug (which was previously consistently reproducible) no longer happens with this fix.

@mxgrey mxgrey merged commit 5b88f75 into main Mar 10, 2025
9 checks passed
@mxgrey mxgrey deleted the fix_dependency_on_cleared_plans branch March 10, 2025 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants