Simulink Ros, code generation

조회 수: 2 (최근 30일)
Nicolas TESTARD
Nicolas TESTARD 2021년 6월 29일
답변: Josh Chen 2022년 1월 27일
Hello,
I am trying to generated a c++ class on simulink where i use the Ros block "Current time". I have launch rosinit in matlab and set the hardware board to Ros but when i generate the c++ code some files are missing:
slros_initialize.h and slros_busmsg_conversion.h are generated but they use librairies like slros_generic.h or slros_time.h that are not generated. Where could the problem come from?
  댓글 수: 4
Nicolas TESTARD
Nicolas TESTARD 2021년 6월 30일
And i am using matlab R2109a
Josh Chen
Josh Chen 2022년 1월 18일
Hello Nicolas,
Sorry for the late response.
In R2019a, not all codes will be generated into the *_ert_rtw folder. Instead, they were packed in the *.tgz file. If you would like to compile the code manually after generation, please unzip the *.tgz file and you should be able to see all the required files.
You may also refer to this documentation page for more information about manually deploy the generated code.
Thanks,
Josh

댓글을 달려면 로그인하십시오.

답변 (1개)

Josh Chen
Josh Chen 2022년 1월 27일
Hello Nicolas,
In R2019a, not all codes will be generated into the *_ert_rtw folder. Instead, they were packed in the *.tgz file. If you would like to compile the code manually after generation, please unzip the *.tgz file and you should be able to see all the required files.
You may also refer to this documentation page for more information about manually deploy the generated code.
Thanks,
Josh

카테고리

Help CenterFile Exchange에서 Publishers and Subscribers에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by