SImulink PurePursuit error; trajectory problem (Version:R2023a)
Show older comments
Hi.
I'm getting an error with the PurePursuit simulink block.
The error is "Excepted waypoints to be an array with number of columns equal to 2"
I also attached a minimally working Simulink file (Version:R2023a).
Thank you
Josh
1 Comment
Walter Roberson
on 14 Oct 2023
This does not appear to be using the Mathworks Robotics System Toolbox; it appears to be using the Peter Corke Robotics Toolbox. Peter Corke's toolbox is well respected for robotics work, but it is a third-party toolbox.
Accepted Answer
More Answers (1)
Aishwarya
on 25 Oct 2023
0 votes
Hi Joshua,
As per my understanding, you are facing error in your Simulink model which points that waypoints are not in correct dimension as required by the ‘Pure Pursuit’ block.
Below are some suggestions that can help resolve the error:
- Ensure that the ‘waypoints’ input to the ‘Pure Pursuit’ block is an n-by-2 array of [x y] pairs, where ‘n’ is number of waypoints.
- The waypoints can be specified as an array in Simulink.
Please refer to below MathWorks documentation for more details on ‘Pure pursuit’ block:
I hope this helps.
Categories
Find more on Modeling in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!