阿凯空间变换库(akai-transform)
纯 Python 空间变换工具库,提供 2D/3D 空间变换、四元数运算、SE(3) 李群/李代数、对数四元数等功能。仅依赖 numpy。
文档
安装
pip install akai-transform
模块总览
| 模块 | 导入方式 | 功能 |
|---|---|---|
tf2d |
from akai_transform import tf2d |
2D 空间变换(3×3 齐次矩阵) |
tf3d |
from akai_transform import tf3d |
3D 空间变换(4×4 齐次矩阵) |
quat |
from akai_transform import quat |
四元数运算 |
se3 |
from akai_transform import se3 |
SE(3) 李群/李代数 |
log_quat |
from akai_transform import log_quat |
对数四元数 |
const |
from akai_transform import const |
常量和枚举 |
约定
- 欧拉角:ZYX 内旋(RPY),
[roll, pitch, yaw]=[绕X, 绕Y, 绕Z] - 角度单位:默认弧度(rad),需要度时通过参数
rpy_unit=DEG指定 - 四元数:
[w, x, y, z]标量在前 - 2D 变换矩阵:3×3 齐次矩阵
- 3D 变换矩阵:4×4 齐次矩阵
- 平移单位:通过
MM(毫米)或M(米)枚举指定
案例列表
完整案例代码位于 example/空间变换基础案例(akai_transform)/ 目录下。
2D空间变换
| 文件 | 说明 |
|---|---|
01_tf2d_基础测试.py |
tf2d 基础测试 |
02_tf2d_小乌龟可视化.py |
小乌龟可视化 |
3D空间变换(基础)
| 文件 | 说明 |
|---|---|
01_tf3d_旋转矩阵与平移矩阵.py |
旋转矩阵与平移矩阵 |
02_tf3d_旋转向量.py |
旋转向量 |
03_tf3d_四元数转换.py |
四元数转换 |
04_tf3d_XYZRPY.py |
XYZRPY 便捷接口 |
05_tf3d_Open3D可视化.py |
Open3D 可视化 |
3D空间变换(进阶)
| 文件 | 说明 |
|---|---|
01_修正罗德里格斯参数(MRP).py |
修正罗德里格斯参数 |
02_四元数基础运算.py |
四元数基础运算 |
03_对数四元数转换.py |
对数四元数转换 |
04_多途径点位置姿态插值_Slerp_vs_Squad.py |
Slerp vs Squad 插值对比 |
李群与李代数
| 文件 | 说明 |
|---|---|
01_SE2公式推导(sympy).py |
SE2 公式推导(SymPy) |
01_SE2指数映射与对数映射.py |
SE2 指数/对数映射 |
02_SE3指数映射与对数映射.py |
SE3 指数/对数映射 |
其他工具脚本/ |
三角函数可视化等辅助脚本 |
作者
阿凯爱玩机器人
扫码添加微信,一起交流机器人技术:
许可证
MIT License
Metadata
Release files for akai-transform 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| akai_transform-1.0.0.tar.gz | 59.5 kB | Without provenance | Details for akai_transform-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| akai_transform-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for akai_transform-1.0.0-py3-none-any.whl |
Total release size: 79.3 kB
Release files / akai_transform-1.0.0.tar.gz
| Download URL | akai_transform-1.0.0.tar.gz |
|---|---|
| Size | 59.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1a1a141789751db95a2f274983672f2d01c86f39a2371cc84c9ff4549b622ff
|
|
BLAKE2b-256 checksum How to use checksums |
5ecb739861c7e4716fa5ff2da56862db555f86eabe11dbd2420419086e13e1aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / akai_transform-1.0.0-py3-none-any.whl
| Download URL | akai_transform-1.0.0-py3-none-any.whl |
|---|---|
| Size | 19.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d43e5d28c003c54680dedcfaf1f8c311c57bf61033fc2f77d4e34f1983ed04a1
|
|
BLAKE2b-256 checksum How to use checksums |
c4f859c5cd15419d12c99241641e14933437799e3a026304069b37d18a30ae47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for akai-transform 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.