How to extract the data from bus Selector in Simulink
Afficher commentaires plus anciens
Hey,
I am working with Gazebo and MATLAB/Simulink for my work. I am tryIng to get the values of Pose(Position and Orientation) using ROS Subscriber. I am trying to use the bus selector to get the values but getting an error mentioned below and in the attached picture as well. Kindly help me asap please.
Error: "Cannot propagate bus signal from 'Output Port 1' of 'untitled/Bus Selector' to 'Input Port 1' of 'untitled/Demux' because this input port requires a non-bus signal.
If the destination block is a bus-capable block, ensure that the block configuration and its input signal(s) meet the requirements for bus support. Please see Simulink documentation for further information on composite (i.e. bus) signals and their proper usage. Alternately, if the input bus signal is virtual; consists only of scalar elements, 1-D elements, or either row or column vectors; and all elements have the same data type, signal type, and sampling mode, consider inserting a Bus to Vector conversion block in the signal path. Otherwise, consider using a Bus Selector block in the signal path.
Component:Simulink | Category:Block error"

1 commentaire
Nikhil
le 3 Juil 2023
Could you share the Simulink model to reproduce the issue?
Réponses (1)
Jagadeesh Konakalla
le 3 Juil 2023
0 votes
Hi Shivam,
Please take a look at examples shipped with ROS Toolbox on how to access the ROS Messages in Simulink.
Thanks,
Jagadeesh K.
Catégories
En savoir plus sur ROS 2 Network Access in Simulink dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!