Error using PurePersuit Block in Simulink Model

2 ビュー (過去 30 日間)
Danus
Danus 2025 年 2 月 17 日
コメント済み: Danus 2025 年 2 月 20 日
Hello there,
I've got a Simulink model where I use the Pure Pursuit (PP) algorithm to control a vehicle's lateral dynamics. When I use this controller with a constant "desired velocity," everything works as expected. When I use an additional PID controller to insert the desired velocity into the PP block, I receive this error:
"Error: An error occurred during simulation and the simulation was terminated
Caused by:
A runtime error occurred in the System object 'nav.slalgs.internal.PurePursuit' in MATLAB System block 'PP_MKS_Controller/Subsystem/Subsystem1/PID Längs PP Quer/Pure Pursuit', while executing the 'stepImpl' method.
Expected DesiredLinearVelocity to be nonnegative.
Error in validatenonnegative.m (line 14):
'ReportedID', getReportedID(funcname, 'expectedNonnegative'), ...
Error in validateattributes.m (line 93)
Error in PurePursuitBase.m (line 125)"
I've checked the velocity signal, which is never < 0, and also tried taking the absolute values of the signal just to see if it works this way. I'm not quite sure where the problem actually lies.
Thanks in advance for your support and kind regards,
Danus
  2 件のコメント
Venkatesh BalaSubburaman
Venkatesh BalaSubburaman 2025 年 2 月 18 日
Hi Danus,
Can you share a simple model that reproduces the error. I am unable to reproduce the issue at my end. Please also mention the MATLAB Release and other details that can help to debug the issue.
Thanks
Danus
Danus 2025 年 2 月 20 日
Hey Venkatesh,
Thanks for the quick reply!
I've shared a simplified version of my model and the necessary workspace file to work with the correct parameters. The error occurs as mentioned. If you switch the desired velocity of the PurePursuit block to a constant (for example, 1 m/s), the functionality works as expected.
I hope you can find out where the problem lies. Many thanks in advance!
Kind regards,
Danus

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangePCM についてさらに検索

製品


リリース

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by