How to make a model realize a specific pattern ?

1 回表示 (過去 30 日間)
Nayla
Nayla 2022 年 8 月 18 日
回答済み: Steve Miller 2022 年 11 月 25 日
Hello all,
for example, if I have a stick that is supposed to draw a circle on a ground, how can I implement a code with the circle function into the stick model like this?
The goal is to learn how to implement a code with a certain function into a model that has been created with the help of Simscape Multibody. With this I would like to later add gait code to the legs of a robot so that it can walk or run.
Thanks in advance.

回答 (1 件)

Steve Miller
Steve Miller 2022 年 11 月 25 日
This sounds like an inverse kinematics function. You know where the "end effector" (in this case the end of the stick) is supposed to move and what its orientation is, and you want to know the joint angles that will result in that motion.
Take a look at this page to learn more about inverse kinematics in Simscape Multibody. In it, you see how to find joint angles for individual arm positions. If you want the arm to follow a trajectory, you can find the joint angles for a series of points and smoothly transition betweeen those joint angles.
--Steve

カテゴリ

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

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by