Skip to content

fixed my error in clearing the targets_reached_count dictionary#85

Merged
energy-in-joles merged 1 commit intomainfrom
motion-planning-test-bug-fix
Jan 13, 2026
Merged

fixed my error in clearing the targets_reached_count dictionary#85
energy-in-joles merged 1 commit intomainfrom
motion-planning-test-bug-fix

Conversation

@energy-in-joles
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings January 13, 2026 16:59
@energy-in-joles energy-in-joles merged commit a96da8a into main Jan 13, 2026
6 checks passed
@energy-in-joles energy-in-joles deleted the motion-planning-test-bug-fix branch January 13, 2026 16:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where the targets_reached_count dictionary was being cleared immediately after being initialized with robot IDs. The dictionary is populated in reset_field() and then _reset_metrics() was incorrectly clearing it, preventing proper tracking of target achievements.

Changes:

  • Removed the erroneous self.targets_reached_count = {} line from _reset_metrics() method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants