Error using PurePersuit Block in Simulink Model

1 visualizzazione (ultimi 30 giorni)
Danus
Danus il 17 Feb 2025
Commentato: Danus il 20 Feb 2025
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 Commenti
Venkatesh BalaSubburaman
Venkatesh BalaSubburaman il 18 Feb 2025
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 il 20 Feb 2025
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

Accedi per commentare.

Risposte (0)

Prodotti


Release

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by