← Back to Skills Marketplace
579
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install ahrs-tools
Description
Provides quaternion decomposition into Euler angles and roll/pitch compensation utilities for AHRS orientation handling with pywayne.ahrs.tools.
README (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 operationsqmt- OpenCV's quaternion module for conversions
Notes
- Decomposition returns both angles (in radians) and heading/inclination
angle_allis computed using 2*arccos/abs(quaternion_z)angle_headingusesarctan2(np.abs(quaternion_xy))angle_inclinationuses2*arcsin(np.abs(quaternion_xy))- Roll/pitch compensation sets pitch and roll of q_comp to zero by using inverse rotation
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install ahrs-tools - After installation, invoke the skill by name or use
/ahrs-tools - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is Pywayne Ahrs Tools?
Provides quaternion decomposition into Euler angles and roll/pitch compensation utilities for AHRS orientation handling with pywayne.ahrs.tools. It is an AI Agent Skill for Claude Code / OpenClaw, with 579 downloads so far.
How do I install Pywayne Ahrs Tools?
Run "/install ahrs-tools" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Pywayne Ahrs Tools free?
Yes, Pywayne Ahrs Tools is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Pywayne Ahrs Tools support?
Pywayne Ahrs Tools is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Pywayne Ahrs Tools?
It is built and maintained by wangyendt (@wangyendt); the current version is v0.1.0.
More Skills