フィルターのクリア

Questions about ROS2 code generation in simulink

1 回表示 (過去 30 日間)
Xiaochen Gao
Xiaochen Gao 2022 年 5 月 5 日
コメント済み: Xiaochen Gao 2022 年 5 月 8 日
Hello,
I have problems while doing the code generation.
I have a include error, the file is in the same folder, but it couldn't be found.
The error screenshot and the files are in the attachments.
So could you please help me to solve this problem?
Thanks!
Xiaochen

回答 (1 件)

Cam Salzberger
Cam Salzberger 2022 年 5 月 5 日
Hello Xiaochen,
I suspect that this issue is cause dby Windows' file path length limitations. File paths cannot be longer than 260 characters. When generating and building code in a folder that already has a long-ish file path, it's easy to run up against that limit with the auto-generated folders and filenames.
See this answer for suggestions.
-Cam
  2 件のコメント
Xiaochen Gao
Xiaochen Gao 2022 年 5 月 8 日
Hello!
Thanks for reply, I tried to shorten my path to lengh 104, but I have the same problem.
We think the problem might be, that we use a type we define in our comm_pkg in the service definition. Could that cause additional errors
Xiaochen Gao
Xiaochen Gao 2022 年 5 月 8 日
To check the problem, we changed the comm_pkg/WholeTrack(picture 1) track to the picture 2 content.
but I still have the similar problem.
Could you please have a look and help us? Thanks!

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

カテゴリ

Help Center および File ExchangeROS 2 Network Access in Simulink についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by