Converting Simscape model to RigidbodyTree
24 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Sakshay
am 14 Mär. 2023
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 Kommentare
Siehe auch
Kategorien
Mehr zu Manipulator Modeling finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!