Is it possible to call a rigidBodyTree robot model in a Matlab function in Simulink?
Show older comments
Hi everybody,
I am trying to use the Robotic System Toolbox functions inside a Matlab function in Simulink.
I am having troubles in importing the rigidBodyTree model in the Matlab function.
How can I manage this issue?
Thank you very much in advance!
4 Comments
Aastav Sen
on 28 May 2020
I second this question! (https://www.mathworks.com/matlabcentral/answers/533538-how-to-load-rigidbodytree-from-workspace-into-simulink)
I am currently solving this problem by recreating the ridigbodyTree in the MATLAB Function block itself. However, this means that it is created in every loop and that is not efficient or desireable at all. Although it is a workaround, I am unsure if directly obtaining a 'ridigbodyTree' type from the workspace is possible and if anybody knows about this I would really appreaciate it if you helped us out.
Lorenzo Scalera
on 29 May 2020
Valeria Leto
on 7 Apr 2021
Hi Lorenzo! could you post your code? I have the same problem but I didn't understand how to fix it.
Lorenzo Scalera
on 9 Apr 2021
Accepted Answer
More Answers (0)
Categories
Find more on Manipulator Modeling in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!