Skip to content

Add DBW log analysis and visualization - #22

Open
aduwahi wants to merge 1 commit into
elcano:mainfrom
aduwahi:feature/dbw-log-analyzer
Open

Add DBW log analysis and visualization#22
aduwahi wants to merge 1 commit into
elcano:mainfrom
aduwahi:feature/dbw-log-analyzer

Conversation

@aduwahi

@aduwahi aduwahi commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary
Adds a Python tool for analyzing DBW CSV logs and generating diagonstic visualizations and reports.
Features

  • Parses DBW CSV logs while handling the metadata line before the CSV header.
  • Generates plots for:
    • desired vs. current steering angle
    • mapped steering and throttle/brake inputs
    • desired speed
    • throttle PWM output
    • safety and mode states
  • Generates a summary containing:
    • sample count and log duration
    • maximum desired speed
    • desired and current steering ranges
    • operator E-stop signal values and transitions
    • drive mode and operator mode transitions
  • Generates warnings for:
    • constant measured speed
    • nonzero desired speed while the mapped throttle/brake input is near neutral
    • throttle PWM being active while braking
  • Removes stale generated report files before producing a new report.
  • Adds generated report and local sample-log directories to .gitignore.
    Testing
    Verified with:
    py -3.12 -m py_compile tools\dbw_log_analyzer.py
    py -3.12 -m unittest tests_python.test_dbw_log_analyzer -v
    git diff --check
    All 4 unit tests pass.
    The analyzer was also tested against real DBW CSV logs and successfully generated the expected plot, warning report, and summary.

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