How can I animate a robot CAD model corresponding to my MATLAB code?

26 ビュー (過去 30 日間)
Hwajin Choi
Hwajin Choi 2021 年 4 月 20 日
回答済み: Amrtanshu Raj 2021 年 4 月 23 日
Hello,
I have a CAD(SolidWorks) assembly of a robot arm and a MATLAB code of inverse position kinematics. I want to animate the robot arm according to the inverse position kinematics code I created. I know that I should use Simscape to do the task. Since I've never used the tool, I have few questions about that.
  1. I have only the MATLAB code script for the kinematics. Should I have to make a Simulink model to use Simscape?
  2. The kinematics code calculates the angle of rotation of the robot arm's joints(output data) using position x,y,z (input data). How can I make the joints of the robot arm CAD model rotate corresponding to the angle of rotation I got from the MATLAB code?
  3. If you know any source I could learn about Simscape, please let me know.
Thank you

採用された回答

Amrtanshu Raj
Amrtanshu Raj 2021 年 4 月 23 日
Hi,
You can use Simulink 3D Animation to animate your robot arm. You can find relevant functions here to load your robot.
  1. You can use a MATLAB function block in simulink and use your MATLAB code.
  2. You can use these functions to move the robot.
Hope this helps !!

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by