Converting Simscape model to RigidbodyTree
31 ビュー (過去 30 日間)
古いコメントを表示
Hi, I am trying to convert Simscape model to RigidBodyTree. I first converted my xml file to Simscape model there was no problem. But when I try to build a RigidBodyTree. Matlab gives me error which says: 'Error using robotics.SMImporter/processTranslationFlags (line 275). The Simscape Multibody components contain closed chains and cannot be converted to a rigidBodyTree. To break all closed chains and only issue a warning, use the Name-Value pair: 'BreakChains','remove-joints'. Otherwise, remove the closed chains associated with the following joints: PanTiltt/Planar Joint' Can you please tell what am I doing wrong here?
0 件のコメント
回答 (1 件)
Sakshay
2023 年 3 月 14 日
Hello Simay,
As per my understanding, while converting a Simscape Model to RigidBodyTree you are getting the mentioned error.
URDF (Unified Robot Description Format) do not support a closed chain based structure. Hence, while converting your model from Simscape to RigidBodyTree you are getting an error to remove the closed chain structures.
As the error suggests, to successfully convert a Simscape model to RigidBodyTree, you can set the "BreakChains" Name-Value pair to "remove-joints" while using the "importrobot" function. The "remove-joints" will automatically remove the chain closure joints in the final output. An example code for the same would look like:
importrobot(model, "BreakChains", "remove-joints");
For more information, you can refer to the following documentations:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Manipulator Modeling についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!