Problem generating C++ code from simulink for standalone ROS node. How to solve the problem of Could not find information file: /home/jane/Documents/slprj/ert/HoffManSubSystem2/tmwinternal/binfo.mat ?
조회 수: 7 (최근 30일)
이전 댓글 표시
Hi, I have a simulink model that is using blocks from Robotics Operating System Toolbox. I am trying to generate the C++ code from it, but I am getting following error:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160177/image.png)
Warning: The following error was caught while executing 'coder.internal.ModelBuilder' class destructor:
Could not find information file: /home/jane/Documents/slprj/ert/HoffManSubSystem2/tmwinternal/binfo.mat. One reason this can happen is that the top model has the 'Rebuild options' parameter set to 'Never' on the 'Model Referencing' pane of the Configuration Parameters dialog.
I checked for Model Referencing pane in the configuration Parameters dialog and it looks this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160178/image.png)
I don't understand what is causing this problem. I have verified that roscore is running and Simulink is able to connect to ROS, so this is not the problem. One important point to note is that I am using variable size inputs and I have properly defined its maximum size. I am able to run the simulation from simulink and it produces the output as expected, but it is failing to generate the C++ code for standalone ROS.
Any help in this regard will be appreciated.
댓글 수: 1
Ashwini Venkatappa
2017년 2월 6일
Are you able to build the example model
>>robotROSCodeGenerationExample
The link below gives the configuration setup required to generate code. generate a standalone ros node
답변 (1개)
Tohru Kikawada
2019년 5월 2일
Model Reference with ROS Publsher/Subscriber blocks is suported after R2019a.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Code Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!