Corridor-aware planner: boundary tracking, trap-avoidance, race-line heuristic, tests & Docker#1
Open
Weiores wants to merge 1 commit into
Open
Conversation
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.
Motivation
gap_finderpackage and be verifiable with pure-Python unit tests and a Docker-based test runner.Description
CorridorPlanneringap_finder/gap_finder/planner.pythat sanitizes scans, extracts left/right boundary features with confidence, computes a safe corridor, detects trap openings, applies a race-line bias, and scores candidate angles (clearance + race-term + smoothness) rather than taking a raw max-range index.scripts/gap_finder_base.pyto call the new planner and expose tunable parameters (e.g.track_width_estimate,boundary_confidence_threshold,trap_range_jump_threshold,race_line_bias_strength,steering_smoothing_alpha,speed_reduction_on_low_confidence).f1tenth_ws/src/gap_finder/tests/test_planner.pythat use synthetic LaserScan-like arrays for straight corridor, left curve, trap opening, and missing-boundary scenarios.f1tenth_ws/src/gap_finder/Dockerfileand updateREADME.mdwith exact commands to build/run tests in Docker, and export planner types viagap_finder/gap_finder/__init__.py.Testing
PYTHONPATH=f1tenth_ws/src/gap_finder pytest -q f1tenth_ws/src/gap_finder/testswhich completed successfully:4 passed.docker build -t gap-finder-tests -f f1tenth_ws/src/gap_finder/Dockerfile f1tenth_ws/src/gap_finderbut thedockerCLI is not available in this environment, so the Docker build/run could not be executed here.Codex Task