Skip to content

Commit 534436f

Browse files
committed
added documentation
1 parent ec44350 commit 534436f

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Test Safety and Comfort Metrics Documentation
2+
3+
## Files/Scripts
4+
- `testing/test_comfort_metrics.py`
5+
6+
## Purpose
7+
8+
This script analyzes log files and reports vehicle comfort and pedestrian safety with plots. It extracts:
9+
10+
- **Vehicle Data:** Time, acceleration, heading rate from `behavior.json`.
11+
- **Pedestrian Data:** Time and pedestrian distance to car from `behavior.json`.
12+
- **Pure Pursuit Tracker Data (Optional):** Vehicle time, cross-track error, and position (actual vs. desired) from `PurePursuitTrajectoryTracker_debug.csv`.
13+
14+
The script will include 5 plots:
15+
- Vehicle jerk vs. time.
16+
- Vehicle heading acceleration vs. time.
17+
- Vehicle cross-track error vs. time.
18+
- Vehicle actual vs. desired position.
19+
- Pedestrian distance vs. time.
20+
21+
The script also prints key metrics:
22+
- RMS Jerk
23+
- RMS Heading acceleration
24+
- RMS Cross track error
25+
- RMS Position error
26+
- Minimum pedestrian distance to car
27+
28+
## Usage
29+
30+
1. **Check log directory:**
31+
- Ensure your log directory contains `behavior.json` (required).
32+
- Optionally include `PurePursuitTrajectoryTracker_debug.csv` (if missing, some plots are skipped).
33+
34+
2. **Run the script:**
35+
36+
```bash
37+
python test_comfort_metrics.py <log_directory>
38+
```
39+
Replace `<log_directory>` with the path to the folder containing the log files.

0 commit comments

Comments
 (0)