← 返回 Skills 市场
wangyendt

Pywayne Calibration Magnetometer Calibration

作者 wangyendt · GitHub ↗ · v0.1.0
cross-platform ✓ 安全检测通过
511
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install magnetometer-calibration
功能描述
Sensor calibration toolkit with magnetometer calibration using close-form method. Use when calibrating IMU sensors (accelerometer, gyroscope, magnetometer) t...
使用说明 (SKILL.md)

Pywayne Calibration

pywayne.calibration.MagnetometerCalibrator provides magnetometer calibration using sensor data (accelerometer, gyroscope, magnetometer).

Quick Start

from pywayne.calibration import MagnetometerCalibrator
import numpy as np

# Sensor data: ts (N,), acc (N,3), gyro (N,3), mag (N,3)
calibrator = MagnetometerCalibrator(method='close_form')
Sm, h = calibrator.process(ts, acc, gyro, mag)

# Sm: Soft-iron matrix (3x3)
# h: Hard-iron offset vector (3,)

Input Data Format

Sensor data must be numpy arrays with matching sample counts:

ts   # (N,)     - Timestamps (seconds)
acc  # (N, 3)   - Accelerometer [ax, ay, az]
gyro # (N, 3)   - Gyroscope [gx, gy, gz]
mag  # (N, 3)   - Magnetometer [mx, my, mz]

Data requirements:

  • Sensor data should cover various orientations for effective calibration
  • Minimum data points required (exact number depends on calibration stability)
  • Arrays must be C-contiguous (auto-converted internally)

Calibration Parameters

process() returns:

Parameter Shape Description
Sm (3, 3) Soft-iron matrix
h (3,) Hard-iron offset vector

Usage in Application

Apply calibration to raw magnetometer readings:

# Calibrated reading
m_calibrated = Sm @ (m_raw - h)

Temporal Calibration

Temporal calibration module exists but is reserved for future expansion. Currently no functionality is implemented.

Important Notes

  • Dependencies: Requires vqf (VQF quaternion filter) and qmt (quaternion math) modules
  • Method: Currently only supports close_form method
  • Orientation: Uses VQF for sensor fusion and orientation estimation during calibration
  • Output: Prints calibration parameters during processing
安全使用建议
This appears coherent and low-risk: it is an instruction-only Python helper that requires numpy plus domain packages (vqf, qmt). Before using, ensure you or the agent run it in a trusted Python environment with those packages from known sources (PyPI/GitHub) and verify compatibility. The SKILL.md provides no install steps, no network I/O, and requests no secrets — treat sensor data as sensitive and run locally. If you plan to let an autonomous agent install packages, review where vqf/qmt would be fetched from and prefer pinned releases or verified package sources.
功能分析
Type: OpenClaw Skill Name: magnetometer-calibration Version: 0.1.0 The skill bundle describes a legitimate sensor calibration toolkit for magnetometers. The `SKILL.md` provides documentation and illustrative Python code snippets for using a `MagnetometerCalibrator` class. There are no signs of malicious intent, such as data exfiltration, unauthorized execution, persistence mechanisms, or prompt injection attempts against the AI agent. The content is purely descriptive and functional, aligning with its stated purpose.
能力评估
Purpose & Capability
The name/description (magnetometer calibration) matches the SKILL.md: example usage, inputs, and expected outputs are all calibration-related. Declared dependencies (vqf and qmt) are relevant to sensor fusion and quaternion math.
Instruction Scope
SKILL.md stays within scope: it describes API usage, expected numpy arrays, and calibration outputs. It does not instruct reading arbitrary system files, accessing network endpoints, or exfiltrating data.
Install Mechanism
There is no install spec (instruction-only). That is low-risk, but the document names Python dependencies (vqf, qmt) without describing how to obtain/install them — users/agents must ensure a suitable Python environment exists.
Credentials
No environment variables, credentials, or config paths are requested. This is proportionate for an offline calibration utility that operates on provided sensor arrays.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request persistent presence or modify other skills; nothing in the SKILL.md asks for elevated or permanent privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install magnetometer-calibration
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /magnetometer-calibration 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of magnetometer calibration skill. - Provides easy-to-use magnetometer calibration using a closed-form method. - Computes soft-iron matrix and hard-iron offset from IMU sensor data. - Requires sensor fusion with VQF for orientation estimation. - Returns calibration parameters for use in correcting magnetometer measurements. - Supports numpy array input and outputs; currently only the close_form method is available. - Includes documentation for input data, calibration usage, and important dependencies.
元数据
Slug magnetometer-calibration
版本 0.1.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Pywayne Calibration Magnetometer Calibration 是什么?

Sensor calibration toolkit with magnetometer calibration using close-form method. Use when calibrating IMU sensors (accelerometer, gyroscope, magnetometer) t... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 511 次。

如何安装 Pywayne Calibration Magnetometer Calibration?

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

Pywayne Calibration Magnetometer Calibration 是免费的吗?

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

Pywayne Calibration Magnetometer Calibration 支持哪些平台?

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

谁开发了 Pywayne Calibration Magnetometer Calibration?

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

💬 留言讨论