Error while running simulink bicycle kinematic model for mobile robot

3 ビュー (過去 30 日間)
Dominika Krason
Dominika Krason 2022 年 2 月 9 日
回答済み: Anurag 2024 年 2 月 1 日
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?

回答 (1 件)

Anurag
Anurag 2024 年 2 月 1 日
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:

カテゴリ

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

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by