Creating Mechanism Assemblies

A mechanism assembly consists of a hierarchy of mechanisms with a modular structure inside the product assembly of your model.

It includes products and subproducts with mechanisms, and one or multiple subproduct mechanisms referenced as submechanisms.

You can use elements such as manual or automatic joints or machine elements to connect submechanisms to their parent mechanism or to other submechanisms. This lets you create complex models using mechanism assemblies.

See Also
About Mechanism Assemblies

Context:

In this topic, we use the example of an excavator model to create and define a mechanism assembly. The excavator includes a boom, an arm, and a bucket connected by three hydraulic actuators:

Boom
Arm
Bucket
Hydraulic actuator 1
Hydraulic actuator 2
Hydraulic actuator 3

The excavator mechanism includes the three hydraulic actuator products as bodies.

Notes:
  • The boom, arm, and bucket appear as bodies rigidly connected through the hydraulic actuator bodies.
  • You cannot move the joint states defined between the boom, arm, and bucket in the Kinematics Player .

To move the boom, arm, and bucket, you need to create a mechanism assembly. To do so, this topic explains how to:

  • Create a mechanism for each hydraulic actuator.
  • Reference the hydraulic actuator mechanisms as submechanisms of the excavator mechanism.
  • Create drivers to connect the submechanisms to the excavator mechanism.

  1. Edit the excavator mechanism:
    1. Double-click the excavator mechanism in the tree.
    2. In the dialog box, remove the products that correspond to the three hydraulic actuators.

      For more information, see Modifying Elements.

    The mates referenced by these products are also removed from the excavator mechanism.
  2. Create a mechanism under the product of each hydraulic actuator. For more information, see Creating Mechanisms.
  3. Reference the three hydraulic actuator mechanisms as submechanisms of the excavator mechanism. For more information, see Creating Submechanisms.


  4. Connect the submechanisms to the excavator mechanism:
    1. Double-click the excavator mechanism in the tree.
    2. Select the automatic mates associated with the three submechanism products to include them to the excavator mechanism.


  5. In the excavator mechanism, create three drivers. For more information, see Creating Joint Drivers.

    Each driver must point to the joint of a different hydraulic actuator.

  6. From the Mechanism section of the action bar, click Kinematics Player. For more information, see Previewing the Kinematics of Mechanisms.
    You can control the motion of each driver and move the boom, arm, and bucket of the excavator.