Error while trying to generate inverse kinematics c++ code: Fatal Error C1083 Cannot open include file: 'mcos_factory/mi.hpp': No such file or directory

조회 수: 3 (최근 30일)
Hi,
I have succesfully modeled and simulated a manipulator on simscape multibody. Now, I'm trying to generate code via Simulink Coder for its inverse kinematics (IK block from Robotics Toolbox).
However, Simulink Coder fails to publish the code because it can't find a reference.
Any ideas on how to fix it?
Not sure if it matters but:
  • The rigid body tree was exported from R2023b to R2023a
  • Im targeting Twincat
Thanks

답변 (1개)

Remo Pillat
Remo Pillat 2023년 11월 10일
Thanks for reaching out, Felipe. I believe you already connected to our tech support; what you are enountering is likely a limitation in PLC Coder. Let us know if you have any additional questions.
  댓글 수: 2
Theo
Theo 2024년 1월 22일
Hi,
I have encountered the exact same error by trying to publish the generated code from Matlab to a TwinCat Target.
How were you able to solve this problem?
Kind regards
Felipe
Felipe 2024년 1월 30일
I ended up writting the IK/FK analytically on matlab. Then, in a matlab module on simulink I generated code targetting Twincat to create a library.

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

카테고리

Help CenterFile Exchange에서 Simulation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by