Error in code generation using ROS Toolbox: "Code generation information file does not exist. "
3 ビュー (過去 30 日間)
古いコメントを表示
Salvatore Matteo Mennea
2023 年 5 月 24 日
コメント済み: Jagadeesh Konakalla
2023 年 5 月 25 日
I'm trying to build a simulink model through code generation and then deploy it on ROS2 as a node, but I have this error:
Top model targets built:
Model Action Rebuild Reason
===============================================================================
ControlUAVUsingROS2 Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 5m 59.943s
No matching files named '/home/matteo/Documents/src/lib/libcudnn.so' were found.
How can I fix this problem?
2 件のコメント
Jagadeesh Konakalla
2023 年 5 月 24 日
Hi,
From the error messages it looks like you are trying to generated CUDA ROS node from Simulink model.
Please follow the below link for setting up your environement.
If you share your Simulink model, i can take a look at it.
Thanks,
Jagadeesh K.
採用された回答
Jagadeesh Konakalla
2023 年 5 月 25 日
Hi,
In the Simulink model configuration, the check box for the Generate GPU code is selected. Can you generate the code by unseleting this checkbox. This needs to be enabled when you are deploying the code to NVIDIA hardware.
You can find the Option here : Model configuration-> Code generation-> Generate GPU Code.
Let me know if this works for you or not.
Thanks,
Jagadeesh K.
2 件のコメント
Jagadeesh Konakalla
2023 年 5 月 25 日
To run the generatd node as is, you can use the Build, Load and Run option with proper settings in the Remote Device details in the Simulink model. Please take alook the following example.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!