<?xml version="1.0" encoding="utf-8"?>
<KinoveaPostureTool>
  <FormatVersion>1.1</FormatVersion>
  <Id>02a52d37-4694-4b90-a6d4-58d2a399638c</Id>
  <Name>Bikefit</Name>
  <DisplayName>DrawingName_Bikefit</DisplayName>
  <Icon>
  iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXH
  JZTwAAAEuSURBVHjaYvz//z8DJYAxJW01Meo0gfgaEH8CYlkoDQZMRFqkA6X5gFgZWYIYAxqBeBWU7QDE54k1IACIQQFUB8SLoWK30BWx4DFgGp
  QOBOINQKwIxAeAWB2XC4SBWB/qTxB4BaXXA/FpIC4HYjUgjsXmgmIgNgfi50AsCcRz0VxjAsRHkdSCXLEWFB4sUL/KAHEiEH8FYm4gboO6BhlsA
  +IVQLwH6p1KkEUsUCcqQTUzQOkOIM6D8t2Q0gIsMEEuvQ/EnbAw+IRmG8wwUODtBmIzIL6IpgZkyA8mJD8iAx8groHGAAi8BWJpLDElADJACoiT
  gTgK6jdQKIcC8TwkhRuhYppoCew6LC9IQhWADHgCxAugtiIDUKBWg5wNxBwgzUBcz0hxbqTUAIAAAwDE1kDafieHrQAAAABJRU5ErkJggg==
  </Icon>

  <!-- Data -->
  <Points>
    <Point name="tip of head" value="200;200" color="#dc322f" />
    <Point name="shoulder" value="160;210" color="#b58900" />
    <Point name="elbow" value="180;270" color="#dc322f" />
    <Point name="hand" value="210;330" color="#dc322f"/>
    <Point name="hip" value="50;260" color="#268bd2" />
    <Point name="knee" value="110;300" color="#d33682" />
    <Point name="ankle" value="40;420" color="#6c71c4" />
    <Point name="tip of foot" value="60;450" color="#2aa198" />
  </Points>
  <Segments>
    <Segment name="Head" point1="0" point2="1" style="Solid" width="2" color="#dc322f"/>
    <Segment name="Arm" point1="1" point2="2" style="Solid" width="2" color="#b58900"/>
    <Segment name="Forearm" point1="2" point2="3" style="Solid" width="2" color="#dc322f"/>
    <Segment name="Torso" point1="1" point2="4" style="Solid" width="2" color="#268bd2"/>
    <Segment name="Thigh" point1="4" point2="5" style="Solid" width="2" color="#d33682"/>
    <Segment name="Leg" point1="5" point2="6" style="Solid" width="2" color="#6c71c4"/>
    <Segment name="Foot" point1="6" point2="7" style="Solid" width="2" color="#2aa198"/>
  </Segments>
  <Angles>
  	<!-- Angle directions for a bike looking to the right. -->
    <Angle name="arm/torso" origin="1" leg1="4" leg2="2" signed="true" ccw="true" supplementary="false" radius="30" color="#b58900"/>
    <Angle name="knee" origin="5" leg1="4" leg2="6" signed="true" ccw="true" supplementary="false" radius="40" color="#d33682"/>
    <Angle name="hip" origin="4" leg1="1" leg2="5" signed="true" ccw="false" supplementary="false" radius="30" color="#268bd2"/>
    <Angle name="elbow" origin="2" leg1="1" leg2="3" signed="true" ccw="false" supplementary="false" radius="20" color="#dc322f"/>
    <Angle name="ankle" origin="6" leg1="5" leg2="7" signed="true" ccw="false" supplementary="false" radius="20" color="#6c71c4"/>
  </Angles>

  <!-- Interaction -->
  <Handles>
    <Handle type="Point" name="head" reference="0" trackable="true">
      <Constraint type="DistanceToPoint" optionGroup="Lock segments lengths">
        <DistanceToPoint point="1"/>
      </Constraint>
    </Handle>
    <Handle type="Point" name="shoulder" reference="1" trackable="true">
      <Constraint type="DistanceToPoint" optionGroup="Lock segments lengths">
        <DistanceToPoint point="4"/>
      </Constraint>
      <Impacts>
        <KeepAngle origin="1" leg1="4" leg2="0"/>
	      <KeepAngle origin="1" leg1="4" leg2="2"/>
	      <KeepAngle origin="2" leg1="1" leg2="3"/>
      </Impacts>
    </Handle>	
    <Handle type="Point" name="elbow" reference="2" trackable="true">
      <Constraint type="DistanceToPoint" optionGroup="Lock segments lengths">
        <DistanceToPoint point="1"/>
      </Constraint>
      <Impacts>
        <KeepAngle origin="2" leg1="1" leg2="3"/>
      </Impacts>
    </Handle>
    <Handle type="Point" name="wrist" reference="3" trackable="true">
      <Constraint type="DistanceToPoint" optionGroup="Lock segments lengths">
        <DistanceToPoint point="2"/>
      </Constraint>
    </Handle>
    <Handle type="Point" name="hip" reference="4" trackable="true">
      <Constraint type="DistanceToPoint" optionGroup="Lock segments lengths">
        <DistanceToPoint point="1"/>
      </Constraint>
      <Impacts>
        <KeepAngle origin="4" leg1="1" leg2="5"/>
        <KeepAngle origin="5" leg1="4" leg2="6"/>
        <KeepAngle origin="6" leg1="5" leg2="7"/>
      </Impacts>
    </Handle>
    <Handle type="Point" name="knee" reference="5" trackable="true">
      <Constraint type="DistanceToPoint" optionGroup="Lock segments lengths">
        <DistanceToPoint point="4"/>
      </Constraint>
      <Impacts>
        <KeepAngle origin="5" leg1="4" leg2="6"/>
        <KeepAngle origin="6" leg1="5" leg2="7"/>
      </Impacts>
    </Handle>
    <Handle type="Point" name="ankle" reference="6" trackable="true">
      <Constraint type="DistanceToPoint" optionGroup="Lock segments lengths">
        <DistanceToPoint point="5"/>
      </Constraint>
      <Impacts>
        <KeepAngle origin="6" leg1="5" leg2="7"/>
      </Impacts>
    </Handle>
    <Handle type="Point" name="foot" reference="7" trackable="true">
      <Constraint type="DistanceToPoint" optionGroup="Lock segments lengths">
        <DistanceToPoint point="6"/>
      </Constraint>
  	</Handle>
  </Handles>
  
  <Capabilities flipHorizontal="true"/>
</KinoveaPostureTool>