feat: 升级算法包 delivery_v1.1 → v1.2,新增任务级 CAD 与测距面板
- 算法包替换为 delivery_v1.2(coupler_panel 新增 autotune/layer_select,underframe_deflection 新增 single_beam 管线),删除 delivery_v1.1 - manifests/adapters 的 PYTHONPATH 与版本说明同步更新到 v1.2 - 新增任务级 CAD 文件支持(task_cad_files 表、上传/读取路由、TaskManager 全选与加载显示) - 新增 train-measurement 自定义前端面板(YAML 编辑器 + 可视化 ROI 配置 + 3D 取点) - PointCloudViewer 支持 PLY 叠加层渲染与 ROI 拾取 - Dockerfile 改用 Miniforge 安装 pythonocc-core,修复 libgomp/libstdc++ 依赖
This commit is contained in:
67
alg/delivery_v1.2/underframe_deflection/__init__.py
Normal file
67
alg/delivery_v1.2/underframe_deflection/__init__.py
Normal file
@@ -0,0 +1,67 @@
|
||||
"""Point-cloud-only underframe beam deflection measurement.
|
||||
|
||||
Public API (stable across patch releases — see USAGE.md):
|
||||
|
||||
- :func:`compute_deflection` — pure, in-memory computation; returns a
|
||||
:class:`DeflectionResult`.
|
||||
- :func:`load_point_cloud` — read a PLY/XYZ/CSV file into a numpy array.
|
||||
- :class:`DeflectionResult`, :class:`SideDeflection`, :class:`DeflectionCurves`
|
||||
— the result schema.
|
||||
- :mod:`underframe_deflection.artifacts` — optional file writers
|
||||
(JSON / CSV / PNG plots / coloured PLY overlays).
|
||||
- :mod:`underframe_deflection.exceptions` — exception hierarchy.
|
||||
- :func:`run_measurement_pipeline` — convenience wrapper that does
|
||||
read + compute + write-all in one call.
|
||||
"""
|
||||
|
||||
from ._version import ALGORITHM_VERSION, SCHEMA_VERSION, __version__
|
||||
from .api import (
|
||||
DeflectionCurves,
|
||||
DeflectionResult,
|
||||
ProgressCallback,
|
||||
SideDeflection,
|
||||
compute_deflection,
|
||||
load_point_cloud,
|
||||
)
|
||||
from .cad_io import read_cad_reference
|
||||
from .exceptions import (
|
||||
DeflectionError,
|
||||
FrameInferenceError,
|
||||
InsufficientPointsError,
|
||||
InvalidPointCloudError,
|
||||
UnsupportedFormatError,
|
||||
)
|
||||
from .pipeline import run_measurement_pipeline
|
||||
from .preprocess import bilateral_filter_points
|
||||
from .registration import RegistrationResult, register_to_cad
|
||||
from .roi import apply_passthrough, load_roi_aabb
|
||||
from .single_beam import SingleBeamResult, measure_single_beam
|
||||
from .single_beam_pipeline import run_both_beams, run_single_beam_pipeline
|
||||
|
||||
__all__ = [
|
||||
"__version__",
|
||||
"ALGORITHM_VERSION",
|
||||
"SCHEMA_VERSION",
|
||||
"compute_deflection",
|
||||
"load_point_cloud",
|
||||
"DeflectionResult",
|
||||
"SideDeflection",
|
||||
"DeflectionCurves",
|
||||
"ProgressCallback",
|
||||
"run_measurement_pipeline",
|
||||
"DeflectionError",
|
||||
"InvalidPointCloudError",
|
||||
"InsufficientPointsError",
|
||||
"FrameInferenceError",
|
||||
"UnsupportedFormatError",
|
||||
"read_cad_reference",
|
||||
"load_roi_aabb",
|
||||
"apply_passthrough",
|
||||
"bilateral_filter_points",
|
||||
"register_to_cad",
|
||||
"RegistrationResult",
|
||||
"measure_single_beam",
|
||||
"SingleBeamResult",
|
||||
"run_single_beam_pipeline",
|
||||
"run_both_beams",
|
||||
]
|
||||
Reference in New Issue
Block a user