When importing a URDF model into a Simscape™ Multibody™ model, how do I set the geometry scale attribute to 0.1?

조회 수: 3 (최근 30일)
In the Import URDF Models entry of the help document, I can see that I can set the scale attribute to 0.01 or 0.001 by setting the unit to cm or mm. But how do I set the scale attribute to 0.1?
  댓글 수: 4
Rajeev
Rajeev 2023년 2월 23일
Can you try this?:
smimport('your_model.urdf', 'Scale', 0.1, 'Unit', 'm');

댓글을 달려면 로그인하십시오.

답변 (1개)

Tamir Suliman
Tamir Suliman 2023년 2월 23일
This will import the model 'mymodel.urdf' and scale it by a factor of 0.1 using the decimeter unit.
robot = importrobot('mymodel.urdf', 'Scale', 0.1, 'Unit', 'dm');
To set the scale attribute to 0.1, you can set the unit to "dm" which stands for decimeter. Decimeter is a metric unit of length that is equal to one-tenth of a meter, so setting the unit to "dm" would correspond to a scaling factor of 0.1.
  댓글 수: 1
Jingchao Li
Jingchao Li 2023년 2월 23일
Thank you for your answer! However, I want to use the ‘smimport’ command to import a URDF into a Simscape™ Multibody™ model instead of a rigid body tree model. How to set the scale to 0.1 in this case?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Applications에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by