Skip to content

fix(mobile): gate driveto()'s per-step print behind verbose flag#550

Open
petercorke wants to merge 1 commit into
mainfrom
fix/driveto-unconditional-print
Open

fix(mobile): gate driveto()'s per-step print behind verbose flag#550
petercorke wants to merge 1 commit into
mainfrom
fix/driveto-unconditional-print

Conversation

@petercorke

Copy link
Copy Markdown
Owner

Summary

VehicleDriverBase.driveto() prints an unconditional status line on every call — any simulation longer than a couple of steps floods stdout. RandomPath._new_goal() right below it already gates its print behind self._veh.verbose or self._verbose; driveto() just never got the same treatment. Found while building a working EKF/RandomPath example for a docs update.

Test plan

  • Ran a 20s EKF dead-reckoning simulation (Bicycle + RandomPath) — clean output, no per-step spam
  • Full test suite: 653 passed, 13 skipped, no regressions

🤖 Generated with Claude Code

VehicleDriverBase.driveto() printed an unconditional status line on
every call, unlike RandomPath._new_goal() right below it which
correctly gates its print behind self._veh.verbose or self._verbose.
Any simulation of more than a few steps floods stdout -- found while
building a runblock example for docs/source/intro.rst's planned Mobile
Robots section.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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