フィルターのクリア

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!
  1 件のコメント
硕
2023 年 12 月 26 日
thank you very much!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNetwork Connection and Exploration についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!