Skip to content

fix: reject non-finite Smart Swarm offsets in runtime assignment#136

Open
Bartok9 wants to merge 1 commit into
alireza787b:mainfrom
Bartok9:aerial/swarm-offset-finite
Open

fix: reject non-finite Smart Swarm offsets in runtime assignment#136
Bartok9 wants to merge 1 commit into
alireza787b:mainfrom
Bartok9:aerial/swarm-offset-finite

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 20, 2026

Copy link
Copy Markdown

Summary

build_runtime_swarm_assignment now coerces non-finite offset_x/offset_y/offset_z to 0.0 when building the canonical cross-process Smart Swarm assignment.

Why

Non-finite offsets parse via bare float and can poison follower geometry for the duration of the runtime assignment.

Test plan

  • Extended tests/test_swarm_runtime_state.py with inf/nan and finite cases
  • Isolated smoke import of the module

AI-assisted; human-reviewed. No arm/geofence changes.

Coerce inf/nan offset_x/y/z to 0.0 when canonicalizing live assignments
so follower geometry cannot absorb non-finite NED/body offsets.
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.

1 participant