code generate for rigidBodyTree
2 views (last 30 days)
Show older comments
tangzhong song
on 15 Apr 2020
Answered: Francesco Ciriello
on 29 Aug 2021
I want to generate c++ code from matlab code, some errors occur. Why can I solve it? Thanks!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/284666/image.jpeg)
0 Comments
Accepted Answer
Darshan Ramakant Bhat
on 15 Apr 2020
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.
0 Comments
More Answers (1)
Francesco Ciriello
on 29 Aug 2021
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
0 Comments
See Also
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!