Error using PurePersuit Block in Simulink Model

조회 수: 3 (최근 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 CenterFile Exchange에서 PCM에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by