← 返回 Skills 市场
wu-uk

vehicle-dynamics

作者 wu-uk · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
99
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install adaptive-cruise-control-vehicle-dynamics
功能描述
Use this skill when simulating vehicle motion, calculating safe following distances, time-to-collision, speed/position updates, or implementing vehicle state...
使用说明 (SKILL.md)

Vehicle Dynamics Simulation

Basic Kinematic Model

For vehicle simulations, use discrete-time kinematic equations.

Speed Update:

new_speed = current_speed + acceleration * dt
new_speed = max(0, new_speed)  # Speed cannot be negative

Position Update:

new_position = current_position + speed * dt

Distance Between Vehicles:

# When following another vehicle
relative_speed = ego_speed - lead_speed
new_distance = current_distance - relative_speed * dt

Safe Following Distance

The time headway model calculates safe following distance:

def safe_following_distance(speed, time_headway, min_distance):
    """
    Calculate safe distance based on current speed.

    Args:
        speed: Current vehicle speed (m/s)
        time_headway: Time gap to maintain (seconds)
        min_distance: Minimum distance at standstill (meters)
    """
    return speed * time_headway + min_distance

Time-to-Collision (TTC)

TTC estimates time until collision at current velocities:

def time_to_collision(distance, ego_speed, lead_speed):
    """
    Calculate time to collision.

    Returns None if not approaching (ego slower than lead).
    """
    relative_speed = ego_speed - lead_speed

    if relative_speed \x3C= 0:
        return None  # Not approaching

    return distance / relative_speed

Acceleration Limits

Real vehicles have physical constraints:

def clamp_acceleration(accel, max_accel, max_decel):
    """Constrain acceleration to physical limits."""
    return max(max_decel, min(accel, max_accel))

State Machine Pattern

Vehicle control often uses mode-based logic:

def determine_mode(lead_present, ttc, ttc_threshold):
    """
    Determine operating mode based on conditions.

    Returns one of: 'cruise', 'follow', 'emergency'
    """
    if not lead_present:
        return 'cruise'

    if ttc is not None and ttc \x3C ttc_threshold:
        return 'emergency'

    return 'follow'
安全使用建议
This skill is internally consistent and contains only example algorithms for vehicle kinematics, TTC, and a simple state machine. It does not require secrets or install additional software. However: 1) these are example snippets, not a production-grade control system — thoroughly review, test, and validate before using in any safety-critical or real-vehicle context; 2) check units (m/s vs km/h), sensor fusion, noise handling, and edge cases (zero relative speed, measurement errors) when integrating; and 3) consider adding formal verification, rate limiting, and safety checks if you intend to use this in an adaptive cruise or automated-driving stack.
功能分析
Type: OpenClaw Skill Name: adaptive-cruise-control-vehicle-dynamics Version: 0.1.0 The skill bundle contains standard kinematic formulas and logic for simulating vehicle dynamics, such as speed updates, time-to-collision calculations, and cruise control state machines. There are no executable scripts, network calls, or suspicious instructions in SKILL.md or _meta.json.
能力评估
Purpose & Capability
The name and description (vehicle motion, safe following distance, TTC, state machine) match the SKILL.md content: simple kinematic updates, safe-distance, TTC, acceleration clamping, and mode selection. Nothing requested or declared is unrelated to vehicle dynamics.
Instruction Scope
The SKILL.md contains only self-contained Python snippets and explanatory text. It does not instruct the agent to read system files, environment variables, network endpoints, or external services, nor does it direct data exfiltration or scope-creep operations.
Install Mechanism
There is no install spec and no code files to fetch or execute. As an instruction-only skill, nothing will be written to disk or downloaded at install time.
Credentials
The skill declares no required environment variables, credentials, or config paths. That is proportionate for the provided algorithms, which only need runtime numeric inputs.
Persistence & Privilege
always is false and the skill does not request elevated or persistent privileges. It does not modify other skills or system settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install adaptive-cruise-control-vehicle-dynamics
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /adaptive-cruise-control-vehicle-dynamics 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Bulk register from skillsbench tasks.
元数据
Slug adaptive-cruise-control-vehicle-dynamics
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

vehicle-dynamics 是什么?

Use this skill when simulating vehicle motion, calculating safe following distances, time-to-collision, speed/position updates, or implementing vehicle state... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 99 次。

如何安装 vehicle-dynamics?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install adaptive-cruise-control-vehicle-dynamics」即可一键安装,无需额外配置。

vehicle-dynamics 是免费的吗?

是的,vehicle-dynamics 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

vehicle-dynamics 支持哪些平台?

vehicle-dynamics 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 vehicle-dynamics?

由 wu-uk(@wu-uk)开发并维护,当前版本 v0.1.0。

💬 留言讨论