plcopen 0.22.0
载入中...
搜索中...
未找到
geom 目录参考
geom 的目录依赖关系图
core/geom

文件

 
frame.h
 
geometry.h

详细描述

L2 geom

core/geom owns path geometry values. It has no PLCopen FB semantics.

阶梯位置与消费者:L2 阶梯层(阶梯全貌见 core/README.md); L3 plan、L4 exec、L5 axis 直接消费本层,kin 支撑库亦依赖 geom/rt。

当前 L2 范围:

  • line segments;
  • planar circular arcs through three points, with linear z interpolation;
  • cubic Bezier spline segments;
  • quadratic Bezier blend segments constrained by tolerance;
  • fixed-size arc-length tables for inverse mapping checks;
  • explicit errors for zero-length lines, collinear arc points, and zero-radius arcs;
  • rigid frames (frame.h): the Z-rotation RigidFrame, the full RPY RigidTransform (orientation batch), extract_rpy — the single matrix-to-RPY inversion entry with the declared gimbal convention (readback batch, KB-043) — and the geodesic primitives relative_axis_angle / rodrigues / rotation_multiply (Cartesian-interpolation batch, KB-044).

In KB-106 (Math-Max Step 2), CubicBezierSegment and QuadraticBlendSegment upgraded from the historical KB-059 u = s/L approximation to an embedded 65-point cumulative arc-length table built with 64×5-point Gauss-Legendre quadrature and inverted via bounded binary search + 2-step bracketed Newton, with unified arc-length chain-rule derivatives (||q_s|| = 1, q_s · q_ss = 0, and Frenet identity q_s · q_sss = -||q_ss||^2). QuinticBlendSegment retains its KB-075 65-point table untouched for zero replay drift.

RT constraints:

  • no heap allocation;
  • no exceptions;
  • no OS or wall-clock access;
  • sampling is bounded and deterministic.