Using coder.extrinsic in simulink has reduce the speed of simulation time

11 ビュー (過去 30 日間)
snow John
snow John 2021 年 10 月 22 日
回答済み: Karsh Tharyani 2022 年 5 月 6 日
Hello everyone,I am doing robot inverse kinematic simulation and i use the coder.extrinsic to include the ik function .
The inverse kinematics can work fine ,but the simulation speed have extrimly slowed down.
Can someone tell me why? Is there any way to solve the slowdown in simulation speed?
I have tried to modify the simulation step size, but it didn't work.
Thanks for any reply,
Best regards,
-Jian

採用された回答

Karsh Tharyani
Karsh Tharyani 2022 年 5 月 6 日
You can use the Inverse Kinematics block (see Documentation here: https://www.mathworks.com/help/robotics/ref/inversekinematics.html) which supports Code Generation and should likely speed up your simulation.
If you have additional requirements for your use-case please feel free reach out to Technical Support https://www.mathworks.com/support/contact_us.html.
Best,
Karsh

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCode Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by