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

文件

 
path.h
 
topp.h
 
topp_executor.h
 
topp_jerk.h

详细描述

L3 plan

core/plan owns planning-domain path buffers and conservative planning decisions. 本层是 ADR-0007 规划域的核心层:在规划线程内运行,产出供 RT 域消费的承诺数据;周期路径只 采样已承诺结果(阶梯全貌见 core/README.md)。

当前 L3 范围:

  • fixed-capacity path buffer;
  • monotonic front consumption;
  • bounded look-ahead speed pass over the current buffer;
  • blending decisions that produce a bounded quadratic Bezier curve constrained by tolerance.

本层保持曲线插入策略显式:the caller receives the blend segment and chooses where to splice it into a committed path. The planner does not mutate source buffers in place.

TOPP-RA 路径参数化

  • topp.h:TOPP-RA Layer 1(加速度限制)——对标量路径参数 s 做逐轴速度/ 加速度约束下的时间最优 rest-to-rest 求解(离散化 + 反向可达性 + 正向积分);
  • topp_jerk.h:Layer 2(jerk-aware)——在 Layer 1 之上叠加 jerk 约束, 正向/反向 S 曲线包络取逐点最小后做梯形时间积分;
  • topp_executor.h:TOPP → 离散周期采样的桥(KB-065 + KB-106): 保留标量 Profile1D 兼容入口(plan_topp_profiled*,effective_scalar_limits 采用 17 点最坏切矢包络),并新增曲率感知离散周期执行器 plan_topp_curvature_aware / plan_topp_curvature_aware_jerk、保包络时间 拉伸采样器 sample_topp_cycle、关节全阶采样器 sample_topp_joint_state (含向心加速度项 q_ss * sdot^2)与全周期向心校验 verify_topp_joint_limits。

规划求解器为 planning-domain only(无堆分配定长数组);sample_topp_cycle 与 sample_topp_joint_state 满足周期路径零分配、有界 $O(\log N + N_{\text{grid}})$ 采样约束。