Error in generating code for parssing array in ROS message. (example: std_msgs/I​nt32MultiA​rray)

조회 수: 3 (최근 30일)
I am trying to generate code for my ROS node. I always get an error when I generate code for parsing array in ROS message.
To understand the error, I created a simple ros node which subscribes std_msgs/Int32MultiArray, selecting first element and publish the Int32 element. The model I created (ros_arrray_test.slx) is as follows.
In generating code for the subsystem thet parse std_msgs/Int32MultiArray, I get following error saying "Selected signal 'Layout.Dim.Label' in the Bus Selector block 'Subsystem/In1' is invalid since it refers to a bus element within an array of sub-buses.". However, I do not use that property, so I can not find the way to fix the error.
Please tell me how to fix the error and generate code for this submodel. Thank you in advance!

답변 (1개)

Anmol Dhiman
Anmol Dhiman 2020년 6월 23일
Hi ,
Regards,
Anmol Dhiman

카테고리

Help CenterFile Exchange에서 Publishers and Subscribers에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by