<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<vehicle type="mower" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../shared/xml/schema/vehicle.xsd">
    <annotation>Copyright (C) GIANTS Software GmbH, All Rights Reserved.</annotation>

    <storeData>
        <name>310 F ECO</name>
        <specs>
            <neededPower>8</neededPower>
            <workingWidth>3.1</workingWidth>
        </specs>
        <functions>
            <function>$l10n_function_mower</function>
        </functions>
        <image>store_310F.png</image>
        <price>11000</price>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>BBU</brand>
        <category>mowers</category>
        <shopFoldingState>1</shopFoldingState>
        <shopTranslationOffset>0 0.5 0</shopTranslationOffset>
        <shopRotationOffset>3.905 0 0</shopRotationOffset>
        <vertexBufferMemoryUsage>1455872</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>256000</indexBufferMemoryUsage>
        <textureMemoryUsage>1638400</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
        <audioMemoryUsage>0</audioMemoryUsage>
    </storeData>

    <base>
        <typeDesc>$l10n_typeDesc_mower</typeDesc>
        <filename>310_F_ECO.i3d</filename>
        <size width="3.35" length="1" lengthOffset="0.1" />
        <speedLimit value="15" />
        <components>
            <component centerOfMass="0 0 0" solverIterationCount="10" mass="390" />
        </components>
        <schemaOverlay attacherJointPosition="0 0" name="IMPLEMENT" />
    </base>

    <speedRotatingParts>
        <speedRotatingPart node="rakeLeft" radius="0.35" groundReferenceNodeIndex="1"/>
        <speedRotatingPart node="rakeRight" radius="0.35"  groundReferenceNodeIndex="1"/>
    </speedRotatingParts>

    <powerConsumer neededMinPtoPower="6" neededMaxPtoPower="8"/>

    <groundReferenceNodes>
        <groundReferenceNode node="groundRefNode" threshold="0.5" />
    </groundReferenceNodes>

    <workAreas>
        <workArea type="mower" functionName="processMowerArea" disableBackwards="true" >
            <area startNode="areaStart" widthNode="areaWidth" heightNode="areaHeight" />
            <groundReferenceNode index="1" />
            <mower dropWindrow="true" dropAreaIndex="2" />
            <onlyActiveWhenLowered value="true"/>
        </workArea>

        <workArea type="auxiliary" >
            <area startNode="areaDropStart" widthNode="areaDropWidth" heightNode="areaDropHeight" />
        </workArea>

    </workAreas>

    <attachable>
        <inputAttacherJoints>
            <inputAttacherJoint node="attacherJoint" jointType="implement" topReferenceNode="topReferenceNode" lowerRotationOffset="0" upperRotationOffset="5" lowerRotLimitScale="0 0 0" lowerTransLimitScale="0 1 0">
                <distanceToGround lower="0.5" upper="9.0" />
            </inputAttacherJoint>
        </inputAttacherJoints>
        <support animationName="movePillar" />
    </attachable>

    <connectionHoses>
        <hose inputAttacherJointIndices="1" type="hydraulicIn"  node="hydraulicIn01"  length="0.8" diameter="0.016" straighteningFactor="0.5" minCenterPointOffset="0.15 0 0" maxCenterPointOffset="0.15 0 0">
           <objectChange node="hydraulicIn01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
        <hose inputAttacherJointIndices="1" type="hydraulicOut" node="hydraulicOut01" length="0.8" diameter="0.016" straighteningFactor="0.5" minCenterPointOffset="-0.15 0 0" maxCenterPointOffset="-0.15 0 0">
           <objectChange node="hydraulicOut01_detached" visibilityActive="false" visibilityInactive="true"/>
        </hose>
    </connectionHoses>

    <dynamicallyLoadedParts>
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicIn01_connector"  filename="$data/shared/connectionHoses/connectors.i3d" />
        <dynamicallyLoadedPart node="1|0" linkNode="hydraulicOut01_connector" filename="$data/shared/connectionHoses/connectors.i3d" />
    </dynamicallyLoadedParts>

    <animations>
        <animation name="cutAnimation" looping="true">
            <part node="knifeUp" startTime="0.0" endTime="0.5" startTrans="0 0 0" endTrans="0.025 0 0"/>
            <part node="knifeUp" startTime="0.5" endTime="1" startTrans="0.025 0 0" endTrans="0 0 0"/>
            <part node="knifeUp" startTime="1" endTime="1.5" startTrans="0 0 0" endTrans="-0.025 0 0"/>
            <part node="knifeUp" startTime="1.5" endTime="2" startTrans="-0.025 0 0" endTrans="0 0 0"/>

            <part node="knifeLow" startTime="0.0" endTime="0.5" startTrans="0 0 0" endTrans="-0.035 0 0"/>
            <part node="knifeLow" startTime="0.5" endTime="1" startTrans="-0.035 0 0" endTrans="0 0 0"/>
            <part node="knifeLow" startTime="1" endTime="1.5" startTrans="0 0 0" endTrans="0.015 0 0"/>
            <part node="knifeLow" startTime="1.5" endTime="2" startTrans="0.015 0 0" endTrans="0 0 0"/>

		 <part node="conductorUp" startTime="0.0" endTime="0.5" startTrans="0 0 0" endTrans="0.025 0 0"/>
            <part node="conductorUp" startTime="0.5" endTime="1" startTrans="0.025 0 0" endTrans="0 0 0"/>
            <part node="conductorUp" startTime="1" endTime="1.5" startTrans="0 0 0" endTrans="-0.025 0 0"/>
            <part node="conductorUp" startTime="1.5" endTime="2" startTrans="-0.025 0 0" endTrans="0 0 0"/>

		 <part node="conductorLow" startTime="0.0" endTime="0.5" startTrans="0 0 0" endTrans="-0.035 0 0"/>
            <part node="conductorLow" startTime="0.5" endTime="1" startTrans="-0.035 0 0" endTrans="0 0 0"/>
            <part node="conductorLow" startTime="1" endTime="1.5" startTrans="0 0 0" endTrans="0.015 0 0"/>
            <part node="conductorLow" startTime="1.5" endTime="2" startTrans="0.015 0 0" endTrans="0 0 0"/>

		 <part node="rotCon1" startTime="0.0" endTime="0.5" startRot="0.0 0.0 0.0" endRot="0.0 22.0 0.0"/>
            <part node="rotCon1" startTime="0.5" endTime="1" startRot="0.0 22.0 0.0" endRot="0.0 0.0 0.0"/>
            <part node="rotCon1" startTime="1" endTime="1.5" startRot="0.0 0.0 0.0" endRot="0.0 -22.0 0.0"/>
            <part node="rotCon1" startTime="1.5" endTime="2" startRot="0.0 -22.0 0.0" endRot="0.0 0.0 0.0"/>

		 <part node="rotCon2" startTime="0.0" endTime="0.5" startRot="0.0 0.0 0.0" endRot="0.0 22.0 0.0"/>
            <part node="rotCon2" startTime="0.5" endTime="1" startRot="0.0 22.0 0.0" endRot="0.0 0.0 0.0"/>
            <part node="rotCon2" startTime="1" endTime="1.5" startRot="0.0 0.0 0.0" endRot="0.0 -22.0 0.0"/>
            <part node="rotCon2" startTime="1.5" endTime="2" startRot="0.0 -22.0 0.0" endRot="0.0 0.0 0.0"/>

		 <part node="rotCon3" startTime="0.0" endTime="0.5" startRot="0.0 0.0 0.0" endRot="0.0 22.0 0.0"/>
            <part node="rotCon3" startTime="0.5" endTime="1" startRot="0.0 22.0 0.0" endRot="0.0 0.0 0.0"/>
            <part node="rotCon3" startTime="1" endTime="1.5" startRot="0.0 0.0 0.0" endRot="0.0 -22.0 0.0"/>
            <part node="rotCon3" startTime="1.5" endTime="2" startRot="0.0 -22.0 0.0" endRot="0.0 0.0 0.0"/>

		 <part node="rotCon4" startTime="0.0" endTime="0.5" startRot="0.0 0.0 0.0" endRot="0.0 22.0 0.0"/>
            <part node="rotCon4" startTime="0.5" endTime="1" startRot="0.0 22.0 0.0" endRot="0.0 0.0 0.0"/>
            <part node="rotCon4" startTime="1" endTime="1.5" startRot="0.0 0.0 0.0" endRot="0.0 -22.0 0.0"/>
            <part node="rotCon4" startTime="1.5" endTime="2" startRot="0.0 -22.0 0.0" endRot="0.0 0.0 0.0"/>

		 <part node="rotCon5" startTime="0.0" endTime="0.5" startRot="0.0 0.0 0.0" endRot="0.0 22.0 0.0"/>
            <part node="rotCon5" startTime="0.5" endTime="1" startRot="0.0 22.0 0.0" endRot="0.0 0.0 0.0"/>
            <part node="rotCon5" startTime="1" endTime="1.5" startRot="0.0 0.0 0.0" endRot="0.0 -22.0 0.0"/>
            <part node="rotCon5" startTime="1.5" endTime="2" startRot="0.0 -22.0 0.0" endRot="0.0 0.0 0.0"/>

		 <part node="rotCon6" startTime="0.0" endTime="0.5" startRot="0.0 0.0 0.0" endRot="0.0 -22.0 0.0"/>
            <part node="rotCon6" startTime="0.5" endTime="1" startRot="0.0 -22.0 0.0" endRot="0.0 0.0 0.0"/>
            <part node="rotCon6" startTime="1" endTime="1.5" startRot="0.0 0.0 0.0" endRot="0.0 22.0 0.0"/>
            <part node="rotCon6" startTime="1.5" endTime="2" startRot="0.0 22.0 0.0" endRot="0.0 0.0 0.0"/>

		 <part node="rotCon7" startTime="0.0" endTime="0.5" startRot="0.0 0.0 0.0" endRot="0.0 -22.0 0.0"/>
            <part node="rotCon7" startTime="0.5" endTime="1" startRot="0.0 -22.0 0.0" endRot="0.0 0.0 0.0"/>
            <part node="rotCon7" startTime="1" endTime="1.5" startRot="0.0 0.0 0.0" endRot="0.0 22.0 0.0"/>
            <part node="rotCon7" startTime="1.5" endTime="2" startRot="0.0 22.0 0.0" endRot="0.0 0.0 0.0"/>

		 <part node="rotCon8" startTime="0.0" endTime="0.5" startRot="0.0 0.0 0.0" endRot="0.0 -22.0 0.0"/>
            <part node="rotCon8" startTime="0.5" endTime="1" startRot="0.0 -22.0 0.0" endRot="0.0 0.0 0.0"/>
            <part node="rotCon8" startTime="1" endTime="1.5" startRot="0.0 0.0 0.0" endRot="0.0 22.0 0.0"/>
            <part node="rotCon8" startTime="1.5" endTime="2" startRot="0.0 22.0 0.0" endRot="0.0 0.0 0.0"/>

		 <part node="rotCon9" startTime="0.0" endTime="0.5" startRot="0.0 0.0 0.0" endRot="0.0 -22.0 0.0"/>
            <part node="rotCon9" startTime="0.5" endTime="1" startRot="0.0 -22.0 0.0" endRot="0.0 0.0 0.0"/>
            <part node="rotCon9" startTime="1" endTime="1.5" startRot="0.0 0.0 0.0" endRot="0.0 22.0 0.0"/>
            <part node="rotCon9" startTime="1.5" endTime="2" startRot="0.0 22.0 0.0" endRot="0.0 0.0 0.0"/>

		 <part node="rotCon10" startTime="0.0" endTime="0.5" startRot="0.0 0.0 0.0" endRot="0.0 -22.0 0.0"/>
            <part node="rotCon10" startTime="0.5" endTime="1" startRot="0.0 -22.0 0.0" endRot="0.0 0.0 0.0"/>
            <part node="rotCon10" startTime="1" endTime="1.5" startRot="0.0 0.0 0.0" endRot="0.0 22.0 0.0"/>
            <part node="rotCon10" startTime="1.5" endTime="2" startRot="0.0 22.0 0.0" endRot="0.0 0.0 0.0"/>

	</animation>

	 <animation name="movePillar">
		<part node="pillar" startTime="0" endTime="0.3" startTrans="0 0.4 0" endTrans="0 0 0"/>
	</animation>

    </animations>

    <mower fruitTypeConverter="MOWER">
        <dropEffects>
            <dropEffect workAreaIndex="1" dropAreaIndex="2">
                <effectNode effectClass="TypedMotionPathEffect" effectType="MOWER" linkNode="mowerEffectNode">
                    <motionPathEffect textureFilename="$data/vehicles/kuhn/gmd3123F/mowerEffectArray.dds" numRows="9" rowLength="11" minFade="0.15"/>
                </effectNode>
                <effectNode effectNode="smokeEmitter" effectClass="ParticleEffect" particleType="smoke" materialType="smokeParticle" worldSpace="false" emitCountScale="0.2"/>
            </dropEffect>
        </dropEffects>
    </mower>

    <turnOnVehicle turnOffIfNotAllowed="true">

        <turnedOnAnimation name="cutAnimation" speedScale="8" turnOnFadeTime="1" turnOffFadeTime="2"/>

        <sounds>
            <start file="sounds/mower_start.wav" innerRadius="5.0" outerRadius="80.0" >
                <volume indoor="0.4" outdoor="0.9"/>
				<pitch indoor="1.0" outdoor="1.0" >
					<modifier type="MOWER_LOAD" value="0.00" modifiedValue="1.00" />
					<modifier type="MOWER_LOAD" value="1.00" modifiedValue="0.90" />
				</pitch>
				<lowpassGain indoor="0.2" outdoor="0.7" />
            </start>
            <work file="sounds/mower_work.wav" innerRadius="5.0" outerRadius="80.0" fadeOut="0.1" >
                <volume indoor="0.4" outdoor="0.9"/>
                <pitch indoor="1.0" outdoor="1.0" >
					<modifier type="MOWER_LOAD" value="0.00" modifiedValue="1.00" />
					<modifier type="MOWER_LOAD" value="1.00" modifiedValue="0.90" />
				</pitch>
				<lowpassGain indoor="0.2" outdoor="0.7" />
            </work>
            <stop file="sounds/mower_stop.wav" innerRadius="5.0" outerRadius="80.0" >
                <volume indoor="0.4" outdoor="0.9"/>
                <pitch indoor="1.0" outdoor="1.0" >
					<modifier type="MOWER_LOAD" value="0.00" modifiedValue="1.00" />
					<modifier type="MOWER_LOAD" value="1.00" modifiedValue="0.90" />
				</pitch>
				<lowpassGain indoor="0.2" outdoor="0.7" />
		  </stop>
        </sounds>
    </turnOnVehicle>

    <ai>
        <needsLowering value="true" />
        <areaMarkers leftNode="aiMarkerLeft" rightNode="aiMarkerRight" backNode="aiMarkerBack" />
        <sizeMarkers leftNode="sizeMarkerLeft" rightNode="sizeMarkerRight" backNode="sizeMarkerBack" />
        <collisionTrigger node="aiCollisionNode" width="
3.1" height="1"/>
        <agentAttachment width="3" height="1.5" length="1" lengthOffset="0.15"/>
    </ai>

        <baseMaterial>
        <material name="310F_mat" baseNode="attacherBlock">
            <shaderParameter name="colorMat0" value="0 0 0"/>
            <shaderParameter name="colorMat1" value="1 0 0"/>
            <shaderParameter name="colorMat2" value="0.5 0.5 0.46"/>
            <shaderParameter name="colorMat3" value="0.32 0.35 0.36"/>
            <shaderParameter name="colorMat4" value="0.0 0.0 0.0"/>
        </material>
    </baseMaterial>

    <wearable wearDuration="700" workMultiplier="5" fieldMultiplier="2"/>
    <washable dirtDuration="200" washDuration="1" workMultiplier="4" fieldMultiplier="2"/>

    <i3dMappings>
	  <i3dMapping id="attacherBlock" node="0>1" />        
	  <i3dMapping id="310_F_ECO_main_component1" node="0>" />
        <i3dMapping id="rakeLeftRot" node="0>10|0|0" />
        <i3dMapping id="rakeRightRot" node="0>10|0|1" />
        <i3dMapping id="rakeLeft" node="0>10|0|0|0" />
        <i3dMapping id="rakeRight" node="0>10|0|1|0" />
        <i3dMapping id="groundRefNode" node="0>11|3" />
        <i3dMapping id="areaStart" node="0>11|0" />
        <i3dMapping id="areaWidth" node="0>11|1" />
        <i3dMapping id="areaHeight" node="0>11|2" />
        <i3dMapping id="areaDropStart" node="0>11|4" />
        <i3dMapping id="areaDropWidth" node="0>11|5" />
        <i3dMapping id="areaDropHeight" node="0>11|6" />
        <i3dMapping id="attacherJoint" node="0>0|0" />
        <i3dMapping id="topReferenceNode" node="0>0|1" />
        <i3dMapping id="hydraulicIn01" node="0>0|2|2" />
        <i3dMapping id="hydraulicIn01_detached" node="0>0|2|0" />
        <i3dMapping id="hydraulicOut01" node="0>0|2|3" />
        <i3dMapping id="hydraulicOut01_detached" node="0>0|2|1" />
        <i3dMapping id="hydraulicIn01_connector" node="0>0|2|0|0" />
        <i3dMapping id="hydraulicOut01_connector" node="0>0|2|1|0" />
        <i3dMapping id="knifeUp" node="0>10|1|0" />
        <i3dMapping id="knifeLow" node="0>10|1|1" />
        <i3dMapping id="conductorUp" node="0>10|3|1" />
        <i3dMapping id="conductorLow" node="0>10|3|0" />
        <i3dMapping id="pillar" node="0>10|4|0" />
        <i3dMapping id="mowerEffectNode" node="0>13|0" />
        <i3dMapping id="smokeEmitter" node="0>13|1" />
        <i3dMapping id="aiMarkerLeft" node="0>12|0" />
        <i3dMapping id="aiMarkerRight" node="0>12|1" />
        <i3dMapping id="aiMarkerBack" node="0>12|2" />
        <i3dMapping id="sizeMarkerLeft" node="0>12|3" />
        <i3dMapping id="sizeMarkerRight" node="0>12|4" />
        <i3dMapping id="sizeMarkerBack" node="0>12|5" />
        <i3dMapping id="aiCollisionNode" node="0>12|6" />
        <i3dMapping id="componentJoint" node="0>14" />
        <i3dMapping id="rotCon1" node="0>10|2|0" />
        <i3dMapping id="rotCon2" node="0>10|2|1" />
        <i3dMapping id="rotCon3" node="0>10|2|2" />
        <i3dMapping id="rotCon4" node="0>10|2|3" />
        <i3dMapping id="rotCon5" node="0>10|2|4" />
        <i3dMapping id="rotCon6" node="0>10|2|5" />
        <i3dMapping id="rotCon7" node="0>10|2|6" />
        <i3dMapping id="rotCon8" node="0>10|2|7" />
        <i3dMapping id="rotCon9" node="0>10|2|8" />
        <i3dMapping id="rotCon10" node="0>10|2|9" />
    </i3dMappings>
</vehicle>
