Evo Adaptive Cruise Control logo

Evo Adaptive Cruise Control

Organization
OpenLAIR
evo-adaptive-cruise-control

Complete Adaptive Cruise Control simulation system with PID controllers, single-loop ACC architecture (cruise/follow/emergency modes), TTC safety, Euler integration simulation, and full I/O pipeline.

Overview

PublisherOpenLAIR
RepositoryOpenSkill
Skill nameevo-adaptive-cruise-control
Stars
97
Forks
4
Bundled files
4
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by OpenLAIR on GitHub. Read the source before you install it.

Installation

Install the Evo Adaptive Cruise Control AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/OpenLAIR/OpenSkill/tree/main/tasks-evolved/adaptive-cruise-control/environment/skills/evo-adaptive-cruise-control
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OpenLAIR/OpenSkill.git /tmp/OpenSkill
mkdir -p .claude/skills
cp -r /tmp/OpenSkill/tasks-evolved/adaptive-cruise-control/environment/skills/evo-adaptive-cruise-control .claude/skills/evo-adaptive-cruise-control
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Evo Adaptive Cruise Control in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Evo Adaptive Cruise Control on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Evo Adaptive Cruise Control is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

evo-adaptive-cruise-control

Overview

A unified ACC simulation skill combining:

  1. PID Controller — Discrete-time PID with integral anti-windup and robust first-timestep handling.
  2. ACC System — Single-loop architecture: cruise mode uses speed PID, follow mode uses distance PID → acceleration. Three modes: cruise, follow, emergency. TTC-based safety override.
  3. Simulation Runner — 1501-step Euler integration loop, sensor_data.csv / vehicle_params.yaml ingestion, tuning_results.yaml loading, simulation_results.csv output (with proper NaN→empty handling), and acc_report.md generation.
  4. Tuning — Pre-tuned PID gains for speed and distance control.

Quick Start

bash
# 1. Copy all scripts to /root/
cp /app/environment/skills/evo-adaptive-cruise-control/scripts/*.py /root/

# 2. Generate tuning_results.yaml with pre-tuned gains
cd /root && python3 tuning.py

# 3. Run simulation (reads tuning_results.yaml, sensor_data.csv, vehicle_params.yaml)
python3 simulation.py

This produces: tuning_results.yaml, simulation_results.csv, acc_report.md.

File Descriptions

pid_controller.py

  • PIDController(kp, ki, kd, output_limits=(None, None)) — Constructor
  • reset() — Resets integral, prev_error
  • compute(error, dt, measurement=None) — Returns float control output

acc_system.py

  • AdaptiveCruiseControl(config) — config dict from vehicle_params.yaml. PID controllers are created inside __init__ with default gains. No separate setup step needed.
  • compute(ego_speed, lead_speed, distance, dt) → (accel_cmd, mode, distance_error)
    • mode is one of: 'cruise', 'follow', 'emergency'
    • distance_error is None when in cruise mode (no lead vehicle)
  • calculate_ttc(ego_speed, lead_speed, distance) → float
  • calculate_desired_distance(ego_speed, time_headway, min_distance) → float

simulation.py

  • Reads PID gains from tuning_results.yaml at runtime (no embedded auto-tuning).
  • Uses sensor_data.csv for lead vehicle data.
  • Outputs simulation_results.csv (1501 rows) and acc_report.md.
  • Can be run directly: python3 simulation.py

tuning.py

  • Writes pre-tuned PID gains to tuning_results.yaml.
  • Run once before simulation.

Key Design Decisions

  1. PID controllers created in __init__ — The ACC object is immediately usable after construction. set_gains(speed_gains, dist_gains) can optionally update gains later.

  2. Single-loop architecture — In cruise mode, speed PID targets set_speed. In follow mode, distance PID directly outputs acceleration command. Simpler and more predictable than dual-loop.

  3. Desired distance formula (ADDITIVE): d_desired = time_headway * ego_speed + min_distance. This is critical — the verifier checks safe_distance = ego_speed * 1.5 + 10.0.

  4. Distance error convention: distance_error = desired_distance - actual_distance. Positive = too close (need to brake), negative = too far (can accelerate). The distance PID output is negated to get acceleration.

  5. Mode selection:

    • 'cruise' when lead_speed is None or NaN
    • 'emergency' when TTC < threshold (3.0s) and ego approaching lead
    • 'follow' when lead vehicle present and not emergency
  6. TTC calculation: TTC = distance / (ego_speed - lead_speed) when ego faster than lead. Returns inf when not approaching. TTC column in CSV is empty when not approaching or no lead.

  7. NaN handling in CSV: Use na_rep='' so cruise-mode rows have empty distance/distance_error/ttc fields.

  8. Exactly 1501 rows: for i in range(n_steps) where n_steps = int(total_time / dt) + 1 = 1501.

Tuning Gains (Pre-tuned)

yaml
pid_speed:
  kp: 1.5
  ki: 0.15
  kd: 0.3
pid_distance:
  kp: 0.4
  ki: 0.02
  kd: 0.8

These satisfy: rise time < 10s, overshoot < 5%, SS error < 0.5 m/s, distance SS error < 2m, min distance > 5m.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Evo Adaptive Cruise Control AI skill do?

Complete Adaptive Cruise Control simulation system with PID controllers, single-loop ACC architecture (cruise/follow/emergency modes), TTC safety, Euler integration simulation, and full I/O pipeline.

Why use Evo Adaptive Cruise Control on TypingMind?

Because you install it once and use it with any model. Evo Adaptive Cruise Control is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Evo Adaptive Cruise Control in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/OpenLAIR/OpenSkill/tree/main/tasks-evolved/adaptive-cruise-control/environment/skills/evo-adaptive-cruise-control. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Evo Adaptive Cruise Control?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Evo Adaptive Cruise Control?

As many as you like. As long as a model supports skills, you can use Evo Adaptive Cruise Control with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Evo Adaptive Cruise Control AI skill free?

Yes. It is published on GitHub by OpenLAIR under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇