Skip to content

added CSV logging, static timed plan (30 seconds), analysis script for logged results #1

Open
aatirFound42 wants to merge 21 commits into
zennozenith:mainfrom
aatirFound42:main
Open

added CSV logging, static timed plan (30 seconds), analysis script for logged results #1
aatirFound42 wants to merge 21 commits into
zennozenith:mainfrom
aatirFound42:main

Conversation

@aatirFound42
Copy link
Copy Markdown

What’s new

  1. CsvLogger — lightweight, zero-dependency CSV writer (Assets/_Scripts/SignalTimingAlgo/CsvLogger.cs).
  2. IntersectionDataCalculator enhancements
    • Added IntersectionData struct
    • Added GetData() and CalculateAverageWaitTime()
    • Unique intersectionId field
  3. TrafficSignalMlAgent integration
    • Episode, reward-step, and interval logging
    • Helper methods for avg-wait-time & throughput
  4. README – “How to run”, project structure, training instructions.
  5. Namespace clean-up and minor bug-fixes (VehicleEntered logic, stray code line removal).

Motivation

Reliable post-simulation analytics are essential for comparing PPO-driven signals with static timing.
This PR adds a portable logging pipeline that dumps queue length, wait time, throughput etc. to CSV so the data can be graphed in Python / Excel. It also patches a few blockers discovered while integrating the logger.

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