Skip to content

fix(aircraft): guard short argv in cancellable action client#159

Closed
Bartok9 wants to merge 1 commit into
JacopoPan:mainfrom
Bartok9:fix/cancellable-action-argv
Closed

fix(aircraft): guard short argv in cancellable action client#159
Bartok9 wants to merge 1 commit into
JacopoPan:mainfrom
Bartok9:fix/cancellable-action-argv

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Bail out when the parsed ros2 action command has fewer than 6 tokens before indexing name/type/goal.

Motivation

Short argv currently raises IndexError on `parts[3:6]`. Fail with a usage message instead of a traceback.

Verification

  • `python3 -m py_compile aircraft/aircraft_resources/patches/cancellable_action.py`

  • Did NOT change: sim_run/sim_build/deploy_* env validation (maintainer check_env_vars), geofence/arm paths

Notes

  • One logical change; minimal additive diff
  • Human-authored and reviewed; AI-assisted drafting only where noted in campaign process
  • DCO signed-off

Agent-Owner: sera · Platform: hermes · Claim-TTL: 24h

Avoid IndexError when the quoted ros2 action send_goal command
has fewer than 6 tokens.

Signed-off-by: Daniel Pike <daniel@team-of-light.org>
@JacopoPan JacopoPan closed this Jul 23, 2026
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