1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.1//EN" "https://www.web3d.org/specifications/x3d-3.1.dtd">
|
3 | <X3D profile='Immersive' version='3.1' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.1.xsd'> |
4 | <head> |
5 | <component level='1' name='DIS'/> |
6 | <meta name='title' content=' AriesEspduPrototype.x3d '/> |
7 | <meta name='description' content='Prototype for a DIS enabled (including articulated parameters) for inclusion in a VRML/X3D Scene. Articulation parameters are in AUV Dynamics (AUV Workbench) order.'/> |
8 | <meta name='creator' content='Duane Davis'/> |
9 | <meta name='translator' content='Vrml97ToX3dNist'/> |
10 | <meta name='created' content='21 November 2003'/> |
11 | <meta name='modified' content='20 October 2019'/> |
12 | <meta name='reference' content=' UuvBoxTest.xml '/> |
13 | <meta name='reference' content='UuvBoxTest.disbin'/> |
14 | <meta name='reference' content='UuvBoxTest.disbin.disbinidx'/> |
15 | <meta name='errors' content='EspduTransformTrace needs revision'/> |
16 | <meta name='subject' content='Distributed Interactive Simulation DIS ESPDU Aries AUV'/> |
17 | <meta name='identifier' content=' https://www.web3d.org/x3d/content/examples/Savage/Robots/UnmannedUnderwaterVehicles/AriesEspduPrototype.x3d '/> |
18 | <meta name='generator' content=' Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html '/> |
19 | <meta name='generator' content='X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit'/> |
20 | <meta name='license' content='../../license.html'/> |
21 | </head> |
22 | <Scene> |
23 | <WorldInfo title='AriesEspduPrototype.x3d'/> |
24 | <ExternProtoDeclare name='Aries' appinfo='Acoustic Radio Interactive Exploratory Server (ARIES) is an operational NPS-designed Unmanned Underwater Vehicle (AUV)' url=' "../../../Savage/Robots/UnmannedUnderwaterVehicles/AriesPrototype.x3d#Aries" "https://www.web3d.org/x3d/content/examples/Savage/Robots/UnmannedUnderwaterVehicles/AriesPrototype.x3d#Aries" "../../../Savage/Robots/UnmannedUnderwaterVehicles/AriesPrototype.wrl#Aries" "https://www.web3d.org/x3d/content/examples/Savage/Robots/UnmannedUnderwaterVehicles/AriesPrototype.wrl#Aries" '> |
25 |
<field name='hullName' type='SFString' accessType='inputOutput'
appinfo='can be overridden at instantiation time only'/> |
26 | <field name='hullColor' type='SFColor' accessType='inputOutput'/> |
27 | <field name='planeColor' type='SFColor' accessType='inputOutput'/> |
28 | <field name='translation' type='SFVec3f' accessType='inputOutput'/> |
29 | <field name='rotation' type='SFRotation' accessType='inputOutput'/> |
30 | <field name='set_portRpm' type='SFFloat' accessType='inputOnly'/> |
31 | <field name='set_stbdRpm' type='SFFloat' accessType='inputOnly'/> |
32 | <field name='set_forwardRudders' type='SFFloat' accessType='inputOnly'/> |
33 | <field name='set_afterRudders' type='SFFloat' accessType='inputOnly'/> |
34 | <field name='set_forwardPlanes' type='SFFloat' accessType='inputOnly'/> |
35 | <field name='set_afterPlanes' type='SFFloat' accessType='inputOnly'/> |
36 | <field name='set_forwardVerticalThruster' type='SFFloat' accessType='inputOnly'/> |
37 | <field name='set_afterVerticalThruster' type='SFFloat' accessType='inputOnly'/> |
38 | <field name='set_forwardLateralThruster' type='SFFloat' accessType='inputOnly'/> |
39 | <field name='set_afterLateralThruster' type='SFFloat' accessType='inputOnly'/> |
40 |
<field name='set_ST725Range' type='SFFloat' accessType='inputOnly'
appinfo='meters along sonar axis'/> |
41 |
<field name='set_ST1000Range' type='SFFloat' accessType='inputOnly'
appinfo='meters along sonar axis'/> |
42 |
<field name='set_ST725Bearing' type='SFFloat' accessType='inputOnly'
appinfo='degrees about vertical axis'/> |
43 |
<field name='set_ST1000Bearing' type='SFFloat' accessType='inputOnly'
appinfo='degrees about vertical axis'/> |
44 |
<field name='set_ST725Intensity' type='SFFloat' accessType='inputOnly'
appinfo='signal-to-noise ratio decibels'/> |
45 |
<field name='set_ST1000Intensity' type='SFFloat' accessType='inputOnly'
appinfo='signal-to-noise ratio decibels'/> |
46 | </ExternProtoDeclare> |
47 | <ProtoDeclare name='AriesEspdu' appinfo='Aries unmanned underwater vehicle with IEEE DIS EspduTransform wrapper bundled together in a single prototype'> |
48 | <ProtoInterface> |
49 |
<field name='hullName' type='SFString' value='AriesAUV' accessType='inputOutput'
appinfo='up to 11 characters maps to EspduTransform marking'/> |
50 |
<field name='hullColor' type='SFColor' value='.9 .9 .9' accessType='inputOutput'
appinfo='hull color for this UUV instance'/> |
51 |
<field name='planeColor' type='SFColor' value='.1 .1 .8' accessType='inputOutput'
appinfo='plane color for this UUV instance'/> |
52 |
<field name='translation' type='SFVec3f' value='0 0 0' accessType='inputOutput'
appinfo='initial position prior to first ESPDU receipt'/> |
53 |
<field name='rotation' type='SFRotation' value='0 0 1 0' accessType='inputOutput'
appinfo='initial orientation prior to first ESPDU receipt'/> |
54 | <field name='siteID' type='SFInt32' value='0' accessType='inputOutput'/> |
55 | <field name='applicationID' type='SFInt32' value='1' accessType='inputOutput'/> |
56 | <field name='entityID' type='SFInt32' value='2' accessType='inputOutput'/> |
57 |
<field name='readInterval' type='SFTime' value='0.1' accessType='inputOutput'
appinfo='network read periodicity'/> |
58 |
<field name='writeInterval' type='SFTime' value='1.0' accessType='inputOutput'
appinfo='network write periodicity'/> |
59 |
<field name='networkMode' type='SFString' value='networkReader' accessType='inputOutput'
appinfo='Override default EspduTransform value so that listening occurs by default'/> |
60 |
<field name='address' type='SFString' value='239.255.5.8' accessType='inputOutput'
appinfo='multicast address'/> |
61 |
<field name='port' type='SFInt32' value='62040' accessType='inputOutput'
appinfo='multicast port'/> |
62 |
<field name='traceNodeEnabled' type='SFInt32' value='-1' accessType='inputOutput'
appinfo='Set to 0 to activate EspduTransformTrace'/> |
63 | </ProtoInterface> |
64 | <ProtoBody> |
65 | <!-- ============================= --> |
66 | <Group> |
67 |
<!-- ROUTE information for ET node:
[from articulationParameterArray to ArticulationParameterControl.set_articulationParameters
]
[from translation to TRACETRANSFORM.set_translation
]
[from rotation to TRACETRANSFORM.set_rotation
]
-->
<EspduTransform DEF='ET' containerField='children'> |
68 | <IS> |
69 | <connect nodeField='marking' protoField='hullName'/> |
70 | <connect nodeField='siteID' protoField='siteID'/> |
71 | <connect nodeField='applicationID' protoField='applicationID'/> |
72 | <connect nodeField='entityID' protoField='entityID'/> |
73 | <connect nodeField='readInterval' protoField='readInterval'/> |
74 | <connect nodeField='writeInterval' protoField='writeInterval'/> |
75 | <connect nodeField='networkMode' protoField='networkMode'/> |
76 | <connect nodeField='address' protoField='address'/> |
77 | <connect nodeField='port' protoField='port'/> |
78 | <connect nodeField='translation' protoField='translation'/> |
79 | <connect nodeField='rotation' protoField='rotation'/> |
80 | </IS> |
81 | <!-- applet 0 1 2, auv dynamics 36 1 1 --> |
82 | <Switch whichChoice='0'> |
83 |
<!-- ROUTE information for AriesAUV node:
[from ArticulationParameterControl.portRpm to set_portRpm
]
[from ArticulationParameterControl.stbdRpm to set_stbdRpm
]
[from ArticulationParameterControl.forwardVerticalThruster to set_forwardVerticalThruster
]
[from ArticulationParameterControl.afterVerticalThruster to set_afterVerticalThruster
]
[from ArticulationParameterControl.forwardLateralThruster to set_forwardLateralThruster
]
[from ArticulationParameterControl.afterLateralThruster to set_afterLateralThruster
]
[from ArticulationParameterControl.forwardRudders to set_forwardRudders
]
[from ArticulationParameterControl.afterRudders to set_afterRudders
]
[from ArticulationParameterControl.forwardPlanes to set_forwardPlanes
]
[from ArticulationParameterControl.afterPlanes to set_afterPlanes
]
[from ArticulationParameterControl.ST725Range to set_ST725Range
]
[from ArticulationParameterControl.ST725Bearing to set_ST725Bearing
]
[from ArticulationParameterControl.ST1000Range to set_ST1000Range
]
[from ArticulationParameterControl.ST1000Bearing to set_ST1000Bearing
]
-->
<ProtoInstance name='Aries' DEF='AriesAUV'> |
84 | <IS> |
85 | <connect nodeField='hullName' protoField='hullName'/> |
86 | <connect nodeField='hullColor' protoField='hullColor'/> |
87 | <connect nodeField='planeColor' protoField='planeColor'/> |
88 | </IS> |
89 | </ProtoInstance> |
90 | </Switch> |
91 | <Group DEF='ArticulationParameterScriptRoutes'> |
92 |
<!-- ROUTE information for ArticulationParameterControl node:
[from ET.articulationParameterArray to set_articulationParameters
]
[from portRpm to AriesAUV.set_portRpm
]
[from stbdRpm to AriesAUV.set_stbdRpm
]
[from forwardVerticalThruster to AriesAUV.set_forwardVerticalThruster
]
[from afterVerticalThruster to AriesAUV.set_afterVerticalThruster
]
[from forwardLateralThruster to AriesAUV.set_forwardLateralThruster
]
[from afterLateralThruster to AriesAUV.set_afterLateralThruster
]
[from forwardRudders to AriesAUV.set_forwardRudders
]
[from afterRudders to AriesAUV.set_afterRudders
]
[from forwardPlanes to AriesAUV.set_forwardPlanes
]
[from afterPlanes to AriesAUV.set_afterPlanes
]
[from ST725Range to AriesAUV.set_ST725Range
]
[from ST725Bearing to AriesAUV.set_ST725Bearing
]
[from ST1000Range to AriesAUV.set_ST1000Range
]
[from ST1000Bearing to AriesAUV.set_ST1000Bearing
]
-->
<Script DEF='ArticulationParameterControl'> |
93 | <field name='set_articulationParameters' type='MFFloat' accessType='inputOnly'/> |
94 | <field name='portRpm' type='SFFloat' accessType='outputOnly'/> |
95 | <field name='stbdRpm' type='SFFloat' accessType='outputOnly'/> |
96 | <field name='forwardVerticalThruster' type='SFFloat' accessType='outputOnly'/> |
97 | <field name='afterVerticalThruster' type='SFFloat' accessType='outputOnly'/> |
98 | <field name='forwardLateralThruster' type='SFFloat' accessType='outputOnly'/> |
99 | <field name='afterLateralThruster' type='SFFloat' accessType='outputOnly'/> |
100 | <field name='forwardRudders' type='SFFloat' accessType='outputOnly'/> |
101 | <field name='afterRudders' type='SFFloat' accessType='outputOnly'/> |
102 | <field name='forwardPlanes' type='SFFloat' accessType='outputOnly'/> |
103 | <field name='afterPlanes' type='SFFloat' accessType='outputOnly'/> |
104 | <field name='ST725Range' type='SFFloat' accessType='outputOnly'/> |
105 | <field name='ST725Bearing' type='SFFloat' accessType='outputOnly'/> |
106 | <field name='ST1000Range' type='SFFloat' accessType='outputOnly'/> |
107 | <field name='ST1000Bearing' type='SFFloat' accessType='outputOnly'/> |
<![CDATA[
ecmascript: MAXRPM = 700; MAXTHRUSTER = 24; MAXSONARRANGE = 30; function initialize() { forwardRudders = 0; afterRudders = 0; forwardPlanes = 0; afterPlanes = 0; portRpm = 0; stbdRpm = 0; forwardVerticalThruster = 0; afterVerticalThruster = 0; forwardLateralThruster = 0; afterLateralThruster = 0; ST1000Bearing = 0; ST1000Range = 0; // MAXSONARRANGE; ST725Bearing = 0; ST725Range = 0; // MAXSONARRANGE; } function set_articulationParameters( value, timestamp ) { forwardRudders = value[0]; afterRudders = -value[0]; forwardPlanes = -value[1]; afterPlanes = value[1]; portRpm = value[2] / MAXRPM; stbdRpm = value[3] / MAXRPM; forwardVerticalThruster = value[4] / MAXTHRUSTER; afterVerticalThruster = value[5] / MAXTHRUSTER; forwardLateralThruster = value[6] / MAXTHRUSTER; afterLateralThruster = value[7] / MAXTHRUSTER; ST1000Bearing = value[8]; ST1000Range = value[9]; if (ST1000Range <= 0) ST1000Range = 0; else if (ST1000Range > MAXSONARRANGE) ST1000Range = 0; // MAXSONARRANGE; ST725Bearing = value[11]; ST725Range = value[12]; if (ST725Range <= 0) ST725Range = 0; else if (ST725Range > MAXSONARRANGE) ST725Range = 0; // MAXSONARRANGE; }
]]>
|
|
109 | </Script> |
110 | < ROUTE fromNode='ET' fromField='articulationParameterArray' toNode='ArticulationParameterControl' toField='set_articulationParameters'/> |
111 | < ROUTE fromNode='ArticulationParameterControl' fromField='portRpm' toNode='AriesAUV' toField='set_portRpm'/> |
112 | < ROUTE fromNode='ArticulationParameterControl' fromField='stbdRpm' toNode='AriesAUV' toField='set_stbdRpm'/> |
113 | < ROUTE fromNode='ArticulationParameterControl' fromField='forwardVerticalThruster' toNode='AriesAUV' toField='set_forwardVerticalThruster'/> |
114 | < ROUTE fromNode='ArticulationParameterControl' fromField='afterVerticalThruster' toNode='AriesAUV' toField='set_afterVerticalThruster'/> |
115 | < ROUTE fromNode='ArticulationParameterControl' fromField='forwardLateralThruster' toNode='AriesAUV' toField='set_forwardLateralThruster'/> |
116 | < ROUTE fromNode='ArticulationParameterControl' fromField='afterLateralThruster' toNode='AriesAUV' toField='set_afterLateralThruster'/> |
117 | < ROUTE fromNode='ArticulationParameterControl' fromField='forwardRudders' toNode='AriesAUV' toField='set_forwardRudders'/> |
118 | < ROUTE fromNode='ArticulationParameterControl' fromField='afterRudders' toNode='AriesAUV' toField='set_afterRudders'/> |
119 | < ROUTE fromNode='ArticulationParameterControl' fromField='forwardPlanes' toNode='AriesAUV' toField='set_forwardPlanes'/> |
120 | < ROUTE fromNode='ArticulationParameterControl' fromField='afterPlanes' toNode='AriesAUV' toField='set_afterPlanes'/> |
121 | < ROUTE fromNode='ArticulationParameterControl' fromField='ST725Range' toNode='AriesAUV' toField='set_ST725Range'/> |
122 | < ROUTE fromNode='ArticulationParameterControl' fromField='ST725Bearing' toNode='AriesAUV' toField='set_ST725Bearing'/> |
123 | < ROUTE fromNode='ArticulationParameterControl' fromField='ST1000Range' toNode='AriesAUV' toField='set_ST1000Range'/> |
124 | < ROUTE fromNode='ArticulationParameterControl' fromField='ST1000Bearing' toNode='AriesAUV' toField='set_ST1000Bearing'/> |
125 | </Group> |
126 | </EspduTransform> |
127 | <Switch DEF='HideTraceText' whichChoice='-1'> |
128 | <IS> |
129 | <connect nodeField='whichChoice' protoField='traceNodeEnabled'/> |
130 | </IS> |
131 |
<!-- ROUTE information for TRACETRANSFORM node:
[from ET.translation to set_translation
]
[from ET.rotation to set_rotation
]
-->
<Transform DEF='TRACETRANSFORM'> |
132 | < ROUTE fromNode='ET' fromField='translation' toNode='TRACETRANSFORM' toField='set_translation'/> |
133 | < ROUTE fromNode='ET' fromField='rotation' toNode='TRACETRANSFORM' toField='set_rotation'/> |
134 | </Transform> |
135 | </Switch> |
136 | </Group> |
137 | </ProtoBody> |
138 | </ProtoDeclare> |
139 | <!-- ============================== --> |
140 | <Viewpoint description='AriesEspdu Prototype'/> |
141 | <Group> |
142 | <ProtoInstance name='AriesEspdu'> |
143 | <fieldValue name='networkMode' value='networkReader'/> |
144 | <fieldValue name='translation' value='0 0.4 0'/> |
145 | </ProtoInstance> |
146 | </Group> |
147 | <Anchor description='AriesEspdu Prototype' parameter='"target=_blank"' url=' "AriesEspduExample.x3d" "https://www.web3d.org/x3d/content/examples/Savage/Robots/UnmannedUnderwaterVehicles/AriesEspduExample.x3d" "AriesEspduExample.wrl" "https://www.web3d.org/x3d/content/examples/Savage/Robots/UnmannedUnderwaterVehicles/AriesEspduExample.wrl" '> |
148 | <Shape> |
149 | <Appearance> |
150 | <Material diffuseColor='0 1 1' emissiveColor='0 1 1'/> |
151 | </Appearance> |
152 | <Text string='"AriesEspduPrototype" "is a prototype definition file" "" "To see an example scene" "click on any text and view" "AriesEspduExample"'> |
153 | <FontStyle justify='"MIDDLE" "MIDDLE"'/> |
154 | </Text> |
155 | </Shape> |
156 | </Anchor> |
157 | </Scene> |
158 | </X3D> |
Event Graph ROUTE Table entries with 17 ROUTE connections total, showing X3D event-model relationships for this scene.
Each row shows an event cascade that may occur during a single timestamp interval between frame renderings, as part of the X3D execution model.
This node has 14 outgoing ROUTEs, which is greater than $maxROUTEdepth=8 | |||||||
ArticulationParameterControl
Script portRpm SFFloat |
AriesAUV
ProtoInstance set_portRpm SFFloat |
||||||
ArticulationParameterControl
Script stbdRpm SFFloat |
AriesAUV
ProtoInstance set_stbdRpm SFFloat |
||||||
ArticulationParameterControl
Script forwardVerticalThruster SFFloat |
AriesAUV
ProtoInstance set_forwardVerticalThruster SFFloat |
||||||
ArticulationParameterControl
Script afterVerticalThruster SFFloat |
AriesAUV
ProtoInstance set_afterVerticalThruster SFFloat |
||||||
ArticulationParameterControl
Script forwardLateralThruster SFFloat |
AriesAUV
ProtoInstance set_forwardLateralThruster SFFloat |
||||||
ArticulationParameterControl
Script afterLateralThruster SFFloat |
AriesAUV
ProtoInstance set_afterLateralThruster SFFloat |
||||||
ArticulationParameterControl
Script forwardRudders SFFloat |
AriesAUV
ProtoInstance set_forwardRudders SFFloat |
||||||
ArticulationParameterControl
Script afterRudders SFFloat |
AriesAUV
ProtoInstance set_afterRudders SFFloat |
||||||
line 142
ProtoInstance AriesEspdu |
No direct ROUTE connection found for events to/from this node. This ProtoInstance contains SFNode/MFNode fieldValue declarations with direct access to other nodes, and thus has potential to produce run-time animation. |
AriesAUV
ProtoInstance Aries |
No direct ROUTE connection found for events to/from this node. This ProtoInstance contains SFNode/MFNode fieldValue declarations with direct access to other nodes, and thus has potential to produce run-time animation. |
ET
EspduTransform articulationParameterArray MFFloat |
ArticulationParameterControl
Script set_articulationParameters MFFloat |
|
ET
EspduTransform translation SFVec3f |
TRACETRANSFORM
Transform set_translation SFVec3f |
|
ET
EspduTransform rotation SFRotation |
TRACETRANSFORM
Transform set_rotation SFRotation |
line 147
Anchor |
description='AriesEspdu Prototype' User-interaction hint for this node. |
<!--
Color-coding legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
<ProtoInstance name='ProtoName'>
<field
name='fieldName'/> </ProtoInstance>
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->