Skip to main content

PB 标定矩阵计算器:矩阵/四元数/欧拉角/齐次矩阵转换、组合计算与 PySide6 GUI。

Project description

pb-matrix-calculator

Version: 0.0.1

PB 标定矩阵计算器,提供 Agent 友好的结构化 CLI 和 PySide6 GUI。支持旋转矩阵、四元数、欧拉角、齐次矩阵之间的转换,支持 A/B 矩阵组合计算,并可输出 YAML、JSON、ROS、OpenCV、CloudCompare、PB transforms 等格式。

Install

pip install pb-matrix-calculator

开发环境中可从当前版本目录安装:

pip install -e .

CLI

列出可用输入协议和输出格式:

pb-matrix-calculator list-formats

四元数和平移转换为全部标准格式:

pb-matrix-calculator convert \
  --type quaternion \
  --quaternion 0,0,0,1 \
  --translation 1,2,3 \
  --result all

输出 YAML bundle:

pb-matrix-calculator convert \
  --type quaternion \
  --quaternion 0,0,0,1 \
  --translation 1,2,3 \
  --result yaml_bundle

组合计算 A/B 矩阵:

pb-matrix-calculator compute \
  --a-type quaternion --a-quaternion 0,0,0,1 --a-translation 1,2,3 \
  --b-type quaternion --b-quaternion 0,0,0,1 --b-translation 4,5,6 \
  --result all

GUI

pb-matrix-calculator-gui

默认配置、格式模板和图标随包分发,位于 pb_matrix_calculator/cfgpb_matrix_calculator/icon。运行期生成的 output/、日志和 PB 临时 YAML 目录相对启动命令所在目录创建,不写入包安装目录。

Python Import

from pb_matrix_calculator.cli import load_app_config, render_output
from pb_matrix_calculator.lib.matrix_processor import MatrixProcessor

Dependencies

  • Python >= 3.10
  • numpy
  • PyYAML
  • PySide6
  • pb-calibration >= 0.1.9
  • transform-base >= 0.0.3

Packaging Notes

本版本从 C_project/C08_pb矩阵计算器 迁入 D_pypi/D12.pb_matrix_calculator/V0.0.1。原 C08 目录保留不动,作为历史和应用源码参考。包名使用 pb-matrix-calculator,导入名使用 pb_matrix_calculator

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pb_matrix_calculator-0.0.1.tar.gz (82.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pb_matrix_calculator-0.0.1-py3-none-any.whl (124.3 kB view details)

Uploaded Python 3

File details

Details for the file pb_matrix_calculator-0.0.1.tar.gz.

File metadata

  • Download URL: pb_matrix_calculator-0.0.1.tar.gz
  • Upload date:
  • Size: 82.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for pb_matrix_calculator-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3e408e8b44cc9aef1b4ca69d2e7ec7bf0b70a16c81b608c672e966ad3de74a14
MD5 eb06909f6162b16cedcead3cbd7d2621
BLAKE2b-256 13f3064b2b6ebcadb6e0026d0b93962ed71cc34e264652e335ebddff914389d6

See more details on using hashes here.

File details

Details for the file pb_matrix_calculator-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pb_matrix_calculator-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6190aa3a8f4c70f70612e281666c7968e045627372c8a54925795a93af16a6dc
MD5 192ea53313dcc2879b8b3a5b914c1583
BLAKE2b-256 828e681f10ccf3e53c965a3e0d9e2fac9fae813ef38919b644b3405bc1482330

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page