source: cpp/gdk/model.def @ 89

Last change on this file since 89 was 89, checked in by sz, 11 years ago

all test applications are compilable again

  • Property svn:eol-style set to native
File size: 10.2 KB
Line 
1
2# f0 definition for Framsticks
3class:id=m,name="Model"
4prop:id=se,name="starting energy",group="x",flags=1024,type="f -999999 999999 0 "
5
6class:id=m,name="Model"
7
8
9prop:id=se,name="startenergy",group="Properties",flags=1024,type="f   "
10prop:id=Vstyle,name="vis_style",group="Visual",flags=0,type="s 0 -1 "
11
12
13class:id=p,name="Part"
14
15
16
17prop:id=x,name="position.x",group="Geometry",flags=1024,type="f   "
18prop:id=y,name="position.y",group="Geometry",flags=1024,type="f   "
19prop:id=z,name="position.z",group="Geometry",flags=1024,type="f   "
20prop:id=m,xtra=1,name="mass",group="Other properties",flags=0,type="f 0.1 999.0 1.0"
21prop:id=s,name="size",group="Other properties",flags=0,type="f 0.1 10.0 1.0"
22prop:id=dn,xtra=1,name="density",group="Other properties",flags=0,type="f 0.2 5.0 1.0"
23prop:id=fr,xtra=1,name="friction",group="Other properties",flags=0,type="f 0.0 4.0 0.4"
24prop:id=ing,xtra=1,name="ingestion",group="Other properties",flags=0,type="f 0.0 1.0 0.25"
25prop:id=as,xtra=1,name="assimilation",group="Other properties",flags=0,type="f 0.0 1.0 0.25"
26prop:id=rx,name="rot.x",group="Geometry",flags=0,type="f   "
27prop:id=ry,name="rot.y",group="Geometry",flags=1024,type="f   "
28prop:id=rz,name="rot.z",group="Geometry",flags=1024,type="f   "
29prop:id=i,name="info",group="Other properties",flags=0,type="s   "
30prop:id=Vstyle,name="vis_style",group="Visual",flags=0,type="s 0 -1 part"
31prop:id=vs,xtra=1,name="visual thickness",group="Visual",flags=0,type="f 0.05 0.7 0.2"
32prop:id=vr,xtra=1,name="red component",group="Visual",flags=0,type="f 0.0 1.0 0.5"
33prop:id=vg,xtra=1,name="green component",group="Visual",flags=1024,type="f 0.0 1.0 0.5"
34prop:id=vb,xtra=1,name="blue component",group="Visual",flags=1024,type="f 0.0 1.0 0.5"
35
36
37class:id=j,name="Joint"
38
39
40
41
42prop:id=p1,name="part1 ref#",group="Connections",flags=1024,type="d -1 999999 -1"
43prop:id=p2,name="part2 ref#",group="Connections",flags=1024,type="d -1 999999 -1"
44prop:id=rx,name="rotation.x",group="Geometry",flags=0,type="f   "
45prop:id=ry,name="rotation.y",group="Geometry",flags=1024,type="f   "
46prop:id=rz,name="rotation.z",group="Geometry",flags=1024,type="f   "
47prop:id=dx,name="delta.x",group="Geometry",flags=0,type="f -2 2 0"
48prop:id=dy,name="delta.y",group="Geometry",flags=1024,type="f -2 2 0"
49prop:id=dz,name="delta.z",group="Geometry",flags=1024,type="f -2 2 0"
50prop:id=stif,xtra=1,name="stiffness",group="Other properties",flags=0,type="f 0.0 1.0 1.0"
51prop:id=rotstif,xtra=1,name="rotation stiffness",group="Other properties",flags=0,type="f 0.0 1.0 1.0"
52prop:id=stam,name="stamina",group="Other properties",flags=0,type="f 0.0 1.0 0.25"
53prop:id=i,name="info",group="Other properties",flags=0,type="s   "
54prop:id=Vstyle,name="vis_style",group="Visual",flags=0,type="s 0 -1 joint"
55prop:id=vr,xtra=1,name="red component",group="Visual",flags=0,type="f 0.0 1.0 0.5"
56prop:id=vg,xtra=1,name="green component",group="Visual",flags=1024,type="f 0.0 1.0 0.5"
57prop:id=vb,xtra=1,name="blue component",group="Visual",flags=1024,type="f 0.0 1.0 0.5"
58
59
60
61
62class:id=n,name="Neuro"
63
64
65
66prop:id=p,name="part ref#",group="Connections",flags=0,type="d -1 999999 -1"
67prop:id=j,name="joint ref#",group="Connections",flags=0,type="d -1 999999 -1"
68prop:id=d,name="item details",group="Other",flags=0,type="s   N"
69prop:id=i,name="info",group="Other",flags=0,type="s   "
70prop:id=Vstyle,name="vis_style",group="Visual",flags=0,type="s 0 -1 neuro"
71prop:id=getInputCount,name="input count",group="Connections",flags=1+2,type="d   "
72prop:id=getInputNeuroDef,name="get input neuron",group="Connections",flags=1+2,type="p oNeuroDef(d)   "
73prop:id=getInputNeuroIndex,name="get input neuron index",group="Connections",flags=1+2,type="p d(d)   "
74prop:id=getInputWeight,name="get input weight",group="Connections",flags=1+2,type="p f(d)   "
75prop:id=classObject,name="neuron class",group="Connections",flags=1+2,type="o NeuroClass   "
76
77
78class:id=c,name="NeuroConn"
79
80
81prop:id=n1,name="this neuro ref#",group="Connection",flags=1024,type="d -1 999999 -1"
82prop:id=n2,name="connected neuro ref#",group="Connection",flags=1024,type="d -1 999999 -1"
83prop:id=w,name="weight",group="Connection",flags=1024,type="f -999999 999999 1.0"
84prop:id=i,name="info",group="Other",flags=0,type="s   "
85
86
87neuro: id=N,name="Neuron",info="Standard neuron",inputs=-1,output=1,location=0  ,vhints=2
88
89prop:id=in,name="Inertia",type="f 0.0 1.0 0.8"
90prop:id=fo,name="Force",type="f 0.0 999.0 0.04"
91prop:id=si,name="Sigmoid",type="f -99999.0 99999.0 2.0"
92prop:id=s,name="State",type="f -1.0 1.0 0.0"
93
94
95neuro: id=Nu,name="Unipolar neuron [EXPERIMENTAL!]",info="Works like standard neuron (N) but the output value is scaled to 0...+1 instead of -1...+1.\nHaving 0 as one of the saturation states should help in \"gate circuits\", where input signal is passed through or blocked depending on the other singal.",inputs=-1,output=1,location=0
96prop:id=in,name="Inertia",type="f 0.0 1.0 0.8"
97prop:id=fo,name="Force",type="f 0.0 999.0 0.04"
98prop:id=si,name="Sigmoid",type="f -99999.0 99999.0 2.0"
99prop:id=s,name="State",type="f -1.0 1.0 0.0"
100
101
102neuro: id=G,name="Gyroscope",info="Equilibrium sensor.\n0=the stick is horizontal\n+1/-1=the stick is vertical",inputs=0,output=1,location=2  ,vhints=32  ,symbol="8,7,100,50,90,50,90,40,70,40,80,50,70,60,90,60,90,50,12,43,24,48,24,48,19,38,19,38,24,43,24,43,54,48,54,48,64,43,69,38,64,38,54,43,54,5,63,69,58,74,48,79,38,79,28,74,23,69,1,43,79,43,74,1,23,69,26,66,1,63,69,60,66,1,55,76,53,73,1,31,75,33,72"
103
104
105
106
107neuro: id=T,name="Touch",info="Touch sensor.\n-1=no contact\n0=just touching\n>0=pressing, value depends on the force applied",inputs=0,output=1,location=1  ,vhints=32  ,symbol="2,7,100,50,90,50,90,40,70,40,80,50,70,60,90,60,90,50,11,75,50,65,50,60,55,55,45,50,55,45,45,40,50,35,50,30,45,25,50,30,55,35,50"
108
109
110prop:id=r,name="Range",type="f 0.0 1.0 1.0"
111
112
113neuro: id=S,name="Smell",info="Smell sensor. Aggregated \"smell of energy\" experienced from all energy objects (creatures and food pieces).\nClose objects have bigger influence than the distant ones: for each energy source, its partial feeling is proportional to its energy/(distance^2)",inputs=0,output=1,location=1  ,vhints=32  ,symbol="5,7,100,50,90,50,90,40,70,40,80,50,70,60,90,60,90,50,3,10,40,15,45,15,55,10,60,5,20,30,25,35,30,45,30,55,25,65,20,70,4,15,35,20,40,22,50,20,60,15,65,5,75,50,50,50,45,45,40,50,45,55,50,50"
114
115
116
117
118neuro: id=*,name="Constant",info="Constant value",inputs=0,output=1,location=0  ,vhints=1  ,symbol="4,4,26,27,26,73,73,73,73,27,26,27,1,73,50,100,50,1,56,68,46,68,2,41,47,51,32,51,68"
119
120
121
122
123neuro: id=|,name="Bend muscle",info="",inputs=1,output=0,location=2  ,vhints=86  ,symbol="6,5,25,40,35,40,45,50,35,60,25,60,25,40,4,65,85,65,50,75,50,75,85,65,85,3,65,56,49,29,57,24,72,50,4,68,53,70,53,70,55,68,55,68,53,5,50,21,60,15,70,14,79,15,87,20,81,10,1,86,20,77,21"
124
125
126prop:id=p,name="power",type="f 0.01 1.0 0.25"
127prop:id=r,name="bending range",type="f 0.0 1.0 1.0"
128
129
130neuro: id=@,name="Rotation muscle",info="",inputs=1,output=0,location=2  ,vhints=150  ,symbol="5,5,25,40,35,40,45,50,35,60,25,60,25,40,4,65,85,65,50,75,50,75,85,65,85,1,69,10,77,17,10,59,15,57,17,57,22,60,26,69,27,78,26,82,21,82,16,79,12,69,10,80,6,3,65,50,65,20,75,20,75,50"
131
132
133prop:id=p,name="power",type="f 0.01 1.0 1.0"
134
135
136neuro: id=D,name="Differentiate",info="Calculate the difference between the current and previous input value. Multiple inputs are aggregated with respect to their weights",inputs=-1,output=1,location=0  ,symbol="3,3,25,0,25,100,75,50,25,0,1,75,50,100,50,3,44,42,51,57,36,57,44,42"
137
138
139
140neuro: id=Fuzzy,name="Fuzzy system [EXPERIMENTAL!]",info="Refer to publications to learn more about this neuron.",inputs=-1,output=1,location=0  ,symbol="5,2,30,65,37,37,44,65,3,37,65,44,37,51,37,58,65,2,51,65,58,37,65,65,6,100,50,70,50,70,25,25,10,25,90,70,75,70,50,1,70,65,25,65"
141
142prop:id=ns,name="number of fuzzy sets",type="d 1  "
143prop:id=nr,name="number of rules",type="d 1  "
144prop:id=fs,name="fuzzy sets",type="s 0 -1 0"
145prop:id=fr,name="fuzzy rules",type="s 0 -1 0"
146
147
148neuro: id=Sti,name="Sticky [EXPERIMENTAL!]",info="",inputs=1,output=0,location=1  ,vhints=16
149
150
151
152neuro: id=LMu,name="Linear muscle [EXPERIMENTAL!]",info="",inputs=1,output=0,location=2  ,vhints=16
153
154prop:id=p,name="power",type="f 0.01 1.0 1.0"
155
156
157neuro: id=Water,name="Water detector",info="Output signal:\n0=on or above water surface\n1=under water (deeper than 1)\n0..1=in the transient area just below water surface",inputs=0,output=1,location=1  ,vhints=32
158
159
160
161neuro: id=Energy,name="Energy level",info="The current energy level divided by the initial energy level.\nUsually falls from initial 1.0 down to 0.0 and then the creature dies. It can rise above 1.0 if enough food is ingested",inputs=0,output=1,location=0  ,vhints=32
162
163
164
165neuro: id=Ch,name="Channelize",info="Combines all input signals into a single multichannel output; Note: ChSel and ChMux are the only neurons which support multiple channels. Other neurons discard everything except the first channel.",inputs=-1,output=1,location=0  ,symbol="10,4,25,0,25,100,75,70,75,30,25,0,1,75,50,100,50,1,70,50,55,50,1,30,80,55,50,1,30,20,55,50,1,30,35,55,50,1,30,45,55,50,1,30,55,55,50,1,61,53,65,47,1,30,65,55,50"
166
167
168
169neuro: id=ChMux,name="Channel multiplexer",info="Outputs the selected channel from the second (multichannel) input. The first input is used as the selector value (-1=select first channel, .., 1=last channel)",inputs=2,output=1,location=0  ,symbol="7,4,25,0,25,100,75,70,75,30,25,0,1,75,50,100,50,1,70,50,55,50,3,50,55,55,50,50,45,50,55,3,30,67,45,67,45,50,50,50,1,35,70,39,64,2,30,33,53,33,53,48"
170
171
172
173neuro: id=ChSel,name="Channel selector",info="Outputs a single channel (selected by the \"ch\" parameter) from multichannel input",inputs=1,output=1,location=0  ,symbol="6,4,25,0,25,100,75,70,75,30,25,0,1,75,50,100,50,1,70,50,55,50,3,50,55,55,50,50,45,50,55,1,30,50,50,50,1,35,53,39,47"
174
175prop:id=ch,name="channel",type="d   "
176
177
178neuro: id=Rnd,name="Random noise",info="Generates random noise (subsequent random values in the range of -1..+1)",inputs=0,output=1,location=0
179
180
181neuro: id=Sin,name="Sinus generator",info="Output frequency = f0+input",inputs=1,output=1,location=0  ,symbol="3,12,75,50,71,37,62,28,50,25,37,28,28,37,25,50,28,62,37,71,50,75,62,71,71,62,75,50,1,75,50,100,50,5,35,50,40,35,45,35,55,65,60,65,65,50"
182
183prop:id=f0,name="base frequency",type="f -1.0 1.0 0.06283185307"
184prop:id=t,name="time",type="f 0 6.283185307 0"
185
186
187
188# EOF
Note: See TracBrowser for help on using the repository browser.