Skip to content

fix(sim): require positive finite --step_sec for gz_step#157

Closed
Bartok9 wants to merge 1 commit into
JacopoPan:mainfrom
Bartok9:fix/gz-step-require-sec
Closed

fix(sim): require positive finite --step_sec for gz_step#157
Bartok9 wants to merge 1 commit into
JacopoPan:mainfrom
Bartok9:fix/gz-step-require-sec

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Require positive finite `--step_sec` and refuse unknown `AUTOPILOT` before Gazebo WorldControl multi-step.

Motivation

Missing or non-finite step lengths and unknown autopilot strings currently fall through to int conversion / unbounded multi_step. Fail closed with a clear CLI error before touching the sim.

Verification

  • `python3 -m py_compile simulation/simulation_resources/scripts/gz_step.py`

  • Manual review of argparse guard path (no Gazebo on Mac host)

  • 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

Refuse missing/non-finite/non-positive step lengths and unknown
AUTOPILOT values before calling Gazebo WorldControl.

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