The following example is based on a more complex CAD assembly, a robot arm. It includes multiple parts, two closed loops, multiple constraints, and a subassembly. Look for the 11 CAD files of this case study in the Simscape™ Multibody™ Link examples folder.
|File Name||CAD File Type|
|Parts (main assembly)|
Open the assembly file for the whole robot.
Robot Arm Assembly in a CAD Platform
In the assembly tree to the left of the window, examine the CAD hierarchy:
Five of the part files are grouped into the subassembly
The subassembly uses two instances each of
The subassembly has its own group of 18 constraints, MateGroup1.
Two constraints, Angle1 and Angle2, are not active. If they were, they would lock the grip fingers into the open position. Here, each grip finger can move separately.
The other four part files are separate and grouped into the main assembly.
The main assembly has its own MateGroup1, consisting of seven constraints.
The whole assembly has eight DoFs. The
alone contains two, allowing each finger to open and close separately.
The main assembly has six DoFs:
The upper arm can move relative to the base by pitching, yawing, and rolling (three DoFs).
The forearm can yaw relative to the upper arm (one DoF).
The wrist can pitch relative to the forearm (one DoF).
The grip can rotate about its symmetry axis (one DoF).
Apply any changes you want to the assembly configuration or settings. If you change the assembly or any subassemblies, you need to rebuild the assembly before exporting it to XML.
Using the Simscape Multibody Link interface to your CAD platform,
export the assembly as an XML multibody description file. The XML
robot.xml appears in your working CAD folder.
Once you have exported the CAD assembly, you can generate the
corresponding Simscape Multibody model. Using the
you import the XML multibody description file that Simscape Multibody Link generated
during export, and let Simscape Multibody automatically generate
the model for you. Then, review the model and make any required changes
to the model. For a step-by-step description of the CAD Import procedure,
see Import a Robot Arm Model (Simscape Multibody).