Skip to main content

TF 树梳理与变换管理:YAML 外参加载/保存、图路径与环检测、变换矩阵计算

Project description

tftree-manager

TF 树梳理与变换管理:从 YAML 目录加载/保存外参与顺序,构建无向图、路径查找、环检测、变换矩阵计算。

安装

pip install tftree-manager

功能特性

  • yaml_dir/extrinsics/*.yamlorder_manifest.yaml 加载/保存外参与顺序
  • 无向图构建、BFS 路径查找、有向环检测
  • 沿路径累积 4x4 变换矩阵、从根节点计算到所有可达节点
  • 更新变换、求逆、重排顺序并写回 YAML
  • 可选 Flask API 服务与命令行入口

快速开始

from tftree_manager import TFTreeManager

manager = TFTreeManager("/path/to/yaml_dir")
manager.load_from_yaml()

# 所有坐标系
frames = manager.get_all_frames()

# 两节点间变换矩阵
T = manager.get_transform("lidar", "camera")

# 从根节点计算到所有节点
transforms = manager.compute_all_transforms_from_root("world")

# 检测环
cycles = manager.detect_cycles()

# 保存
manager.save_to_yaml()

命令行

# 以 YAML 目录为参数,加载并打印树与环信息
tftree-manager /path/to/yaml_dir

# 启动 Flask API 服务(默认 0.0.0.0:5000)
tftree-manager-server

环境变量 TFTREE_DATA_DIR 可指定 API 默认数据目录(默认 ./data)。

依赖

  • Python >= 3.10
  • numpy >= 1.20.0
  • PyYAML >= 5.4.0
  • Flask >= 2.0.0(API 与 server 入口需要)

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

tftree_manager-0.0.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

tftree_manager-0.0.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tftree_manager-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2c61b9382a4aa454c6dbcca69e09e8e53a63060ddecf90ef9dafc446e9f5c2ec
MD5 13ba3c43010af1efc1ec228d4e5f76b8
BLAKE2b-256 4ccceeba4e6c148d4f7c7e693c9e0bee77cdbd611d2c72d41e1bece6d5587ef0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tftree_manager-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for tftree_manager-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3be5a94f6f13dd94051424a7f7de0df47ee7121e244d8b4abadeeeb436a6d766
MD5 be3c26e4f1e5d0b2fb60b8c729eb3ae5
BLAKE2b-256 21f46d332da9d435af742715ad4252ff7ece80b031a68c17f2a109334fd033bd

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