code generate for rigidBodyTree

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

 采纳的回答

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.

更多回答(1 个)

Francesco Ciriello
Francesco Ciriello 2021-8-29

0 个投票

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

类别

帮助中心File Exchange 中查找有关 Simulink Coder 的更多信息

产品

版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by