R-1: Follow the coasted LOST target briefly while it's still moving#148
Merged
Conversation
Publish the locked target's coasted LOST track (instead of filtering it out) and let _drive_ptz_auto chase it while |coast velocity| >= _COAST_FOLLOW_MIN_V (1.0 px/frame). The tracker's velocity decay makes this self-limiting: a mover is followed for ~1s of coast then falls back to hold->coast->search; a stationary loss (v~=0) is never followed, matching today's behavior. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reopens #143 (auto-closed when its stacked base merged as #142); identical change, rebased onto main — now just the R-1 commit.
Summary
Worker-side half of predictive tracking (tracker-side coast merged in #142):
_maybe_trackpublishes the locked target's LOST track (coasted bbox + decayed velocity); all other LOST tracks stay filtered._drive_ptz_autofollows a lost target iffhypot(vx, vy) >= 1.0 px/frame(_COAST_FOLLOW_MIN_V, module constant). Velocity decay makes it self-limiting: a mover is followed ≲1 s through occlusion then falls back to hold→coast→search; a stationary occluded subject is never followed.Evidence
🤖 Generated with Claude Code