<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Immersive' version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation =' http://www.web3d.org/specifications/x3d-3.3.xsd '>
<head>
<meta name='titlecontent='Robot.x3d'/>
<meta name='descriptioncontent='X3D encodings example: Robot. Seek or zoom in towards the robot to start a simple animation sequence. This scene demonstrates nested prototype instances'/>
<meta name='creatorcontent='Don Brutzman and Joe Williams'/>
<meta name='createdcontent='1 June 2002'/>
<meta name='modifiedcontent='5 November 2018'/>
<meta name='specificationSectioncontent=' X3D encodings, ISO/IEC 19776-1.3, Part 1: XML encoding, Annex C.15 Robot'/>
<meta name='specificationUrlcontent=' http://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/examples.html#Robot '/>
<meta name='identifiercontent=' http://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/Robot.x3d '/>
<meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
<meta name='licensecontent=' ../license.html'/>
</head>
<!--

Index for ExternProtoDeclare definitions : Pendulum, Shuttle

Index for DEF nodes : A, Arm, Near, WALK

Index for Viewpoint images : Viewpoint_1, Viewpoint_2
-->
<Scene>
<ExternProtoDeclare name='Shuttle'
  url=' "ShuttlesAndPendulums.x3d#Shuttle" "http://www.web3d.org/Specifications/Encodings/ShuttlesAndPendulums.x3d#Shuttle" '>
<field name='ratetype='SFTimeaccessType='initializeOnly'/>
<field name='distancetype='SFFloataccessType='initializeOnly'/>
<field name='childrentype='MFNodeaccessType='initializeOnly'/>
<field name='startTimetype='SFTimeaccessType='inputOutput'/>
<field name='stopTimetype='SFTimeaccessType='inputOutput'/>
<field name='looptype='SFBoolaccessType='initializeOnly'/>
</ExternProtoDeclare>
<ExternProtoDeclare name='Pendulum'
  url=' "ShuttlesAndPendulums.x3d#Pendulum" "http://www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/ShuttlesAndPendulums.x3d#Pendulum" '>
<field name='ratetype='SFTimeaccessType='initializeOnly'/>
<field name='maxAngletype='SFFloataccessType='initializeOnly'/>
<field name='childrentype='MFNodeaccessType='initializeOnly'/>
<field name='startTimetype='SFTimeaccessType='inputOutput'/>
<field name='stopTimetype='SFTimeaccessType='inputOutput'/>
<field name='looptype='SFBoolaccessType='initializeOnly'/>
</ExternProtoDeclare>
<NavigationInfo speed='20type='"WALK" "ANY"'/>
<Viewpoint description='Watch Robot Standposition='0 0 150'/>
<Viewpoint description='Watch Robot Walk when closeposition='0 0 95'/>
<!-- ROUTE information for Near node:  [from enterTime to WALK.startTime ] [from enterTime to Arm.startTime ] [from exitTime to WALK.stopTime ] [from exitTime to Arm.stopTime ] -->
<ProximitySensor DEF='Nearsize='200 200 200'/>
<!-- ROUTE information for WALK node:  [from Near.enterTime to startTime ] [from Near.exitTime to stopTime ] -->
<ProtoInstance name='ShuttleDEF='WALK'>
<fieldValue name='stopTimevalue='1'/>
<fieldValue name='ratevalue='10'/>
<fieldValue name='distancevalue='20'/>
<fieldValue name='children'>
<Transform rotation='0 1 0 1.57'>
<Shape>
<Appearance DEF='A'>
<Material diffuseColor='0 0.5 0.7'/>
</Appearance>
<!-- head -->
<Box/>
</Shape>
<Transform scale='1 5 1translation='0 -5 0'>
<Shape>
<Appearance USE='A'/>
<!-- body -->
<Sphere/>
</Shape>
</Transform>
<Transform rotation='0 1 0 1.57translation='1.5 0 0'>
<!-- ROUTE information for Arm node:  [from Near.enterTime to startTime ] [from Near.exitTime to stopTime ] -->
<ProtoInstance name='PendulumDEF='Arm'>
<fieldValue name='stopTimevalue='1'/>
<fieldValue name='ratevalue='1'/>
<fieldValue name='maxAnglevalue='0.52'/>
<fieldValue name='children'>
<Transform translation='0 -3 0'>
<Shape>
<Appearance USE='A'/>
<Cylinder height='4radius='0.5'/>
</Shape>
</Transform>
</fieldValue>
</ProtoInstance>
</Transform>
<Transform rotation='0 -1 0 1.57translation='-1.5 0 0'>
<!-- name='Pendulum' no longer required for ProtoInstance USE nodes -->
<ProtoInstance USE='Arm'/>
</Transform>
</Transform>
</fieldValue>
</ProtoInstance>
<ROUTE fromNode='NearfromField='enterTimetoNode='WALKtoField='startTime'/>
<ROUTE fromNode='NearfromField='enterTimetoNode='ArmtoField='startTime'/>
<ROUTE fromNode='NearfromField='exitTimetoNode='WALKtoField='stopTime'/>
<ROUTE fromNode='NearfromField='exitTimetoNode='ArmtoField='stopTime'/>
</Scene>
</X3D>
<!--

Index for ExternProtoDeclare definitions : Pendulum, Shuttle

Index for DEF nodes : A, Arm, Near, WALK

Index for Viewpoint images : Viewpoint_1, Viewpoint_2
-->

<!-- Color key: <X3dNode DEF='idName' field='value'/> matches <XmlElement DEF='idName' attribute='value'/>
(Light blue background: behavior node) (Grey background: inserted documentation) (Magenta background: X3D Extensibility)
    <Prototype name='ProtoName'> <field name='fieldName'/> </Prototype> -->

<!-- Additional help information about X3D scenes: X3D Resources, X3D Scene Authoring Hints and X3D Tooltips -->