基于改进深度强化学习的五轴加工刀轴矢量全局规划方法

Global planning method of tool orientation for five-axis machining based on improved deep reinforcement learning

  • 摘要: 针对复杂曲面五轴加工刀轴矢量规划中局部插值方法依赖关键刀轴、图搜索方法计算开销大的问题,提出一种基于改进深度强化学习的刀轴矢量全局规划方法。在各刀触点刀轴可行域离散采样基础上,将刀轴规划建模为马尔可夫决策过程(Markov decision process, MDP),建立状态空间、动作空间及姿态变化约束;以刀轴俯仰角和方向角的单位路径变化率及其二阶差分为光顺性指标,构建奖励函数,并融合双重深度Q网络(double deep Q-network,DDQN)与基于SumTree的优先经验回放机制,形成ST-DDQN求解框架。以含局部障碍约束的自由曲面加工路径为对象开展仿真对比。结果表明,所提方法得到的俯仰角和方向角最大变化率分别为0.052°/mm和0.11°/mm,二阶差分均小于0.01°/mm2;平均规划时间为65.43 s,较四元数插值法和Dijkstra搜索法分别缩短9.5%和57.0%。该方法能够在满足刀轴可行性约束前提下实现复杂曲面五轴加工刀轴轨迹的高效全局规划。

     

    Abstract: To address the problems that local interpolation methods rely heavily on key tool orientations and graph-search methods suffer from high computational cost in global tool-orientation planning for complex-surface five-axis machining, a global planning method based on improved deep reinforcement learning is proposed. Based on the discrete sampling of feasible tool-axis vectors at cutter contact points, the planning process is formulated as a Markov decision process (MDP), where the state space, action space, and orientation-variation constraints are defined. A reward function is constructed using the variation rate per unit path length and the second-order difference of the pitch and azimuth angles. Then, an ST-DDQN framework is developed by integrating double deep Q-network (DDQN) with a SumTree-based prioritized experience replay strategy. Comparative simulations are carried out on a free-form surface machining path with local obstacle constraints. Results show that the maximum variation rates of the pitch and azimuth angles obtained by the proposed method are 0.052°/mm and 0.11°/mm, respectively, and their second-order differences are both below 0.01°/mm2. The average planning time is 65.43 s, which is 9.5% lower than that of quaternion interpolation and 57.0% lower than that of Dijkstra search. The proposed method provides an effective approach for efficient global planning of tool orientations in complex-surface five-axis machining under feasible-domain constraints.

     

/

返回文章
返回