← 返回 Skills 市场
wangyendt

Pywayne Ahrs Tools

作者 wangyendt · GitHub ↗ · v0.1.0
cross-platform ✓ 安全检测通过
579
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ahrs-tools
功能描述
Provides quaternion decomposition into Euler angles and roll/pitch compensation utilities for AHRS orientation handling with pywayne.ahrs.tools.
使用说明 (SKILL.md)

Pywayne AHRS Tools

This module provides quaternion-based AHRS (Attitude and Heading Reference System) utilities.

Quick Start

from pywayne.ahrs.tools import quaternion_decompose, quaternion_roll_pitch_compensate
import numpy as np

# Quaternion decomposition
q = np.array([0.70710678, 0, 0, 0.707962])  # w, x, y, z
angle_all, angle_heading, angle_inclination = quaternion_decompose(q)

# Roll/pitch compensation
q_comp = quaternion_roll_pitch_compensate(q)

Quaternion Decomposition

from pywayne.ahrs.tools import quaternion_decompose
import numpy as np

# Input quaternion (w, x, y, z)
q = np.array([w, x, y, z])

# Decompose into angles
angle_all, angle_heading, angle_inclination = quaternion_decompose(q)

# angle_all: Rotation angles around all axes (vertical + horizontal)
# angle_heading: Angle around vertical axis (inclination)
# angle_inclination: Angle around horizontal axis (bank)

Roll/Pitch Compensation

from pywayne.ahrs.tools import quaternion_roll_pitch_compensate
import numpy as np

# Input quaternion (w, x, y, z)
q = np.array([0.989893, -0.099295, 0.024504, -0.098242])

# Compensate pitch and roll to zero
q_comp = quaternion_roll_pitch_compensate(q)

Requirements

  • numpy - Array operations
  • qmt - OpenCV's quaternion module for conversions

Notes

  • Decomposition returns both angles (in radians) and heading/inclination
  • angle_all is computed using 2*arccos/abs(quaternion_z)
  • angle_heading uses arctan2(np.abs(quaternion_xy))
  • angle_inclination uses 2*arcsin(np.abs(quaternion_xy))
  • Roll/pitch compensation sets pitch and roll of q_comp to zero by using inverse rotation
安全使用建议
This is an instruction-only helper that looks coherent and low-risk: it only shows Python examples for quaternion decomposition and compensation, and doesn't ask for secrets or system access. Before installing/using it, ensure the pywayne package and the dependencies (numpy and the referenced qmt module) are installed from trusted sources and that the functions shown actually exist in your installed pywayne version. Because there is no source URL or homepage, verify provenance of the pywayne/qmt packages you use if you rely on this in production or run agents with sensitive data.
功能分析
Type: OpenClaw Skill Name: ahrs-tools Version: 0.1.0 The skill bundle contains standard metadata and a `SKILL.md` file that describes a utility for quaternion decomposition and roll/pitch compensation. The `SKILL.md` provides clear usage examples and lists common scientific dependencies (`numpy`, `qmt`). There is no evidence of prompt injection attempts, malicious code, data exfiltration, or any other harmful behavior in the provided content.
能力评估
Purpose & Capability
The name/description match the SKILL.md: it documents quaternion decomposition and roll/pitch compensation using pywayne.ahrs.tools. The declared requirements (numpy, qmt) are consistent with numeric/quaternion operations. The skill does not request unrelated capabilities or credentials.
Instruction Scope
SKILL.md contains only local Python usage examples and formulas; it does not instruct the agent to read unrelated files, access environment variables, or transmit data to external endpoints. It stays within the stated domain of AHRS quaternion utilities.
Install Mechanism
No install spec (instruction-only). This is low-risk, but the skill assumes the pywayne package and dependencies (numpy, qmt) are already available in the runtime environment — the skill will not install them or provide provenance for those packages.
Credentials
The skill declares no required environment variables, credentials, or config paths. Nothing requests elevated access or unrelated secrets.
Persistence & Privilege
always is false and model invocation is not disabled (default). The skill does not request persistent/system-wide changes or elevated privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ahrs-tools
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ahrs-tools 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of pywayne-ahrs-tools. - Provides quaternion decomposition utility to extract rotation, heading, and inclination angles. - Includes roll/pitch compensation function to adjust orientation quaternions to zero pitch and roll. - Compatible with numpy arrays and uses the qmt library for quaternion operations. - Designed for use with the pywayne.ahrs.tools module.
元数据
Slug ahrs-tools
版本 0.1.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Pywayne Ahrs Tools 是什么?

Provides quaternion decomposition into Euler angles and roll/pitch compensation utilities for AHRS orientation handling with pywayne.ahrs.tools. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 579 次。

如何安装 Pywayne Ahrs Tools?

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

Pywayne Ahrs Tools 是免费的吗?

是的,Pywayne Ahrs Tools 完全免费(开源免费),可自由下载、安装和使用。

Pywayne Ahrs Tools 支持哪些平台?

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

谁开发了 Pywayne Ahrs Tools?

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

💬 留言讨论