{"id":51048352,"url":"https://github.com/chriyocc/path-planning-simulator","last_synced_at":"2026-06-22T15:30:24.853Z","repository":{"id":343046794,"uuid":"1176077800","full_name":"chriyocc/path-planning-simulator","owner":"chriyocc","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-06T16:05:01.000Z","size":17510,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-06T18:10:49.493Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chriyocc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-08T15:34:16.000Z","updated_at":"2026-04-06T16:05:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/chriyocc/path-planning-simulator","commit_stats":null,"previous_names":["chriyocc/path-planning-simulator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chriyocc/path-planning-simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriyocc%2Fpath-planning-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriyocc%2Fpath-planning-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriyocc%2Fpath-planning-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriyocc%2Fpath-planning-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chriyocc","download_url":"https://codeload.github.com/chriyocc/path-planning-simulator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chriyocc%2Fpath-planning-simulator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34655701,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-22T15:30:24.132Z","updated_at":"2026-06-22T15:30:24.848Z","avatar_url":"https://github.com/chriyocc.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RoboSurvivor 2026 Path Planning Simulator\n\nBrowser-based TypeScript simulator for comparing routing policies, visualizing traces, and exporting the two firmware-facing artifacts that are actually used downstream.\n\n## What the app does\n\n- Simulates one RoboSurvivor round on a graph-based map with layout-id-first selection and optional seed-based reproduction.\n- Compares five policies:\n  - `Baseline_SingleCarry`\n  - `BusRoute_Parametric`\n  - `ValueAware_Deadline`\n  - `AdaptiveSafe`\n  - `Optimal_Omniscient`\n- Animates the robot trace on the canvas map.\n- Lets you edit node geometry and line types in the browser.\n- Exports:\n  - `route_table.json`\n  - `policy_rules.json`\n\n## Artifact status\n\n- `route_table.json` is necessary if you want the selected run converted into a node-by-node motion table for firmware.\n- `policy_rules.json` is necessary if you want compact guard/action rules alongside the route output.\n- `fsm_contract.md` was not required by the app runtime, not needed by the simulator UI, and not part of the practical export path, so it has been removed from the generated artifacts.\n\n## UI highlights\n\n- Each major section includes an `Info` button with detailed explanations.\n- The selected policy now shows a plain-language explanation and its decision flow.\n- Trace playback supports pause/resume.\n- Batch mode can compare policies over seed sampling or an exact sweep of all 576 legal layouts.\n\n## Run locally\n\n```bash\nnpm install\nnpm run dev\n```\n\nOpen the local Vite URL in your browser.\n\n## Test\n\n```bash\nnpm test\n```\n\n## Build\n\n```bash\nnpm run build\n```\n\n## Generate artifacts\n\n```bash\nnpm run generate:artifacts\n```\n\nGenerated files are written to [`artifacts/`](/Users/yoyojun/Documents/GitHub/path-planning-simulator/artifacts).\n\n## Generate STM32 C tables\n\n```bash\nnpm run generate:stm32\n```\n\nGenerated files are written to [`generated/stm32/`](/Users/yoyojun/Documents/GitHub/path-planning-simulator/generated/stm32), including:\n\n- normal omniscient export:\n  `generated_plan_table.c/.h`\n- true-LiFo constrained export:\n  `generated_plan_table_lifo.c/.h`\n- shared layout and route tables:\n  `generated_layouts.*`\n  `generated_routes.*`\n\n## Project structure\n\n- [`src/main.ts`](/Users/yoyojun/Documents/GitHub/path-planning-simulator/src/main.ts): browser UI, playback, exports, and map editor wiring.\n- [`src/policies.ts`](/Users/yoyojun/Documents/GitHub/path-planning-simulator/src/policies.ts): policy decision logic.\n- [`src/simulator.ts`](/Users/yoyojun/Documents/GitHub/path-planning-simulator/src/simulator.ts): round execution and legality checks.\n- [`src/firmware.ts`](/Users/yoyojun/Documents/GitHub/path-planning-simulator/src/firmware.ts): firmware-facing export data.\n- [`docs/rules_matrix.md`](/Users/yoyojun/Documents/GitHub/path-planning-simulator/docs/rules_matrix.md): sign-off checklist for rules and policy assumptions.\n\n## Notes\n\n- Use `layout_id` on the main page when you want to discuss or reproduce one exact legal field arrangement.\n- Use the advanced `seed` field when you want to map a seeded random case back to a layout ID.\n- Use `Exact layout sweep` batch mode for the strongest uniform benchmark across all 576 legal layouts.\n- Geometry edits change edge distances, so route timing and heuristic choices can shift after map edits.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchriyocc%2Fpath-planning-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchriyocc%2Fpath-planning-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchriyocc%2Fpath-planning-simulator/lists"}