|
plcopen 0.22.0
|

文件 | |
| differential.h | |
| gantry.h | |
| kinematics.h | |
| pose.h | |
| scara.h | |
| serial_chain.h | |
| verify.h | |
| wrist6r.h | |
kin 是阶梯旁支撑库:仅依赖 geom/rt、被 L5 axis 消费,不碰语义层(阶梯全貌 见 core/README.md)。
core/kin owns the B2 kinematics plugin contract and the analytic reference mechanisms (approved matrix: doc/compliance/kinematics-plugin-semantics.md). It has no PLCopen semantics; the group integration lives in L5.
v1 scope (BS3.2-BS3.4):
BS3.5 (wrist6r.h): the spherical-wrist 6R analytic inverse ships in pre-integration form — full 6-DOF poses do not fit the v1 ABI (2/3 translational coordinates), so SphericalWrist6R carries its own Pose6 interface under the same contract discipline (eight-branch enumeration with seed-closest selection, a max-joint-step no-branch-flip gate, wrist/elbow/ shoulder singularity margins, allocation- and exception-free). Verified by 20k-case round-trip fuzz, perturbed-seed recovery, and branch-gate rejections.
Orientation batch (KB-042, approved matrix doc/compliance/orientation-semantics.md): pose.h carries the Pose6 type and the PoseKinematics plugin contract (parallel to the v1 translational ABI, mutually exclusive on a group); SphericalWrist6R implements it, and the L5 group wiring (AxisGroup::set_pose_kinematics) lands RPY pose targets through the workpiece frame and the flange-to-TCP tool transform onto 6 ACS joint targets at submit. In-segment interpolation stays joint-space (declared).
BS3.6: AxisGroup::set_cartesian_velocity_limit — conservative dual-space limiting: at submit the joint-space chord is sampled through the forward solution and the command velocity scales down so the worst sampled Cartesian speed stays under the limit (linear segments, kinematics-configured groups).
H2 (serial_chain.h, KB-089): SerialChain is the deterministic numerical fallback beside the analytic plugins. It models one to eight revolute joints with a fixed-capacity standard-DH or modified-DH table, implements base-to-flange FK, and solves pose IK with a numerical Jacobian, SO(3) log residual, adaptive DLS, hard joint-limit projection, and a fixed 32-iteration cap. Strict inverse/solve write output only after both residual gates pass; solve_best_effort is the explicit opt-in surface for a failed code plus the best point and residuals. A 7-DOF preferred-joint target is applied only inside the converged primary-task gates, at most once, and consumes the same 32-iteration budget. Workspace-outside targets use the observable termination cause (not_converged, singular_region, or limit_infeasible); the inherited seed-step gate remains infeasible. The existing L5 pose seam remains six-axis, so 7-DOF is currently a core/offline capability rather than an AxisGroup claim. Spherical-wrist 6R remains analytic-first.
v1 declared boundaries:
Y7b2b (differential.h, KB-109, approved matrix doc/compliance/cartesian-target-takeover-semantics.md):