필터 지우기
필터 지우기

ros2 write image cant write a image to ros data

조회 수: 7 (최근 30일)
硕
2023년 12월 12일
댓글: 2023년 12월 26일
when I run it ,it have a error info!

채택된 답변

Swaraj
Swaraj 2023년 12월 26일
Hi,
When working with a ROS network, the Simulink model is ultimately converted into C code, which needs all data to be presized and designated. The standard length of the ROS Message is 128. Thus, when sending larger messages, you need to override this and size the message to the size of your data.
This is accomplished by going to the “Simulation” tab in Simulink and clicking on the “Variable Size Messages” table in the top left.
From that menu deselect the “Use default limits for this message type” and then specify the length that works for your data.
Hope it helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Network Connection and Exploration에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!