I want to generate c++ code from matlab code, some errors occur. Why can I solve it? Thanks!

 Akzeptierte Antwort

Darshan Ramakant Bhat
Darshan Ramakant Bhat am 15 Apr. 2020

0 Stimmen

Handle objects are not supported as entry point input / ouput for codegeneration :
Please try to modify your code to take non-handle class / structure as entrypoint input.

Weitere Antworten (1)

Francesco Ciriello
Francesco Ciriello am 29 Aug. 2021

0 Stimmen

You can use the writeAsFunction to create a function from which you can load the rigidBodyTree. Check out this doc page: https://www.mathworks.com/help/robotics/ref/rigidbodytree.writeasfunction.html

Kategorien

Mehr zu Simulink Coder finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by