Key changes vs upstream tawnkramer/sdsandbox: - Car.cs: per-wheel OverlapSphere barrier detection, CCD mode - TcpCarHandler.cs: regen_road with RoadBuilder+PathManager fallback, set_ai_text overlay, BrakeOnUpdate support - PathManager.cs: self-intersection fix with XZ segment retry loop - RoadBuilder.cs: BoxCollider per segment, showBarrierMeshes flag - MapOverlay.cs: minimap refresh on road node position change Unity version: 6000.4.4f1 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| Packages | ||
| ProjectSettings | ||
| Scripts | ||
| .gitattributes | ||
| .gitignore | ||
| README.md | ||
README.md
sdsandbox-rl-scripts
Modified C# scripts for the sdsandbox Unity simulator, used with the donkeycar-rl-autoresearch project.
What's here
Scripts/— all C# scripts fromsdsim/Assets/Scripts/, including our RL training modificationsProjectSettings/— Unity project settingsPackages/— Unity package manifest
Key modifications (vs upstream tawnkramer/sdsandbox)
Car.cs— per-wheel OverlapSphere barrier collision detection; CCD modeTcpCarHandler.cs—regen_roadmessage support with direct RoadBuilder+PathManager fallback when no TrainingManager present;set_ai_textoverlay messagePathManager.cs— self-intersection fix: retry loop with XZ segment-segment math (up to 20 retries)RoadBuilder.cs— BoxCollider per segment with overlap;showBarrierMeshesflagMapOverlay.cs— minimap refresh on road node position change (not just count)
Setup on a new machine
-
Clone the upstream sdsandbox (provides all binary assets Unity needs):
git clone https://github.com/tawnkramer/sdsandbox -
Clone this repo:
git clone git@paje.ca:paulh/sdsandbox-rl-scripts.git -
Overlay our scripts into the sdsandbox project:
cp -r sdsandbox-rl-scripts/Scripts/* sdsandbox/sdsim/Assets/Scripts/ cp -r sdsandbox-rl-scripts/ProjectSettings/* sdsandbox/sdsim/ProjectSettings/ cp -r sdsandbox-rl-scripts/Packages/* sdsandbox/sdsim/Packages/ -
Open
sdsandbox/sdsimin Unity 6000.4.4f1. Unity will reimport assets on first open. -
Build: Edit → Project Settings → Player Builder → WinBuild (or use the batch build command from the donkeycar-rl-autoresearch SESSION_HANDOFF.md).
Unity version
Unity 6000.4.4f1 — other versions are not tested and may have incompatible APIs.