<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<Mechanism xmlns="http://www.dmg-lib.org/mechanism" dmglib_MecID="0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dmg-lib.org/mechanism http://dmg-lib.org/dmglib/schemas/mechanism.xsd">

  <Shapes xmlns="http://www.dmg-lib.org/shapes">
    <Shape id="SwivelJoint.2D.fixed" scale="0.02">
      <Line id="SwivelJoint.2D.fixed..line1" x1="-0.75" x2="-1.75" y1="-0.75" y2="-3"/>
      <Line id="SwivelJoint.2D.fixed..line2" x1="0.75" x2="1.75" y1="-0.75" y2="-3"/>
      <Line id="SwivelJoint.2D.fixed..line3" x1="-2.5" x2="2.5" y1="-3" y2="-3"/>
      <Line id="SwivelJoint.2D.fixed..line4" x1="-2.25" x2="-0.75" y1="-3" y2="-4.25"/>
      <Line id="SwivelJoint.2D.fixed..line5" x1="-1.125" x2="0.375" y1="-3" y2="-4.25"/>
      <Line id="SwivelJoint.2D.fixed..line6" x1="0" x2="1.5" y1="-3" y2="-4.25"/>
      <Line id="SwivelJoint.2D.fixed..line7" x1="1.125" x2="2.625" y1="-3" y2="-4.25"/>
      <Line id="SwivelJoint.2D.fixed..line8" x1="2.25" x2="3.75" y1="-3" y2="-4.25"/>
      <Circle cx="0" cy="0" filled="false" id="SwivelJoint.2D.fixed..circle" radius="1"/>
    </Shape>
    <Shape id="SwivelJoint.3D">
      <Cylinder height="0.1" id="SwivelJoint.3D..cyl" location="xy" origin="0,0,-0.05" radius="0.0125"/>
    </Shape>
    <Shape id="SwivelJoint.2D.normal" scale="0.02">
      <Circle cx="0" cy="0" filled="false" id="SwivelJoint.2D.normal..circle" radius="1"/>
    </Shape>
    <Shape id="Bar.2D.normal">
      <Line id="Bar.2D.normal..line" x1="0" x2="1" y1="0" y2="0"/>
      
      <![CDATA[
      function transform(sx,sy)
      {
          line.x1 = line.x1 * sx;
          line.y1 = line.y1 * sy;
          line.x2 = line.x2 * sx;
          line.y2 = line.y2 * sy;
      }
]]>
    </Shape>
    <Shape id="Bar.3D">
      <Cylinder height="0.05" id="Bar.3D..cyl1" location="xy" origin="0,0,-0.025" radius="0.025"/>
      <Cylinder height="0.05" id="Bar.3D..cyl2" location="xy" origin="1,0,-0.025" radius="0.025"/>
      <Cylinder height="0.05" id="Bar.3D..cyl3" location="xy" origin="0,0,-0.025" radius="0.0125"/>
      <Cylinder height="0.05" id="Bar.3D..cyl4" location="xy" origin="1,0,-0.025" radius="0.0125"/>
      <Box height="0.05" id="Bar.3D..box" length="1" location="yz" origin="0,0,0" width="0.05"/>
      <Union geometry1="Bar.3D..box" geometry2="Bar.3D..cyl1" id="Bar.3D..union1"/>
      <Union geometry1="Bar.3D..union1" geometry2="Bar.3D..cyl2" id="Bar.3D..union2"/>
      <Difference geometry1="Bar.3D..union2" geometry2="Bar.3D..cyl3" id="Bar.3D..diff1"/>
      <Difference geometry1="Bar.3D..diff1" geometry2="Bar.3D..cyl4" id="Bar.3D..diff2"/>
      
      <![CDATA[
      function transform(sx,sy)
      {
          box.length = box.length * sx;
          cyl1.originx = cyl1.originx * sx;
          cyl2.originx = cyl2.originx * sx;
          cyl3.originx = cyl3.originx * sx;
          cyl4.originx = cyl4.originx * sx;
      }
]]>
    </Shape>
    <Shape id="RigidJoint.2D.normal" scale="0.02">
      <Rectangle cx="0" cy="0" filled="true" height="2" id="RigidJoint.2D.normal..rect" width="2"/>
    </Shape>
    <Shape id="Point.2D.normal" scale="0.019">
      <Circle cx="0" cy="0" filled="true" id="Point.2D.normal..circle" radius="1"/>
    </Shape>
  </Shapes>

  <ComponentSpaces xmlns="http://www.dmg-lib.org/componentspaces">
    <ComponentSpace id="cspace1" type="planar">
      <Positions>
        <Position id="pos1" x="-0.459996" y="-0.360269"/>
        <Position id="pos2" x="0.40122" y="-0.365849"/>
        <Position id="pos3" x="0.326038" y="0.104925"/>
        <Position id="pos4" x="0.326038" y="0.104925"/>
        <Position id="pos5" x="0.40122" y="-0.365849"/>
        <Position id="pos6" x="-0.197911" y="-0.0772175"/>
        <Position id="pos7" x="-0.316482" y="0.346495"/>
        <Position id="pos8" x="-0.197911" y="-0.0772175"/>
        <Position id="pos9" x="-0.197911" y="-0.0772175"/>
        <Position id="pos10" x="0.326038" y="0.104925"/>
        <Position id="pos11" x="-0.197911" y="-0.0772175"/>
        <Position id="pos12" x="-0.197911" y="-0.0772175"/>
        <Position id="pos13" x="-0.459996" y="-0.360269"/>
      </Positions>
      <Scalars>
        <Scalar id="scalar1" value="-0.360269"/>
        <Scalar id="scalar2" value="0"/>
        <Scalar id="scalar3" value="-0.365849"/>
        <Scalar id="scalar4" value="0"/>
        <Scalar id="scalar5" value="0.104925"/>
        <Scalar id="scalar6" value="0"/>
        <Scalar id="scalar7" value="-1.41243"/>
        <Scalar id="scalar8" value="-0.338505"/>
        <Scalar id="scalar9" value="0.476739"/>
        <Scalar id="scalar10" value="1.84366"/>
        <Scalar id="scalar11" value="-0.211398"/>
        <Scalar id="scalar12" value="0.43999"/>
        <Scalar id="scalar13" value="0"/>
        <Scalar id="scalar14" value="0.00327031"/>
        <Scalar id="scalar15" value="0.334565"/>
        <Scalar id="scalar16" value="0.00795032"/>
        <Scalar id="scalar17" value="0.554706"/>
        <Scalar id="scalar18" value="-0.0772175"/>
        <Scalar id="scalar19" value="0"/>
        <Scalar id="scalar20" value="-2.31775"/>
        <Scalar id="scalar21" value="0.0927573"/>
        <Scalar id="scalar22" value="0.385754"/>
      </Scalars>
      <Elements>
        <Bar fixed="false" id="sBar54">
          <Point fixed="false" id="sBar54.pt1" posRef="pos4"/>
          <Point fixed="false" id="sBar54.pt2" posRef="pos5"/>
          <Line fixed="false" id="sBar54.axis">
            <Param fixed="false" id="sBar54.axis.dir" scalarRef="scalar7"/>
            <Param fixed="false" id="sBar54.axis.offs" scalarRef="scalar8"/>
          </Line>
          <Param fixed="true" id="sBar54.length" scalarRef="scalar9"/>
        </Bar>
        <Bar fixed="false" id="sBar55">
          <Point fixed="false" id="sBar55.pt1" posRef="pos6"/>
          <Point fixed="false" id="sBar55.pt2" posRef="pos7"/>
          <Line fixed="false" id="sBar55.axis">
            <Param fixed="false" id="sBar55.axis.dir" scalarRef="scalar10"/>
            <Param fixed="false" id="sBar55.axis.offs" scalarRef="scalar11"/>
          </Line>
          <Param fixed="true" id="sBar55.length" scalarRef="scalar12"/>
        </Bar>
        <Bar fixed="false" id="sBar56">
          <Point fixed="false" id="sBar56.pt1" posRef="pos9"/>
          <Point fixed="false" id="sBar56.pt2" posRef="pos10"/>
          <Line fixed="false" id="sBar56.axis">
            <Param fixed="false" id="sBar56.axis.dir" scalarRef="scalar15"/>
            <Param fixed="false" id="sBar56.axis.offs" scalarRef="scalar16"/>
          </Line>
          <Param fixed="true" id="sBar56.length" scalarRef="scalar17"/>
        </Bar>
        <Bar fixed="false" id="sBar57">
          <Point fixed="false" id="sBar57.pt1" posRef="pos12"/>
          <Point fixed="false" id="sBar57.pt2" posRef="pos13"/>
          <Line fixed="false" id="sBar57.axis">
            <Param fixed="false" id="sBar57.axis.dir" scalarRef="scalar20"/>
            <Param fixed="false" id="sBar57.axis.offs" scalarRef="scalar21"/>
          </Line>
          <Param fixed="true" id="sBar57.length" scalarRef="scalar22"/>
        </Bar>
      </Elements>
      <Couplings>
        <SwivelJoint fixed="true" id="swj50">
          <Point fixed="true" id="swj50.pt" posRef="pos1"/>
          <Line fixed="false" id="swj50.line">
            <Param fixed="false" id="swj50.line.dir" scalarRef="scalar2"/>
            <Param fixed="false" id="swj50.line.offs" scalarRef="scalar1"/>
          </Line>
        </SwivelJoint>
        <SwivelJoint fixed="true" id="swj51">
          <Point fixed="true" id="swj51.pt" posRef="pos2"/>
          <Line fixed="false" id="swj51.line">
            <Param fixed="false" id="swj51.line.dir" scalarRef="scalar4"/>
            <Param fixed="false" id="swj51.line.offs" scalarRef="scalar3"/>
          </Line>
        </SwivelJoint>
        <SwivelJoint fixed="false" id="swj53">
          <Point fixed="false" id="swj53.pt" posRef="pos3"/>
          <Line fixed="false" id="swj53.line">
            <Param fixed="false" id="swj53.line.dir" scalarRef="scalar6"/>
            <Param fixed="false" id="swj53.line.offs" scalarRef="scalar5"/>
          </Line>
        </SwivelJoint>
        <SwivelJoint fixed="false" id="swj54">
          <Point fixed="false" id="swj54.pt" posRef="pos11"/>
          <Line fixed="false" id="swj54.line">
            <Param fixed="false" id="swj54.line.dir" scalarRef="scalar19"/>
            <Param fixed="false" id="swj54.line.offs" scalarRef="scalar18"/>
          </Line>
        </SwivelJoint>
        <RigidJoint fixed="false" id="rgj10">
          <Point fixed="false" id="rgj10.pt" posRef="pos8"/>
          <Line fixed="false" id="rgj10.axis">
            <Param fixed="false" id="rgj10.axis.dir" scalarRef="scalar14"/>
            <Param fixed="false" id="rgj10.axis.offs" scalarRef="scalar13"/>
          </Line>
        </RigidJoint>
      </Couplings>
      <Connections>
        <PointConnection couplingPointRef="rgj10.pt" elementPointRef="sBar56.pt1" id="pointcon1"/>
        <PointConnection couplingPointRef="rgj10.pt" elementPointRef="sBar55.pt1" id="pointcon2"/>
        <PointConnection couplingPointRef="swj50.pt" elementPointRef="sBar57.pt2" id="pointcon3"/>
        <PointConnection couplingPointRef="swj51.pt" elementPointRef="sBar54.pt2" id="pointcon4"/>
        <PointConnection couplingPointRef="swj53.pt" elementPointRef="sBar56.pt2" id="pointcon5"/>
        <PointConnection couplingPointRef="swj53.pt" elementPointRef="sBar54.pt1" id="pointcon6"/>
        <PointConnection couplingPointRef="swj54.pt" elementPointRef="sBar57.pt1" id="pointcon7"/>
        <CouplingConnection coupling1Ref="swj54" coupling2Ref="rgj10" id="couplingcon8" role="SwivelingRigidJoint"/>
      </Connections>
    </ComponentSpace>
  </ComponentSpaces>

</Mechanism>
