以模型預測控制為專家訓練之柔性動作評價於履帶車路徑追隨與避障
Path Following and Obstacle Avoidance of Tracked Vehicle via Soft Actor-Critic Trained with Model Predictive Control as Expert
摘要
隨著全球勞動力的日益短缺與對經濟作物需求的增加,無人地面載具(unmanned ground vehicle,UGV)之於農業的重要性有著顯著的提升,目前UGV正朝著高機動性、高智能的目標邁進,而能同時精準路徑跟隨與避障扮演了重要的角色,其中為了因應實時控制的需求,控制器的運算效率也成為設計時需要多加考慮的部分。因此本論文首先將自適應勢場(adaptive potential field,APF)加入到非線性模型預測控制(nonlinear model predictive control,NMPC)的損失函數(cost function)中,以達到履帶車不錯的路徑追隨與避障效果。為了更智慧穩定的適應各式不同環境以及節省計算成本,論文進一步引入深度強化學習(deep reinforcement learning,DRL)。DRL是自駕車中被廣為應用的控制方法之一,歸因於它適合與複雜環境互動的特性與輸出動作的可連續性以及穩健性。藉由與環境互動得到的當前狀態再根據所學習的最佳控制策略來給定當前輸出來達成路徑追隨和避障等任務。我們將上述APF的NMPC作為專家系統來訓練DRL的代理(agent),可加快訓練效率且解決了傳統DRL訓練時非常仰賴縝密的獎勵函數的困擾。而DRL中的柔性動作評價(soft actor-critic,SAC)具有熵優化過程,更能處理複雜環境的獨特能力,並確保了更高的穩健性與探索能力,使其能夠更快且更精準地找到最佳策略。因此藉由NMPC與SAC在訓練時的相互配合,使SAC能夠在找到最佳策略,避免NMPC需耗費大量計算的缺點,並更能夠達到即時穩定控制的需求。
研究結果顯示,具APF的NMPC可以在模擬與實際環境中成功執行路徑追隨和避障,並且在模擬環境中平均誤差小於3毫米和能達到100%的避障成功率,在實際場域實驗時,盡管有著地形的不穩定性造成的摩擦力及車身慣性的影響,執行路徑追隨時的平均誤差仍能控制到小於2公分,避障成功率亦能夠超過9成。進一步藉由將此NMPC作為專家系統訓練的SAC代理在模擬環境中平均誤差縮小到2毫米內,在避障部分亦能夠有100%的成功率。此外SAC所需的計算時間僅為NMPC的1/100,大大減少了運算負擔;然而因為其模擬輸出的控制量有震盪的問題,目前尚無法在實際場域達到所設定的目標。
研究結果顯示,具APF的NMPC可以在模擬與實際環境中成功執行路徑追隨和避障,並且在模擬環境中平均誤差小於3毫米和能達到100%的避障成功率,在實際場域實驗時,盡管有著地形的不穩定性造成的摩擦力及車身慣性的影響,執行路徑追隨時的平均誤差仍能控制到小於2公分,避障成功率亦能夠超過9成。進一步藉由將此NMPC作為專家系統訓練的SAC代理在模擬環境中平均誤差縮小到2毫米內,在避障部分亦能夠有100%的成功率。此外SAC所需的計算時間僅為NMPC的1/100,大大減少了運算負擔;然而因為其模擬輸出的控制量有震盪的問題,目前尚無法在實際場域達到所設定的目標。
With the increasing global labor shortage and growing demand for economic crops, the importance of unmanned ground vehicles (UGVs) in agriculture has risen significantly. UGVs are currently advancing toward high mobility and high intelligence, where precise path-following and obstacle avoidance play critical roles. To meet the demands of real-time control, computational efficiency has become an essential consideration in controller design. In this thesis, an adaptive potential field (APF) was first integrated into the cost function of nonlinear model predictive control (NMPC) to achieve effective path following and obstacle avoidance for tracked vehicles. To further enhance adaptability across various environments while reducing computational costs, deep reinforcement learning (DRL) is introduced. DRL is widely applied in autonomous vehicle control due to its suitability for interacting with complex environments, its ability to generate continuous and robust action outputs, and its capability to accomplish tasks such as path-following and obstacle avoidance by deriving optimal control strategies based on current states learned from environmental interactions. Furthermore, the APF-enhanced NMPC serves as an expert system to train the DRL agent, which accelerates training efficiency and addresses the challenge of designing complex reward functions traditionally required by DRL. Among DRL methods, soft actor-critic (SAC) is selected for its entropy-optimization process, which enhances robustness and exploration capabilities, enabling faster and more precise discovery of optimal strategies. By leveraging the complementary strengths of NMPC and SAC during training, SAC overcomes NMPC’s computational limitations and meets the demands for real-time and stable control.
The research results demonstrate that the NMPC with APF has successfully performed path following and obstacle avoidance in both simulated and real-world environments. In simulation, the average path-following error is less than 3 millimeters, with a 100% obstacle avoidance success rate. In real-world experiments, despite the influence of terrain instability, friction, and vehicle inertia, the average path-following error remains under 2 centimeters, and the obstacle avoidance success rate exceeds 90%. Using the designed NMPC as an expert system to train the SAC agent reduces the average error in simulations to within 2 millimeters and achieves a 100% obstacle avoidance success rate. Moreover, SAC requires only 1/100 of the computation time compared to that of the NMPC, significantly reducing the computational burden. However, oscillations in the control outputs were observed, which means the research goal may not be achievable in real-world experiments.
The research results demonstrate that the NMPC with APF has successfully performed path following and obstacle avoidance in both simulated and real-world environments. In simulation, the average path-following error is less than 3 millimeters, with a 100% obstacle avoidance success rate. In real-world experiments, despite the influence of terrain instability, friction, and vehicle inertia, the average path-following error remains under 2 centimeters, and the obstacle avoidance success rate exceeds 90%. Using the designed NMPC as an expert system to train the SAC agent reduces the average error in simulations to within 2 millimeters and achieves a 100% obstacle avoidance success rate. Moreover, SAC requires only 1/100 of the computation time compared to that of the NMPC, significantly reducing the computational burden. However, oscillations in the control outputs were observed, which means the research goal may not be achievable in real-world experiments.
所屬典藏
光電系統研究所引用此條目
Hung, J.-M. (2024). Path Following and Obstacle Avoidance of Tracked Vehicle via Soft Actor-Critic Trained with Model Predictive Control as Expert. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/69946
引用文字依 APA 第 7 版格式自動產生,使用前請再核對。
分享
永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/69946