Error while running simulink bicycle kinematic model for mobile robot
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, Im trying to get a hang of how the models in Peter Corke's Robotics Toolbox are working especailly the sl_pursuit simulink model. The downloaded version of the model is working, not great bc the controllers aren't tuned but nontheless it is working, but when I try to recreate the model or just ude the bicycle kinematic model from toolbox library there is a dimensiosns error. Outpu for "product" block doesnt match the dimensions of "integrator" block.
Is there any way to get rid of that error? Also, why does it work in his model but straight from the library it doesn't?
0 commentaires
Réponses (1)
Anurag Ojha
le 1 Fév 2024
Hello Dominika,
To resolve “Error in port width and dimension” you can use the reshape block. It changes the dimensionality of the input signal to a dimensionality that you specify, using the Output dimensionality parameter.
For example, you can use the reshape block to change an N-element vector to a 1-by-N or N-by-1 matrix signal.
Adding MATLAB documentation of reshape block for your reference:
0 commentaires
Voir également
Catégories
En savoir plus sur Robotics dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!