Gazebo Customized Plugin: Read the body names of contacts
Mostra commenti meno recenti
Hello, all,.
Hello, all.
I have tried to read the contact information using the customized Gazebo Plugin with the virtual machine (Linux).
I have a trouble with reading the body names of contacts.
The MATLAB function that I used to convert the body names is:
function y = fcn(u)
y = string(char(u'));
end
When I tried to use the MATLAB function to convert it, I got the following error.
Unable to propagate the variable-size mode to the input of
'Gazebo Robot/MATLAB Function'.
This input expects a fixed-size mode. The variable-size mode originates from
'gazeboCosimControl_ys_v3/Gazebo Robot/Bus Selector13'.
Examine the configurations of 'Gazebo Robot/MATLAB Function' for one of
the following scenarios:
1. The block does not enable 'Support variable-size arrays'.
2. The input data 'u' does not enable 'Variable size'.
Component: Simulink | Category: Block error
This is because the body_*_names are 'variable' mode instead of 'fixed' mode.
Here is the bus editor and my simulink model for your review.


Do you have any ideas to solve this issue?
Thank you in advance!
Yun
1 Commento
Yunsik Jung
il 5 Lug 2021
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Gazebo Co-Simulation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

