How to extract the data from bus Selector in Simulink

조회 수: 17 (최근 30일)
Shivam Bajpai
Shivam Bajpai 2023년 7월 1일
답변: Jagadeesh Konakalla 2023년 7월 3일
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
Nikhil
Nikhil 2023년 7월 3일
Could you share the Simulink model to reproduce the issue?

댓글을 달려면 로그인하십시오.

답변 (1개)

Jagadeesh Konakalla
Jagadeesh Konakalla 2023년 7월 3일
Hi Shivam,
Please take a look at examples shipped with ROS Toolbox on how to access the ROS Messages in Simulink.
Thanks,
Jagadeesh K.

카테고리

Help CenterFile Exchange에서 ROS Network Access in Simulink에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by