Acc simulation workflow

From XuShuwenn/RedAct · View interactive version

Acc simulation workflow is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Design, simulate, and verify an adaptive cruise control (ACC) system with PID loops, safe mode switching, correct gap dynamics, and reproducible CSV/YAML I/O.

How to use this skill

Skill file

Adaptive Cruise Control (ACC) Simulation Workflow

This skill provides a reusable blueprint to implement and validate an ACC system driven by recorded lead-vehicle data. It emphasizes modular PID control, robust mode switching (cruise/follow/emergency), physically consistent gap dynamics, strict I/O contracts, and metric-based verification.

When to Use

Activate this skill when you need to:

Core Workflow

  1. Input and Configuration Inspection
  1. PID Controller Module
  1. ACC Mode Logic
  1. Physically Consistent Simulation Loop
  1. Gains Management and Tuning
  1. Metrics and Reporting

Verification

Use these checks before finalizing:

Common Pitfalls and Recovery

Optional Script Usage

A helper script scripts/acc_metrics.py is included to compute common ACC metrics from the simulation log. It supports configurable set speed, time headway, minimum gap, steady-state window, and thresholds.

Example:

It prints rise time, overshoot, steady-state errors, minimum distance, and optional pass/fail checks when thresholds are provided.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.